Package org.ek9lang.compiler.phase5
Class MakesIdentifierSubsequenceAccessSafe
java.lang.Object
org.ek9lang.compiler.phase5.MakesIdentifierSubsequenceAccessSafe
- All Implemented Interfaces:
Predicate<EK9Parser.IdentifierContext>
final class MakesIdentifierSubsequenceAccessSafe
extends Object
implements Predicate<EK9Parser.IdentifierContext>
A bit of a catch 22, need to issue errors and the like when traversing an identifier in
some circumstances. But not if the identifierReference is actually being used in a 'is-set' test.
But it maybe that this is an assignment which then makes subsequence access SAFE.
So I don't like doing this sort of thing because it makes the grammar fragile. But here I need to traverse back up
the grammar structure to see if this identifier is being used as part of a '?' expression or a safe assignment.
-
Constructor Details
-
MakesIdentifierSubsequenceAccessSafe
MakesIdentifierSubsequenceAccessSafe()
-
-
Method Details
-
test
- Specified by:
test
in interfacePredicate<EK9Parser.IdentifierContext>
-