public override CsvNode VisitStart(CsvParser.StartContext context) { var textRange = context.CreateTextRange(_textDocument); var rows = context.row().AcceptAll(this).OfType <RowDeclarationSyntax>(); return(TreeFactory.CompilationUnit(textRange, rows)); }
public override CsvSyntaxTreeBuilder VisitStart(CsvParser.StartContext context) { var textRange = context.CreateTextRange(_textDocument); _treeFactory.CreateDocument(textRange); foreach (var row in context.row()) { row.Accept(this); } return(this); }