-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove FunctionScope and improve type tracking #258
Conversation
So the scope of this PR kinda spiraled out of control a bit, but I think for the better. I did still fix the
This change yielded some fairly impressive performance improvements for the @elsassph I'm ready for your review again. |
a30d89c
to
f2dc8f0
Compare
Is this ready for reviewing? If so I might be interested in hopping on a call for this one due to the scope and size. |
No, this isn't ready for reviewing yet. I still need to refactor some of typing stuff to look into scopes rather than just per-file. |
* Ran npm audit and fixed vulvnerability * Added symbol table class * Parser adds to a symbol table as it parses code * Revert package changes * Fixed test that was referencing LazyType when it was not supposed to * Better handling of a variable potentially changing type. Added getSymbolType() function and fixed error of a function inheriting symbols from a containing function * Fixed typo * Removed code comment * Fixes from PR comments - and made sure for each loop variables were added to the symbolTable * Changed BscSymbol interface to include a range Co-authored-by: Mark Pearce <[email protected]>
* Adds SymbolTable.hasKey method * Makes CustomType display its actual type * Standardize how a FunctionType is created from an expression * Adds symbol tables to namespaces * Adds a symbol table to scope, and computes merged symbol tables across files * Use the symbolTable on getHover * Working on argument type mismatch validation * Proper type tracking across files in the same scope, including namespaces. Adds validation on argument types * Fixed bad whitespace in tests * Updates from code review * Fixed all circular dependency issues * Hopefully fixed all whitespace issues * Fixes for when scope changes * Fixed lint error and remove symbolTable clear - it was not needed * Clean up getHover code Co-authored-by: Mark Pearce <[email protected]>
Closing in favor of the v1 PR #401 |
The variable defined in
for each
statements were not showing up for completions. This PR fixes that.