public static interface TranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,T>,T>
Modifier and Type | Method and Description |
---|---|
void |
addScopedEntity(CAstNode newNode,
CAstEntity visit)
associate a child entity with a given CAstNode, e.g.
|
CAstControlFlowRecorder |
cfg()
for recording control-flow relationships among the CAst nodes
|
T |
getBreakFor(String label)
for a 'break' style goto, return the control flow target
|
T |
getContinueFor(String label)
for a 'continue' style goto, return the control flow target
|
CAstNodeTypeMapRecorder |
getNodeTypeMap()
for recording types of nodes
|
Map<CAstNode,Collection<CAstEntity>> |
getScopedEntities()
get a mapping from CAstNodes to the scoped entities (e.g.
|
CAstSourcePositionRecorder |
pos()
for recording source positions
|
Map<CAstNode,Collection<CAstEntity>> getScopedEntities()
null
to
those entities not corresponding to any node (e.g nested classes)void addScopedEntity(CAstNode newNode, CAstEntity visit)
CAstControlFlowRecorder cfg()
CAstSourcePositionRecorder pos()
CAstNodeTypeMapRecorder getNodeTypeMap()
T getContinueFor(String label)