public override SpeakLine VisitLine(SpeakParser.LineContext context) { var name = context.name(); var opinion = context.opinion(); var line = new SpeakLine() { Person = name.GetText(), Text = opinion.GetText().Trim('"') }; Lines.Add(line); return(line); }
public override object VisitLine(SpeakParser.LineContext context) { NameContext name = context.name(); OpinionContext opinion = context.opinion(); SpeakLine line = new SpeakLine() { Person = name.GetText(), Text = opinion.GetText().Trim('"') }; Lines.Add(line); return(line); }