2 writes to _writer
VisualBasicSyntaxGenerator (2)
RedNodes\SyntaxFactsWriter.vb (2)
27
_writer
= writer
49
_writer
= writer
45 references to _writer
VisualBasicSyntaxGenerator (45)
RedNodes\SyntaxFactsWriter.vb (45)
29
_writer
.WriteLine()
30
_writer
.WriteLine("Namespace {0}", Ident(_parseTree.NamespaceName))
31
_writer
.WriteLine()
33
_writer
.WriteLine(" Partial Public Class SyntaxFacts")
35
_writer
.WriteLine(" End Class")
36
_writer
.WriteLine()
38
_writer
.WriteLine(" Public Module GeneratedExtensionSyntaxFacts")
40
_writer
.WriteLine(" End Module")
42
_writer
.WriteLine()
43
_writer
.WriteLine("End Namespace")
51
_writer
.WriteLine()
52
_writer
.WriteLine("Namespace {0}", Ident(_parseTree.NamespaceName))
53
_writer
.WriteLine(" Partial Public Class SyntaxFacts")
55
_writer
.WriteLine(" End Class")
56
_writer
.WriteLine("End Namespace")
75
_writer
.WriteLine(" ''' <summary>")
76
_writer
.WriteLine(" ''' Return keyword or punctuation text based on SyntaxKind")
77
_writer
.WriteLine(" ''' </summary>")
78
_writer
.WriteLine(" Public Shared Function GetText(kind As SyntaxKind) As String")
79
_writer
.WriteLine(" Select Case kind")
94
_writer
.WriteLine(" Case SyntaxKind.{0}", kind.Name)
97
_writer
.WriteLine(" Return {0}", tokenText)
99
_writer
.WriteLine(" Return ""{0}""", tokenText)
105
_writer
.WriteLine(" Case Else")
106
_writer
.WriteLine(" Return String.Empty")
107
_writer
.WriteLine(" End Select")
108
_writer
.WriteLine(" End Function")
114
_writer
.WriteLine(" ''' <summary>")
115
_writer
.WriteLine(" ''' Return keyword or punctuation text based on SyntaxKind")
116
_writer
.WriteLine(" ''' </summary>")
117
_writer
.WriteLine(" <Extension()>")
118
_writer
.WriteLine(" Public Function GetText(kind As SyntaxKind) As String")
119
_writer
.WriteLine(" Return SyntaxFacts.GetText(kind)")
120
_writer
.WriteLine(" End Function")
163
_writer
.WriteLine(" {1} Shared Function Is{0}(kind As SyntaxKind) As Boolean", name, If(publicAccessibility, "Public", "Friend"))
164
_writer
.WriteLine(" Select Case kind")
166
_writer
.WriteLine(" Case _")
169
_writer
.WriteLine(",")
171
_writer
.Write(" SyntaxKind.{0}", kind.Name)
174
_writer
.WriteLine()
175
_writer
.WriteLine(" Return True")
177
_writer
.WriteLine(" End Select")
178
_writer
.WriteLine(" Return False")
179
_writer
.WriteLine(" End Function")
180
_writer
.WriteLine()