Class IsOwningEvaluation

java.lang.Object
org.ek9lang.compiler.support.IsOwningEvaluation
All Implemented Interfaces:
Predicate<org.antlr.v4.runtime.tree.ParseTree>

public final class IsOwningEvaluation extends Object implements Predicate<org.antlr.v4.runtime.tree.ParseTree>
THE owners of the closeable temporaries made inside them: a block statement, or what is in no statement - a returning variable's or a property's initialiser, or a text's string. MustExecutePosition's statement and evaluation forms stop here, and so does a rule asking "is this temporary part of that statement's evaluation?" (D20, E81071), so the two stop at exactly the same node.
  • Constructor Details

    • IsOwningEvaluation

      public IsOwningEvaluation()
  • Method Details

    • test

      public boolean test(org.antlr.v4.runtime.tree.ParseTree node)
      Specified by:
      test in interface Predicate<org.antlr.v4.runtime.tree.ParseTree>