Class DictUseOrError

All Implemented Interfaces:
Consumer<EK9Parser.DictContext>

final class DictUseOrError extends TypedSymbolAccess implements 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.
  • 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