public void AddAttr(string type, ITerminalNode token) { int start, end; token.GetBounds(out start, out end); AddAttrNode(type, null, start, end); }
public static string GetText(this ITerminalNode token, string input) { if (input == null) { return(null); } int start, end; token.GetBounds(out start, out end); return(input.Substring(start, end - start)); }