Class ResolveDefineInferredTypeListener

All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener, EK9Listener

final class ResolveDefineInferredTypeListener extends ExpressionsListener

This is a really critical point, because this attempts to ensure that ANY expression results in a symbol that has been 'typed'.

But it also has to 'resolve' types or 'generic types' and for inferred declarations must work out what the types are (hence previous expressions must now be 'typed'). It will also trigger the creations of new parameterised types, from generic types and type arguments, but 'just in time'.

Due to the ways that antlr employs listeners, breaking up the processing of listener events in to separate listeners in a type hierarchy seems to make most sense. But the bulk of any real actual processing is pulled out to separate functions and classes. So that these large and quite complex 'flows' can just focus on the event cycles and manage the scope stacks.

In general the listener methods in this class and it's supers are either very simple processing or just delegate the processing to a Function/Consumer to 'Process' or 'emit' compiler errors.