Package org.ek9lang.compiler.phase3
Class DictUseOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase3.DictUseOrError
- All Implemented Interfaces:
Consumer<EK9Parser.DictContext>
Creates/Updates an ek9 Dict (Dictionary/Map) of a specific types if the expressions are typed correctly.
This is designed for inferred types.
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ConstructorDescriptionDictUseOrError
(SymbolsAndScopes symbolsAndScopes, SymbolFactory symbolFactory, ErrorListener errorListener) Create a new consumer to handle Dict in the form of '{A: X, B: Y, C: Z}'. -
Method Summary
Methods inherited from class org.ek9lang.compiler.common.TypedSymbolAccess
getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbol
-
Constructor Details
-
DictUseOrError
DictUseOrError(SymbolsAndScopes symbolsAndScopes, SymbolFactory symbolFactory, ErrorListener errorListener) Create a new consumer to handle Dict in the form of '{A: X, B: Y, C: Z}'. So A , B and C must be of the same or compatible type (between each other). And X, Y, Z must also be of the same or compatible type (between each other).
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceConsumer<EK9Parser.DictContext>
-