Package org.ek9lang.compiler.phase1
Class CheckVariableDeclaration
java.lang.Object
org.ek9lang.compiler.phase1.CheckVariableDeclaration
- All Implemented Interfaces:
Consumer<EK9Parser.VariableDeclarationContext>
final class CheckVariableDeclaration
extends Object
implements Consumer<EK9Parser.VariableDeclarationContext>
Checks that variable declarations have a typedef when using in generic types/functions.
This is an initial limitation of using generics. It makes dependent generic use very hard to
determine - because you need expression results and types - so a catch 22 (for now).
-
Constructor Summary
ConstructorsConstructorDescriptionCheckVariableDeclaration
(SymbolAndScopeManagement symbolAndScopeManagement, ErrorListener errorListener) If the variable has been declared within any sort of generic type/function and not been used with a 'typedef' i.e. -
Method Summary
-
Constructor Details
-
CheckVariableDeclaration
CheckVariableDeclaration(SymbolAndScopeManagement symbolAndScopeManagement, ErrorListener errorListener) If the variable has been declared within any sort of generic type/function and not been used with a 'typedef' i.e. it has been inferred - this will generate an error.
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceConsumer<EK9Parser.VariableDeclarationContext>
-