public override bool VisitLabel([NotNull] injectionParser.LabelContext context) { var name = context.SYMBOL()?.GetText(); if (name != null) { definitions[name] = context; } return(base.VisitLabel(context)); }
private void Generate(injectionParser.LabelContext context) { var label = context.SYMBOL().GetText(); labels.Add(label, currentAddress); }
public override bool VisitLabel([NotNull] injectionParser.LabelContext context) { declaredLabels.Add(context.SYMBOL().GetText()); return(base.VisitLabel(context)); }