public override object VisitName(NameContext context) { var obj = ""; foreach (var i in range(0, context.id().Length - 1, 1, true, true)) { var id = (Result)(Visit(context.id(i))); if (i == 0) { obj += id.text; } else { obj += "." + id.text; } } return(obj); }
public override object VisitName([NotNull] NameContext context) { var obj = ""; for (int i = 0; i < context.id().Length; i++) { var id = (Result)Visit(context.id(i)); if (i == 0) { obj += "" + id.text; } else { obj += "." + id.text; } } return(obj); }
public override object VisitName(NameContext context) { var obj = ""; foreach (var(i, v) in context.id().WithIndex()) { var id = ((Result)Visit(v)); if (i == 0) { obj += id.text; } else { obj += "." + id.text; } } return(obj); }