Class RecordedDeclarations
java.lang.Object
org.ek9lang.compiler.support.RecordedDeclarations
- All Implemented Interfaces:
BiFunction<ParsedModule, org.antlr.v4.runtime.tree.ParseTree, List<RecordedSymbols.Reference>>
public final class RecordedDeclarations
extends Object
implements BiFunction<ParsedModule, org.antlr.v4.runtime.tree.ParseTree, List<RecordedSymbols.Reference>>
THE declarations in a fragment of the COMPILED tree, by the symbols the compiler recorded - the declaration half
of
RecordedSymbols' identity walk. Was RecordedSymbols.declaredIn (no-statics lane S3, 2026-10-29).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(ParsedModule parsedModule, org.antlr.v4.runtime.tree.ParseTree fragment) The declarations infragment, in source order: variables (x <- 1,x as T: v, thes <- next()of a guard), variable-only declarations (parameters, returns,x as T?) and loop variables.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiFunction
andThen
-
Constructor Details
-
RecordedDeclarations
public RecordedDeclarations()
-
-
Method Details
-
apply
public List<RecordedSymbols.Reference> apply(ParsedModule parsedModule, org.antlr.v4.runtime.tree.ParseTree fragment) The declarations infragment, in source order: variables (x <- 1,x as T: v, thes <- next()of a guard), variable-only declarations (parameters, returns,x as T?) and loop variables. The node is the declaration rule;RecordedSymbols.Reference.name()is its whole text, so usesymbol().getName()for the name.- Specified by:
applyin interfaceBiFunction<ParsedModule, org.antlr.v4.runtime.tree.ParseTree, List<RecordedSymbols.Reference>>
-