Explore simple type flow analysis #2421
Labels
enhancement
New feature or request
pinned
This issue or pull request is pinned and won't be marked as stale
server
This pull request should be included in the server gem's release notes
By analyzing the flow of types in a program, we may be able to improve the accuracy for definition, hover, completion and signature help.
For example, understanding the type stored in a variable
However, the Ruby LSP doesn't require a type system to provide features. We may discover that investing in type flow analysis without a type system actually doesn't provide much benefit (because most things would end up being untyped anyway).
Explore implementing simple type flow analysis:
self.new
orself.allocate
are not overriddenThe output of this task is either the implemented flow analysis algorithm or an explanation of why it's not worth it without a type system.
The text was updated successfully, but these errors were encountered: