예제 #1
0
        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));
        }
예제 #2
0
        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);
        }