cs132.vapor.ast
Class VCodeLabel

java.lang.Object
  extended by cs132.vapor.ast.Node
      extended by cs132.vapor.ast.VTarget
          extended by cs132.vapor.ast.VCodeLabel

public class VCodeLabel
extends VTarget

A label definition in the body of a function. These look like "LabelName:" and appear between instructions. They are referenced as the target of branch and jump instructions (if/if0/goto).


Field Summary
 VFunction function
           
 int instrIndex
           
 
Fields inherited from class cs132.vapor.ast.VTarget
ident
 
Fields inherited from class cs132.vapor.ast.Node
sourcePos
 
Constructor Summary
VCodeLabel(SourcePos sourcePos, String ident, VFunction function, int instrIndex)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

function

public final VFunction function

instrIndex

public final int instrIndex
Constructor Detail

VCodeLabel

public VCodeLabel(SourcePos sourcePos,
                  String ident,
                  VFunction function,
                  int instrIndex)