102 references to ParseNodeKind
VisualBasicSyntaxGenerator (102)
Grammar\GrammarGenerator.vb (12)
71
Dim childKinds = TryCast(c.ChildKind, List(Of
ParseNodeKind
))
80
Function(c) DirectCast(c.ChildKind, List(Of
ParseNodeKind
)))
123
Dim kinds = TryCast(child.ChildKind, List(Of
ParseNodeKind
))
224
Dim nodeKind = If(mappedKinds.nodeKind, TryCast(childKind,
ParseNodeKind
))
225
Dim nodeKindList = If(mappedKinds.nodeKinds, TryCast(childKind, List(Of
ParseNodeKind
)))
247
child As ParseNodeChild) As (nodeKind As
ParseNodeKind
, nodeKinds As List(Of
ParseNodeKind
))
255
Dim kind As
ParseNodeKind
= Nothing
261
Dim kindList = New List(Of
ParseNodeKind
)()
263
Dim kind As
ParseNodeKind
= Nothing
278
Private Function GetNonRootParent(n As
ParseNodeKind
) As ParseNodeStructure
287
Private Function HandleNodeKind(nodeKind As
ParseNodeKind
) As Production
GreenNodes\GreenNodeFactoryWriter.vb (7)
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)
119
Dim childNodeKind As
ParseNodeKind
= TryCast(child.ChildKind,
ParseNodeKind
)
124
ElseIf TypeOf child.ChildKind Is List(Of
ParseNodeKind
) Then
146
Private Sub GenerateFactoryMethod(nodeStructure As ParseNodeStructure, nodeKind As
ParseNodeKind
, internalForm As Boolean, contextual As Boolean)
322
nodeKind As
ParseNodeKind
,
RedNodes\RedNodeFactoryWriter.vb (19)
89
Private Sub GenerateFactoryMethods(nodeStructure As ParseNodeStructure, nodeKind As
ParseNodeKind
)
142
Dim childNodeKind As
ParseNodeKind
= Nothing
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)
451
Dim childNodeKind = TryCast(child.ChildKind,
ParseNodeKind
)
452
Dim childNodeKinds = TryCast(child.ChildKind, List(Of
ParseNodeKind
))
510
Private Sub CheckChildToken(nodeStructure As ParseNodeStructure, nodeKind As
ParseNodeKind
, child As ParseNodeChild, paramName As String, factoryFunctionName As String)
511
Dim childNodeKind = TryCast(child.ChildKind,
ParseNodeKind
)
512
Dim childNodeKinds = TryCast(child.ChildKind, List(Of
ParseNodeKind
))
579
nodeKind As
ParseNodeKind
) As Boolean
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)
803
Dim childKind = TryCast(child.ChildKind,
ParseNodeKind
)
807
Dim childKinds = TryCast(child.ChildKind, List(Of
ParseNodeKind
))
RedNodes\SyntaxFactsWriter.vb (1)
157
Private Sub GenerateSyntaxFact(name As String, nodeKinds As IList(Of
ParseNodeKind
), Optional publicAccessibility As Boolean = True)
Tests\TestWriter.vb (9)
110
Private Sub GenerateFactoryCall(isGreen As Boolean, nodeStructure As ParseNodeStructure, nodeKind As
ParseNodeKind
)
317
Dim childNodeKind As
ParseNodeKind
= If(Not child Is Nothing, TryCast(child.ChildKind,
ParseNodeKind
), Nothing)
319
If TypeOf child.ChildKind Is List(Of
ParseNodeKind
) Then
324
childNodeKind = DirectCast(child.ChildKind, List(Of
ParseNodeKind
)).Item(0)
346
If Not TypeOf child.ChildKind Is List(Of
ParseNodeKind
) Then
475
Private Sub GenerateFactoryCallTest(isGreen As Boolean, nodeStructure As ParseNodeStructure, nodeKind As
ParseNodeKind
)
527
Private Sub GenerateRewriterTest(isGreen As Boolean, nodeStructure As ParseNodeStructure, nodeKind As
ParseNodeKind
)
564
Private Sub GenerateVisitorTest(isGreen As Boolean, nodeStructure As ParseNodeStructure, nodeKind As
ParseNodeKind
)
Util\WriteCsvNames.vb (4)
91
Private Sub WriteKind(kind As
ParseNodeKind
)
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\WriteUtils.vb (23)
47
Protected Function FactoryName(nodeKind As
ParseNodeKind
) As String
229
Dim childKinds As New HashSet(Of
ParseNodeKind
)()
357
Return nodeField.IsList AndAlso (TypeOf nodeField.ChildKind Is
ParseNodeKind
OrElse TypeOf nodeField.ChildKind Is List(Of
ParseNodeKind
))
362
Return Not nodeField.IsList AndAlso (TypeOf nodeField.ChildKind Is
ParseNodeKind
OrElse TypeOf nodeField.ChildKind Is List(Of
ParseNodeKind
))
377
If TypeOf kind Is
ParseNodeKind
Then
378
Return StructureTypeName(CType(kind,
ParseNodeKind
).NodeStructure)
379
ElseIf TypeOf kind Is List(Of
ParseNodeKind
) Then
380
Dim commonStructure = GetCommonStructure(CType(kind, List(Of
ParseNodeKind
)))
394
If TypeOf kind Is
ParseNodeKind
Then
395
Return CType(kind,
ParseNodeKind
).NodeStructure
396
ElseIf TypeOf kind Is List(Of
ParseNodeKind
) Then
397
Return GetCommonStructure(CType(kind, List(Of
ParseNodeKind
)))
464
Protected Function GetCommonStructure(kindList As List(Of
ParseNodeKind
)) As ParseNodeStructure
705
Protected Sub GenerateXmlComment(writer As TextWriter, kind As
ParseNodeKind
, indent As Integer)
903
Public Function GetChildNodeKind(nodeKind As
ParseNodeKind
, child As ParseNodeChild) As
ParseNodeKind
904
Dim childNodeKind = TryCast(child.ChildKind,
ParseNodeKind
)
905
Dim childNodeKinds = TryCast(child.ChildKind, List(Of
ParseNodeKind
))
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 (27)
35
Public NodeKinds As New Dictionary(Of String,
ParseNodeKind
)
147
Public Function ParseOneNodeKind(typeString As String, referencingNode As XNode) As
ParseNodeKind
157
Dim typeList As New List(Of
ParseNodeKind
)
161
If (TypeOf foundType Is List(Of
ParseNodeKind
)) Then
162
typeList.AddRange(CType(foundType, List(Of
ParseNodeKind
)))
164
If Not TypeOf foundType Is
ParseNodeKind
Then
167
typeList.Add(CType(foundType,
ParseNodeKind
))
180
Dim typeList As New List(Of
ParseNodeKind
)
183
If (TypeOf foundType Is List(Of
ParseNodeKind
)) Then
184
typeList.AddRange(CType(foundType, List(Of
ParseNodeKind
)))
186
If Not TypeOf foundType Is
ParseNodeKind
Then
189
typeList.Add(CType(foundType,
ParseNodeKind
))
290
Public NodeKinds As List(Of
ParseNodeKind
)
345
Public Function GetAllKinds() As List(Of
ParseNodeKind
)
346
Return New List(Of
ParseNodeKind
)(From kvPair In ParseTree.NodeKinds Where ParseTree.IsAncestorOrSame(Me, kvPair.Value.NodeStructure) Select kvPair.Value)
525
Public KindForNodeKind As Dictionary(Of String,
ParseNodeKind
)
528
Private _defaultChildKind As
ParseNodeKind
569
Public ReadOnly Property ChildKind(kind As String) As
ParseNodeKind
572
KindForNodeKind = New Dictionary(Of String,
ParseNodeKind
)
584
Dim result As
ParseNodeKind
= Nothing
590
Public ReadOnly Property ChildKind(containerKinds As IList(Of
ParseNodeKind
)) As List(Of
ParseNodeKind
)
592
Dim allChildkinds As List(Of
ParseNodeKind
) = TryCast(ChildKind(), List(Of
ParseNodeKind
))
597
Dim childkindsForContainer = New List(Of
ParseNodeKind
)
630
Public ReadOnly Property DefaultChildKind() As
ParseNodeKind
633
_defaultChildKind = CType(ParseTree.ParseNodeKind(_defaultChildKindName, Element),
ParseNodeKind
)