1 write to _parseTree
VisualBasicSyntaxGenerator (1)
Util\WriteUtils.vb (1)
31
_parseTree
= parseTree
100 references to _parseTree
VisualBasicSyntaxGenerator (100)
Grammar\GrammarGenerator.vb (5)
30
_parseTree
.NodeStructures.Add("Modifier", New ParseNodeStructure(
37
New XAttribute("kind", modifiersString))),
_parseTree
))
39
_rules = Me.
_parseTree
.NodeStructures.Values.ToDictionary(
42
Dim nonTokens =
_parseTree
.NodeStructures.Values.Where(Function(n) Not n.IsToken)
43
Dim tokens =
_parseTree
.NodeStructures.Values.Where(Function(n) n.IsToken)
GreenNodes\GreenNodeFactoryWriter.vb (9)
38
If Not String.IsNullOrEmpty(
_parseTree
.NamespaceName) Then
39
_writer.WriteLine("Namespace {0}", Ident(
_parseTree
.NamespaceName) + ".Syntax.InternalSyntax")
44
_writer.WriteLine(" Friend Class {0}", Ident(
_parseTree
.ContextualFactoryClassName))
47
_writer.WriteLine(" Friend Partial Class {0}", Ident(
_parseTree
.FactoryClassName))
55
If Not String.IsNullOrEmpty(
_parseTree
.NamespaceName) Then
62
For Each nodeStructure In
_parseTree
.NodeStructures.Values
74
If
_parseTree
.IsAbstract(nodeStructure) Then Return ' abstract structures don't have factory methods
85
If nodeStructure.NodeKinds.Count >= 2 And Not
_parseTree
.NodeKinds.ContainsKey(FactoryName(nodeStructure)) Then
227
_writer.Write("leadingTrivia As GreenNode, trailingTrivia As GreenNode", StructureTypeName(
_parseTree
.RootStructure))
GreenNodes\GreenNodeWriter.vb (27)
39
If Not String.IsNullOrEmpty(
_parseTree
.NamespaceName) Then
40
_writer.WriteLine("Namespace {0}", Ident(
_parseTree
.NamespaceName) + ".Syntax.InternalSyntax")
46
If Not String.IsNullOrEmpty(
_parseTree
.VisitorName) Then
50
If Not String.IsNullOrEmpty(
_parseTree
.RewriteVisitorName) Then
54
If Not String.IsNullOrEmpty(
_parseTree
.NamespaceName) Then
75
For Each nodeStructure In
_parseTree
.NodeStructures.Values
94
If
_parseTree
.IsAbstract(nodeStructure) Then
131
If Not (
_parseTree
.IsAbstract(nodeStructure) OrElse nodeStructure.IsToken) Then
152
If Not String.IsNullOrEmpty(
_parseTree
.VisitorName) Then
169
If
_parseTree
.IsAbstract(nodeStructure) OrElse nodeStructure.IsToken OrElse nodeStructure.IsTrivia Then
173
_writer.WriteLine(" Return new {0}.Syntax.{1}(Me, parent, startLocation)",
_parseTree
.NamespaceName, StructureTypeName(nodeStructure))
182
If
_parseTree
.IsAbstract(nodeStructure) Then
197
If
_parseTree
.IsAbstract(nodeStructure) Then
212
If
_parseTree
.IsAbstract(nodeStructure) OrElse Not nodeStructure.IsToken Then
231
If
_parseTree
.IsAbstract(nodeStructure) OrElse nodeStructure.IsToken Then
326
_writer.Write(", leadingTrivia As GreenNode, trailingTrivia As GreenNode", StructureTypeName(
_parseTree
.RootStructure))
536
Dim isAbstract As Boolean =
_parseTree
.IsAbstract(nodeStructure)
576
If nodeStructure.ParentStructure IsNot Nothing AndAlso (
_parseTree
.IsAbstract(nodeStructure) OrElse nodeStructure.IsToken OrElse nodeStructure.IsTrivia) Then
579
_writer.WriteLine(" Public {0} Function Accept(ByVal visitor As {1}) As VisualBasicSyntaxNode", If(IsRoot(nodeStructure), "Overridable", "Overrides"),
_parseTree
.VisitorName)
593
_writer.WriteLine(" Friend MustInherit Class {0}", Ident(
_parseTree
.VisitorName))
596
_writer.WriteLine(" Public Overridable Function Visit(ByVal node As {0}) As VisualBasicSyntaxNode", StructureTypeName(
_parseTree
.RootStructure))
604
For Each nodeStructure In
_parseTree
.NodeStructures.Values
638
_writer.WriteLine(" Friend MustInherit Class {0}", Ident(
_parseTree
.RewriteVisitorName))
639
_writer.WriteLine(" Inherits {0}", Ident(
_parseTree
.VisitorName), StructureTypeName(
_parseTree
.RootStructure))
642
For Each nodeStructure In
_parseTree
.NodeStructures.Values
667
StructureTypeName(
_parseTree
.RootStructure))
RedNodes\RedNodeFactoryWriter.vb (6)
32
If Not String.IsNullOrEmpty(
_parseTree
.NamespaceName) Then
33
_writer.WriteLine("Namespace {0}", Ident(
_parseTree
.NamespaceName))
37
_writer.WriteLine(" Public Partial Class {0}", Ident(
_parseTree
.FactoryClassName))
43
If Not String.IsNullOrEmpty(
_parseTree
.NamespaceName) Then
54
For Each nodeStructure In
_parseTree
.NodeStructures.Values
66
If
_parseTree
.IsAbstract(nodeStructure) Then
RedNodes\RedNodeWriter.vb (29)
30
If Not String.IsNullOrEmpty(
_parseTree
.NamespaceName) Then
32
_writer.WriteLine("Namespace {0}", Ident(
_parseTree
.NamespaceName))
36
If Not String.IsNullOrEmpty(
_parseTree
.VisitorName) Then
41
If Not String.IsNullOrEmpty(
_parseTree
.RewriteVisitorName) Then
45
If Not String.IsNullOrEmpty(
_parseTree
.NamespaceName) Then
51
If Not String.IsNullOrEmpty(
_parseTree
.NamespaceName) Then
53
_writer.WriteLine("Namespace {0}", Ident(
_parseTree
.NamespaceName & ".Syntax"))
64
If Not String.IsNullOrEmpty(
_parseTree
.NamespaceName) Then
70
For Each enumerationType In
_parseTree
.Enumerations.Values
76
For Each nodeStructure In
_parseTree
.NodeStructures.Values
134
If
_parseTree
.IsAbstract(nodeStructure) Then
191
If Not String.IsNullOrEmpty(
_parseTree
.VisitorName) Then
211
If
_parseTree
.IsAbstract(nodeStructure) Then
266
If
_parseTree
.IsAbstract(childStructure) Then
274
If
_parseTree
.IsAbstract(nodeStructure) Then
337
If Not
_parseTree
.IsAbstract(nodeStructure) AndAlso StructureTypeName(nodeStructure) <> "IdentifierSyntax" Then
350
_writer.Write(", precedingTrivia As SyntaxTriviaList, followingTrivia As SyntaxTriviaList", StructureTypeName(
_parseTree
.RootTrivia))
593
Dim isAbstract As Boolean =
_parseTree
.IsAbstract(nodeStructure)
680
If
_parseTree
.IsAbstract(nodeStructure) Then
684
_writer.WriteLine(" Public {0} Function Accept(Of TResult)(ByVal visitor As {1}(Of TResult)) As TResult", If(IsRoot(nodeStructure), "Overridable", "Overrides"),
_parseTree
.VisitorName)
689
_writer.WriteLine(" Public {0} Sub Accept(ByVal visitor As {1})", If(IsRoot(nodeStructure), "Overridable", "Overrides"),
_parseTree
.VisitorName)
698
If
_parseTree
.IsAbstract(nodeStructure) OrElse nodeStructure.IsToken OrElse nodeStructure.IsTrivia Then
798
If
_parseTree
.IsAbstract(nodeStructure) OrElse nodeStructure.IsToken Then
860
If
_parseTree
.IsAbstract(nodeStructure) OrElse nodeStructure.IsToken Then
907
_writer.WriteLine(" Public MustInherit Class {0}{1}", Ident(
_parseTree
.VisitorName), If(withResult, "(Of TResult)", ""))
909
For Each nodeStructure In
_parseTree
.NodeStructures.Values
936
_writer.WriteLine(" Public MustInherit Class {0}", Ident(
_parseTree
.RewriteVisitorName))
937
_writer.WriteLine(" Inherits {0}(Of SyntaxNode)", Ident(
_parseTree
.VisitorName))
940
For Each nodeStructure In
_parseTree
.NodeStructures.Values
RedNodes\SyntaxFactsWriter.vb (5)
30
_writer.WriteLine("Namespace {0}", Ident(
_parseTree
.NamespaceName))
52
_writer.WriteLine("Namespace {0}", Ident(
_parseTree
.NamespaceName))
62
For Each nodeStructure In
_parseTree
.NodeStructures.Values
81
For Each nodeStructure In
_parseTree
.NodeStructures.Values
129
If
_parseTree
.IsAbstract(nodeStructure) Then Return ' abstract structures don't have factory methods
Tests\TestWriter.vb (4)
89
For Each nodeStructure In
_parseTree
.NodeStructures.Values
460
For Each nodeStructure In
_parseTree
.NodeStructures.Values
514
For Each nodeStructure In
_parseTree
.NodeStructures.Values
551
For Each nodeStructure In
_parseTree
.NodeStructures.Values
Util\WriteCsvNames.vb (7)
45
For Each enumerationType In
_parseTree
.Enumerations.Values
51
For Each nodeStructure In
_parseTree
.NodeStructures.Values
104
WriteCsvLine("class", Ident(
_parseTree
.FactoryClassName), "")
105
For Each nodeStructure In
_parseTree
.NodeStructures.Values
111
If
_parseTree
.IsAbstract(nodeStructure) Then Return ' abstract structures don't have factory methods
118
If nodeStructure.NodeKinds.Count >= 2 And Not
_parseTree
.NodeKinds.ContainsKey(FactoryName(nodeStructure)) Then
155
WriteCsvLine("factory", Ident(
_parseTree
.FactoryClassName), Ident(factoryFunctionName))
Util\WriteDumper.vb (4)
46
If Not String.IsNullOrEmpty(
_parseTree
.NamespaceName) Then
47
_writer.WriteLine("Namespace {0}",
_parseTree
.NamespaceName)
53
If Not String.IsNullOrEmpty(
_parseTree
.NamespaceName) Then
83
For Each nodeStructure In
_parseTree
.NodeStructures.Values
Util\WriteUtils.vb (4)
178
_parseTree
.ReportError(nodeChild.Element, "separator-name was not found, but is required for separated lists")
322
Return String.Format("Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList(of GreenNode)", StructureTypeName(
_parseTree
.RootStructure))
388
_parseTree
.ReportError(element, "Invalid kind specified")
483
Return children.TrueForAll(Function(child)
_parseTree
.IsAncestorOrSame(parent, child))