You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe this is due to a bug in visitAssignment inside treeVisitor.ts where if node.leftExpression is ParseNodeType.TypeAnnotation, the function should evaluate whether its valueExpression is ParseNodeType.Name and not the annotation node itself. Unfortunately I wasn't able to debug this locally but this is my best guess.
The text was updated successfully, but these errors were encountered:
When running the indexer against lines with type annotations, like:
The end result looks like this:
Compared to when the code is:
and the index is:
Notice how in the first example the int was mentioned as an external_symbol and not included as a symbol in its own document.
Another example:
Returns
Which doesn't include the assignment symbol at all. If I remove the type annotation, I get the following result:
Which contains the proper symbol.
I believe this is due to a bug in visitAssignment inside treeVisitor.ts where if
node.leftExpression
isParseNodeType.TypeAnnotation
, the function should evaluate whether itsvalueExpression
isParseNodeType.Name
and not the annotation node itself. Unfortunately I wasn't able to debug this locally but this is my best guess.The text was updated successfully, but these errors were encountered: