return found.getReference();
}
public LabelReference getLabel(String name) {
Label found = null;
Context ctx = this;
do {
if (ctx.labels != null) {
found = ctx.labels.get(name);
}
}
while (found == null && (ctx = ctx.parent) != null);
if (found == null)
throw new OutOfScopeException("Label not found: " + name);
return found.getReference();
}