public static ParsedLink ReadElement(PlSqlParser.General_element_partContext context) { PlSqlParser.Id_expressionContext[] Id_expressionContexts = context.id_expression(); string elementName = string.Join(".", Id_expressionContexts.Select(x => x.GetText())); ParsedLink element = new ParsedLink(elementName); element.SetPosition(Id_expressionContexts.First()); element.SetPosition(Id_expressionContexts.Last()); return(element); }
public static ParsedLink ReadElement(PlSqlParser.Type_nameContext context) { var elementName = context.GetText(); var element = new ParsedLink(elementName); element.SetPosition(context); return(element); }
public static ParsedLink ReadElement(PlSqlParser.Function_callContext context) { var item = context.children[0] as ParserRuleContext; var elementName = item.GetText(); var element = new ParsedLink(elementName); element.SetPosition(item); return(element); }