Class WrittenParameters
java.lang.Object
org.ek9lang.compiler.phase7.generator.WrittenParameters
THE parameters an operation writes as
-> name as T (IR tidy W3.4, OPS-8): their declarations - slots the
caller owns, each with its coverage statement probe - and their symbols, the same ones. An operation's body and a
text method's share it; use it, never another loop over variableOnlyDeclaration(). Hold an instance.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeclarations(EK9Parser.ArgumentParamContext argumentParam, GeneratorSet generators) The declarations of the written parameters, forOperationBodyPlan.parameters.symbols(EK9Parser.ArgumentParamContext argumentParam, Function<org.antlr.v4.runtime.tree.ParseTree, ISymbol> recordedSymbol) The symbols of the written parameters - thosedeclarations(EK9Parser.ArgumentParamContext, GeneratorSet)declares.
-
Constructor Details
-
WrittenParameters
WrittenParameters()
-
-
Method Details
-
declarations
The declarations of the written parameters, forOperationBodyPlan.parameters. Grammar allowsargumentParam*to report repeated arrows; only the first is valid, so pass that one. -
symbols
List<ISymbol> symbols(EK9Parser.ArgumentParamContext argumentParam, Function<org.antlr.v4.runtime.tree.ParseTree, ISymbol> recordedSymbol) The symbols of the written parameters - thosedeclarations(EK9Parser.ArgumentParamContext, GeneratorSet)declares.- Parameters:
recordedSymbol- the fail-fast recorded-symbol reading (AbstractGenerator.getRecordedSymbolOrException)
-