rokucommunity / brighterscript

A superset of Roku's BrightScript language
MIT License
153 stars 47 forks source link

Hovers on LHS of assignments do symbol type lookups #1165

Closed markwpearce closed 2 months ago

markwpearce commented 2 months ago

Previously, the type displayed on an assignment was the type of the RHS expression.

This changes that so it does a symbolTable lookup for the token on the LHS.

Symbol table type lookups return a union type of all assigned types for that symbol.

It is bad code style to use the same variable name for different types! We need to add that to BSLint.