127 references to ParseNodeStructure
VisualBasicSyntaxGenerator (127)
Grammar\GrammarGenerator.vb (8)
47
Dim compoundNodes = New List(Of
ParseNodeStructure
)
181
Private Function HandleChildren(structureNode As
ParseNodeStructure
, children As IEnumerable(Of ParseNodeChild), Optional delim As String = " ") As Production
186
Private Function HandleField(structureNode As
ParseNodeStructure
, child As ParseNodeChild) As Production
196
Private Function HandleSeparatedList(structureNode As
ParseNodeStructure
, child As ParseNodeChild) As Production
205
Private Function HandleList(structureNode As
ParseNodeStructure
, child As ParseNodeChild) As Production
209
Private Function HandleChildKind(structureNode As
ParseNodeStructure
,
246
Private Function GetMappedKinds(structureNode As
ParseNodeStructure
,
278
Private Function GetNonRootParent(n As ParseNodeKind) As
ParseNodeStructure
GreenNodes\GreenNodeFactoryWriter.vb (6)
73
Private Sub GenerateFactoryMethodsForStructure(nodeStructure As
ParseNodeStructure
, contextual As Boolean)
93
Private Sub GenerateFactoryMethods(nodeStructure As
ParseNodeStructure
, nodeKind As ParseNodeKind, contextual As Boolean)
115
Private Sub CheckStructureParam(parent As
ParseNodeStructure
, nodeKind As ParseNodeKind, child As ParseNodeChild, factoryFunctionName As String)
146
Private Sub GenerateFactoryMethod(nodeStructure As
ParseNodeStructure
, nodeKind As ParseNodeKind, internalForm As Boolean, contextual As Boolean)
321
Private Sub GenerateCtorArgs(nodeStructure As
ParseNodeStructure
,
374
Private Sub GenerateNodeStructureChildParameter(node As
ParseNodeStructure
, child As ParseNodeChild, Optional conflictName As String = Nothing)
GreenNodes\GreenNodeWriter.vb (16)
83
Private Sub GenerateNodeStructureClass(nodeStructure As
ParseNodeStructure
)
167
Private Sub GenerateCreateRed(nodeStructure As
ParseNodeStructure
)
180
Private Sub GenerateSetDiagnostics(nodeStructure As
ParseNodeStructure
)
195
Private Sub GenerateSetAnnotations(nodeStructure As
ParseNodeStructure
)
210
Private Sub GenerateWithTrivia(nodeStructure As
ParseNodeStructure
)
230
Private Sub GenerateGetChild(nodeStructure As
ParseNodeStructure
)
280
Private Sub GenerateNodeStructureMembers(nodeStructure As
ParseNodeStructure
)
295
Private Sub GenerateNodeStructureConstructor(nodeStructure As
ParseNodeStructure
,
432
Private Sub GenerateNodeStructureConstructorParameters(nodeStructure As
ParseNodeStructure
, errorParam As String, annotationParam As String, precedingTriviaParam As String, followingTriviaParam As String)
473
Private Function GetModifiers(containingStructure As
ParseNodeStructure
, isOverride As Boolean, name As String) As String
505
Private Sub GenerateNodeChildProperty(node As
ParseNodeStructure
, child As ParseNodeChild, childIndex As Integer)
532
Private Sub GenerateNodeWithChildProperty(withChild As ParseNodeChild, childIndex As Integer, nodeStructure As
ParseNodeStructure
)
575
Private Sub GenerateAccept(nodeStructure As
ParseNodeStructure
)
586
Private Sub GenerateRootNodeSpecialMethods(nodeStructure As
ParseNodeStructure
)
615
Private Sub GenerateVisitorMethod(nodeStructure As
ParseNodeStructure
)
651
Private Sub GenerateRewriteVisitorMethod(nodeStructure As
ParseNodeStructure
)
RedNodes\RedNodeFactoryWriter.vb (16)
65
Private Sub GenerateFactoryMethodsForStructure(nodeStructure As
ParseNodeStructure
)
89
Private Sub GenerateFactoryMethods(nodeStructure As
ParseNodeStructure
, nodeKind As ParseNodeKind)
126
Private Sub GenerateChildTokenKindsForNodeKinds(nodeStructure As
ParseNodeStructure
)
135
Private Sub GenerateChildTokenKindsForNodeKinds(nodeStructure As
ParseNodeStructure
, child As ParseNodeChild)
161
Private Sub GenerateFullFactoryMethod(nodeStructure As
ParseNodeStructure
, nodeKind As ParseNodeKind)
335
Private Function GenerateFullFactoryMethodFunctionLine(nodeStructure As
ParseNodeStructure
, nodeKind As ParseNodeKind, factoryFunctionName As String, allFields As List(Of ParseNodeField), allChildren As List(Of ParseNodeChild), allFactoryChildren As IEnumerable(Of ParseNodeChild), isPunctuation As Boolean, includeTriviaForTokens As Boolean) As Boolean
445
Private Sub CheckChildNode(nodeStructure As
ParseNodeStructure
, nodeKind As ParseNodeKind, child As ParseNodeChild, paramName As String, factoryFunctionName As String)
510
Private Sub CheckChildToken(nodeStructure As
ParseNodeStructure
, nodeKind As ParseNodeKind, child As ParseNodeChild, paramName As String, factoryFunctionName As String)
578
Private Function HasDefaultToken(nodeStructure As
ParseNodeStructure
,
600
Private Function GetAllFactoryChildrenWithoutAutoCreatableTokens(nodeStructure As
ParseNodeStructure
, nodeKind As ParseNodeKind) As List(Of ParseNodeChild)
604
Private Function GetDefaultedFactoryParameterExpression(nodeStructure As
ParseNodeStructure
, nodeKind As ParseNodeKind, child As ParseNodeChild) As String
629
Private Function IsRequiredFactoryChild(node As
ParseNodeStructure
, nodeKind As ParseNodeKind, child As ParseNodeChild) As Boolean
633
Private Function GetAllRequiredFactoryChildren(nodeStructure As
ParseNodeStructure
, nodeKind As ParseNodeKind) As List(Of ParseNodeChild)
637
Private Sub GenerateSecondaryFactoryMethod(nodeStructure As
ParseNodeStructure
, nodeKind As ParseNodeKind, allFullFactoryChildren As List(Of ParseNodeChild), allFields As List(Of ParseNodeField), allFactoryChildren As List(Of ParseNodeChild), getDefaultedParameter As Func(Of
ParseNodeStructure
, ParseNodeKind, ParseNodeChild, String), Optional substituteString As Boolean = False, Optional substituteParamArray As Boolean = False)
812
Private Sub GenerateNodeStructureChildParameter(node As
ParseNodeStructure
, child As ParseNodeChild, Optional conflictName As String = Nothing, Optional makeOptional As Boolean = False, Optional substituteString As Boolean = False, Optional substituteParamArray As Boolean = False)
RedNodes\RedNodeWriter.vb (21)
122
Private Sub GenerateNodeStructureClass(nodeStructure As
ParseNodeStructure
)
207
Private Sub GenerateChildListAccessor(nodeStructure As
ParseNodeStructure
, child As ParseNodeChild)
237
Private Function HasNestedList(nodeStructure As
ParseNodeStructure
, child As ParseNodeChild) As Boolean
244
Private Function GetNestedList(nodeStructure As
ParseNodeStructure
, child As ParseNodeChild) As ParseNodeChild
264
Private Sub GeneratedNestedChildListAccessor(nodeStructure As
ParseNodeStructure
, child As ParseNodeChild)
303
Private Sub GenerateIsTerminal(nodeStructure As
ParseNodeStructure
)
312
Private Sub GenerateNodeStructureMembers(nodeStructure As
ParseNodeStructure
)
324
Private Sub GenerateNodeStructureConstructor(nodeStructure As
ParseNodeStructure
)
438
Private Sub GenerateFactoryChildParameter(node As
ParseNodeStructure
, child As ParseNodeChild, Optional conflictName As String = Nothing)
443
Private Function GetModifiers(containingStructure As
ParseNodeStructure
, isOverride As Boolean, name As String) As String
478
Private Sub GenerateNodeChildProperty(nodeStructure As
ParseNodeStructure
, child As ParseNodeChild, childIndex As Integer, isOverride As Boolean)
523
Private Sub GenerateNodeChildPropertyRedAccessLogic(nodeStructure As
ParseNodeStructure
, child As ParseNodeChild, childIndex As Integer, isOverride As Boolean, extraIndent As String)
587
Private Sub GenerateNodeWithChildProperty(withChild As ParseNodeChild, childIndex As Integer, nodeStructure As
ParseNodeStructure
)
659
Private Sub GenerateNodeSeparatedListChildProperty(node As
ParseNodeStructure
, child As ParseNodeChild, childIndex As Integer, isOverride As Boolean)
679
Private Sub GenerateAccept(nodeStructure As
ParseNodeStructure
)
696
Private Sub GenerateUpdate(nodeStructure As
ParseNodeStructure
)
792
Private Sub GenerateRootNodeSpecialMethods(nodeStructure As
ParseNodeStructure
)
797
Private Sub GenerateGetNodeSlot(nodeStructure As
ParseNodeStructure
, allChildren As List(Of ParseNodeChild))
859
Private Sub GenerateGetCachedSlot(nodeStructure As
ParseNodeStructure
, allChildren As List(Of ParseNodeChild))
920
Private Sub GenerateVisitorMethod(nodeStructure As
ParseNodeStructure
, withResult As Boolean)
949
Private Sub GenerateRewriteVisitorMethod(nodeStructure As
ParseNodeStructure
)
RedNodes\SyntaxFactsWriter.vb (2)
128
Private Sub GenerateFactoryMethodsForStructure(nodeStructure As
ParseNodeStructure
)
138
Private Sub GenerateSyntaxFacts(nodeStructure As
ParseNodeStructure
)
Tests\TestWriter.vb (8)
99
Private Sub GenerateFactoryCall(isGreen As Boolean, nodeStructure As
ParseNodeStructure
)
110
Private Sub GenerateFactoryCall(isGreen As Boolean, nodeStructure As
ParseNodeStructure
, nodeKind As ParseNodeKind)
469
Private Sub GenerateFactoryCallTest(isGreen As Boolean, nodeStructure As
ParseNodeStructure
)
475
Private Sub GenerateFactoryCallTest(isGreen As Boolean, nodeStructure As
ParseNodeStructure
, nodeKind As ParseNodeKind)
521
Private Sub GenerateRewriterTest(isGreen As Boolean, nodeStructure As
ParseNodeStructure
)
527
Private Sub GenerateRewriterTest(isGreen As Boolean, nodeStructure As
ParseNodeStructure
, nodeKind As ParseNodeKind)
558
Private Sub GenerateVisitorTest(isGreen As Boolean, nodeStructure As
ParseNodeStructure
)
564
Private Sub GenerateVisitorTest(isGreen As Boolean, nodeStructure As
ParseNodeStructure
, nodeKind As ParseNodeKind)
Util\WriteCsvNames.vb (5)
71
Private Sub WriteNodeStructure(nodeStructure As
ParseNodeStructure
)
110
Private Sub GenerateFactoryMethodsForStructure(nodeStructure As
ParseNodeStructure
)
123
Private Sub GenerateFactoryMethods(nodeStructure As
ParseNodeStructure
, nodeKind As ParseNodeKind)
131
Private Function HasSimplifiedFactory(nodeStructure As
ParseNodeStructure
, nodeKind As ParseNodeKind) As Boolean
142
Private Sub GenerateFactoryMethod(nodeStructure As
ParseNodeStructure
, nodeKind As ParseNodeKind, simplifiedForm As Boolean)
Util\WriteDumper.vb (1)
89
Private Sub GenerateDumpVisitorMethod(nodeStructure As
ParseNodeStructure
)
Util\WriteUtils.vb (20)
37
Protected Function StructureTypeName(nodeStructure As
ParseNodeStructure
) As String
52
Protected Function FactoryName(nodeStructure As
ParseNodeStructure
) As String
64
Protected Function SyntaxFactName(nodeStructure As
ParseNodeStructure
) As String
200
Protected Function ChildPropertyTypeRef(nodeStructure As
ParseNodeStructure
, nodeChild As ParseNodeChild, Optional isGreen As Boolean = False, Optional denyOverride As Boolean = False) As String
223
Dim childKindStructure As
ParseNodeStructure
= Nothing
312
Protected Function ChildFactoryTypeRef(nodeStructure As
ParseNodeStructure
, nodeChild As ParseNodeChild, Optional isGreen As Boolean = False, Optional internalForm As Boolean = False) As String
393
Protected Function KindTypeStructure(kind As Object) As
ParseNodeStructure
450
Protected Function VisitorMethodName(nodeStructure As
ParseNodeStructure
) As String
458
Protected Function IsRoot(nodeStructure As
ParseNodeStructure
) As Boolean
464
Protected Function GetCommonStructure(kindList As List(Of ParseNodeKind)) As
ParseNodeStructure
468
Dim candidate As
ParseNodeStructure
= structList(0)
482
Protected Function IsAncestorOfAll(parent As
ParseNodeStructure
, children As List(Of
ParseNodeStructure
)) As Boolean
488
Protected Function GetAllFieldsOfStructure(struct As
ParseNodeStructure
) As List(Of ParseNodeField)
502
Protected Function GetAllChildrenOfStructure(struct As
ParseNodeStructure
) As List(Of ParseNodeChild)
524
Protected Function GetAllFactoryChildrenOfStructure(struct As
ParseNodeStructure
) As IEnumerable(Of ParseNodeChild)
658
Protected Sub GenerateXmlComment(writer As TextWriter, struct As
ParseNodeStructure
, indent As Integer, includeRemarks As Boolean)
918
Public Function IsAutoCreatableToken(node As
ParseNodeStructure
, nodeKind As ParseNodeKind, child As ParseNodeChild) As Boolean
931
Public Function IsAutoCreatableNodeOfAutoCreatableTokens(node As
ParseNodeStructure
, nodeKind As ParseNodeKind, child As ParseNodeChild) As Boolean
952
Public Function IsAutoCreatableChild(node As
ParseNodeStructure
, nodeKind As ParseNodeKind, child As ParseNodeChild) As Boolean
XML\ParseTreeDescription.vb (19)
32
Public NodeStructures As New Dictionary(Of String,
ParseNodeStructure
)
44
Public IsAbstract As New Dictionary(Of
ParseNodeStructure
, Boolean)
47
Public RootStructure As
ParseNodeStructure
50
Public RootToken, RootTrivia As
ParseNodeStructure
76
Public Function HasAnyChildren(struct As
ParseNodeStructure
) As Boolean
121
Private Sub SetIsTokenAndIsTrivia(struct As
ParseNodeStructure
)
199
Dim nodeStructure As
ParseNodeStructure
= Nothing
217
Public Function IsAncestorOrSame(parent As
ParseNodeStructure
, child As
ParseNodeStructure
) As Boolean
259
Public ReadOnly Property ParentStructure() As
ParseNodeStructure
264
Dim nodeStructure As
ParseNodeStructure
= Nothing
350
Dim nodeStructure As
ParseNodeStructure
= Me
378
Public ReadOnly Property NodeStructure() As
ParseNodeStructure
383
Dim parseNodeStructure As
ParseNodeStructure
= Nothing
395
Public Sub New(el As XElement, struct As
ParseNodeStructure
)
434
Public ReadOnly ContainingStructure As
ParseNodeStructure
442
Public Sub New(el As XElement, struct As
ParseNodeStructure
)
498
Public ReadOnly ContainingStructure As
ParseNodeStructure
530
Public Sub New(el As XElement, struct As
ParseNodeStructure
)
XML\TreeValidator.vb (5)
26
For Each nodeStructure As
ParseNodeStructure
In tree.NodeStructures.Values
41
For Each nodeStructure As
ParseNodeStructure
In tree.NodeStructures.Values
53
Dim referencedStructures As New List(Of
ParseNodeStructure
)
59
For Each nodeStructure As
ParseNodeStructure
In tree.NodeStructures.Values
76
Dim nodeStructure As
ParseNodeStructure