zap icon indicating copy to clipboard operation
zap copied to clipboard

Support flow typing

Open simolus3 opened this issue 2 years ago • 0 comments

In zap components, we move local variables to instance variables in a component. As flow analysis only works for local variables, code relying on flow typing will break.

We could use the analyzer to find variable references (SimpleIdentifier) that have a more specific static type than the local variable they're referencing. If that's the case, we could mark them somehow to generate the necessary cast or non-null assertion in the generator.

simolus3 avatar Mar 12 '22 15:03 simolus3