Class EmitConstructAndReferenceConflictError
java.lang.Object
org.ek9lang.compiler.phase1.EmitConstructAndReferenceConflictError
THE one emitter of "a construct (or a reference) conflicts with a reference" errors. It holds no per-kind state:
the kind of construct is the
EmitConstructAndReferenceConflictError.Kind passed to constructClash(EmitConstructAndReferenceConflictError.Kind, ConflictingTokens), so a new kind is one enum constant.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enumWhat the conflicting construct is, as it is worded in the error message ("defines function, but ..."). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidA construct of this kind has the same name as a reference.(package private) voidreferenceClash(ConflictingTokens conflict) The same reference has been made twice (by different sources of the module, or clashing unqualified names).
-
Constructor Details
-
EmitConstructAndReferenceConflictError
EmitConstructAndReferenceConflictError(ErrorListener errorListener)
-
-
Method Details
-
constructClash
A construct of this kind has the same name as a reference. -
referenceClash
The same reference has been made twice (by different sources of the module, or clashing unqualified names).
-