1 write to _rules
VisualBasicSyntaxGenerator (1)
Grammar\GrammarGenerator.vb (1)
39
_rules
= Me._parseTree.NodeStructures.Values.ToDictionary(
15 references to _rules
VisualBasicSyntaxGenerator (15)
Grammar\GrammarGenerator.vb (15)
52
_rules
(parent.Name).Add(RuleReference(structureNode.Name))
99
_rules
.Add(nodeKind.Name, New List(Of Production)())
100
_rules
(nodeKind.Name).Add(HandleChildren(structureNode, mappedChildren))
103
_rules
(structureNode.Name).Add(RuleReference(nodeKind.Name))
128
_rules
(structureNode.Name).Add(HandleChildren(structureNode, children.Select(
135
_rules
(structureNode.Name).Add(HandleChildren(structureNode, children))
142
_rules
("SkippedTokensTriviaSyntax").Clear()
143
_rules
("SkippedTokensTriviaSyntax").Add(RuleReference("SyntaxToken").Suffix("*"))
145
_rules
("PunctuationSyntax").Clear()
148
Dim lexicalRules =
_rules
.Values.SelectMany(Function(ps) ps).SelectMany(Function(p) p.ReferencedRules).
151
Return Not
_rules
.TryGetValue(r, productions) OrElse productions.Count = 0
154
_rules
(name) = New List(Of Production) From {New Production("/* see lexical specification */")}
168
For Each rule In _majorRules.Concat(
_rules
.Keys.OrderBy(Function(a) a))
304
If
_rules
.ContainsKey(nodeKind.Name) Then
317
Dim sorted =
_rules
(name).Distinct().OrderBy(Function(v) v)