public class CodeBlock extends SrcOp
Modifier and Type | Field and Description |
---|---|
int |
codeBlockLevel |
OrderedHashSet<Decl> |
locals |
List<SrcOp> |
ops |
List<SrcOp> |
preamble |
int |
treeLevel |
enclosingBlock, enclosingRuleRunction, uniqueID
ast, factory
Constructor and Description |
---|
CodeBlock(OutputModelFactory factory) |
CodeBlock(OutputModelFactory factory,
int treeLevel,
int codeBlockLevel) |
Modifier and Type | Method and Description |
---|---|
void |
addLocalDecl(Decl d)
Add local var decl
|
void |
addOp(SrcOp op) |
void |
addOps(List<SrcOp> ops) |
void |
addPreambleOp(SrcOp op) |
void |
insertOp(int i,
SrcOp op) |
getContextName, getOuterMostAltCodeBlock
public int codeBlockLevel
public int treeLevel
public OrderedHashSet<Decl> locals
public CodeBlock(OutputModelFactory factory)
public CodeBlock(OutputModelFactory factory, int treeLevel, int codeBlockLevel)
Copyright © 1992–2020 ANTLR. All rights reserved.