* First working draft to enable multi item import in a single use statement
Signed-off-by: Mohammad Fawaz <mohammadfawaz89@gmail.com>
* Minor clean-up changes
Signed-off-by: Mohammad Fawaz <mohammadfawaz89@gmail.com>
* More minor clean-up changes
Signed-off-by: Mohammad Fawaz <mohammadfawaz89@gmail.com>
* More minor clean-up changes
Signed-off-by: Mohammad Fawaz <mohammadfawaz89@gmail.com>
* Propertly handling aliases for the basic case
Signed-off-by: Mohammad Fawaz <mohammadfawaz89@gmail.com>
* Trying a recursive solution
Signed-off-by: Mohammad Fawaz <mohammadfawaz89@gmail.com>
* updating a few tests to use the new supported syntax
Signed-off-by: Mohammad Fawaz <mohammadfawaz89@gmail.com>
* Fixing formatting issues
Signed-off-by: Mohammad Fawaz <mohammadfawaz89@gmail.com>
* Adding a test
Signed-off-by: Mohammad Fawaz <mohammadfawaz89@gmail.com>
* Fixing formatting issues
Signed-off-by: Mohammad Fawaz <mohammadfawaz89@gmail.com>
* Additional features: Handling non-final asterisks and trailing aliases after "}"
Signed-off-by: Mohammad Fawaz <mohammadfawaz89@gmail.com>
* Better naming for one of the variables
Signed-off-by: Mohammad Fawaz <mohammadfawaz89@gmail.com>
* Addressing Clippy's warnings
Signed-off-by: Mohammad Fawaz <mohammadfawaz89@gmail.com>
* reducing the size of the new test
Signed-off-by: Mohammad Fawaz <mohammadfawaz89@gmail.com>
* fix trait implementation imports in star imports
* Fix test case
* remove rust test harness
* add json abi oracle
Co-authored-by: Alexander Hansen <alexanderhansen@AlexandersMBP3.home>
* make fields of Ident private
* Make Ident<'sc> not hold a &'sc str
* rename Ident::primary_name to Ident::as_str
* impl fmt::Display for Ident
* use Idents in warnings, rather than str
* use Idents in CompileError rather than &str
* switch to static spans
* remove pest dependency from forc and sway-server
* use Arc-based pest from github
* fix clippy lints
* remove remaining unused 'sc lifetimes
* run rustfmt
* replace TypeInfo::Unit with TypeInfo::Tuple
* Also parsing unit types in return position
* replace unit expressions with tuple expressions
* re-use struct asm generation for tuples
* implement dead code analysis for tuples
* implement parsing for tuple types
* make tuple types hold TypeIds rather than TypeInfos
* allow parsing single-field tuples
* run rustfmt
* example docs
* type refactor
* Document lib.rs
* document modules
* fix typo
* removed merge conflict markers
* added parse functionality to function use example
* Added more documentation, and small fixes
* accepted incoming changes
* small fix that got reverted
* Update core_lang/src/ident.rs
Co-authored-by: Alex Hansen <alex@alex-hansen.com>
* Update core_lang/src/parse_tree/expression/mod.rs
Co-authored-by: Alex Hansen <alex@alex-hansen.com>
* Update core_lang/src/span.rs
Co-authored-by: Alex Hansen <alex@alex-hansen.com>
* Update to docstring for `Ident`
Added note for distinction between "symbols" and "tokens".
* added more docs for review
* added UseStatement
* formatting
* Added hyperlinks and fixed local broken link
* Requested changes to docs
* Requested changes
Co-authored-by: Alex Hansen <alex@alex-hansen.com>
Co-authored-by: John Adler <john.adler@protonmail.ch>
* Fix error in if expression then branch type checking
* bump to 0.1.8
* fix fmt
* Revert version bump.
Co-authored-by: John Adler <john.adler@protonmail.ch>