97 references to SyntaxFactory
Microsoft.CodeAnalysis.VisualBasic (97)
Parser\Parser.vb (1)
427
Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.
SyntaxFactory
.EndOfFileToken()))
Scanner\Scanner.vb (6)
349
Return
SyntaxFactory
.DisabledTextTrivia(GetTextNotInterned(span.Start, span.Length))
783
tList.Add(
SyntaxFactory
.DisabledTextTrivia(GetText(start, width)))
796
tList.Add(
SyntaxFactory
.EndOfLineTrivia(GetText(start, width)))
812
Dim trivia =
SyntaxFactory
.ConflictMarkerTrivia(GetText(start, _lineBufferOffset - start))
2582
Dim result As SyntaxToken =
SyntaxFactory
.StringLiteralToken(spelling, GetScratchText(scratch), precedingTrivia.Node, followingTrivia.Node)
2610
Dim strTk =
SyntaxFactory
.StringLiteralToken(sp, GetScratchText(scratch), precedingTrivia.Node, followingTrivia.Node)
Scanner\ScannerInterpolatedString.vb (2)
229
Return
SyntaxFactory
.InterpolatedStringTextToken(text, value, Nothing, ScanWhitespace(pendingWhitespace))
234
Return
SyntaxFactory
.Token(Nothing, SyntaxKind.EndOfInterpolatedStringToken, Nothing, String.Empty)
Scanner\ScannerXml.vb (3)
88
Return
SyntaxFactory
.Token(Nothing, SyntaxKind.EndOfXmlToken, Nothing, String.Empty)
782
Return
SyntaxFactory
.Token(precedingTrivia.Node, SyntaxKind.EndOfXmlToken, Nothing, String.Empty)
934
Dim data =
SyntaxFactory
.MissingToken(SyntaxKind.SingleQuoteToken)
Scanner\TokenFactories.vb (24)
37
Private Shared ReadOnly s_singleSpaceWhitespaceTrivia As SyntaxTrivia =
SyntaxFactory
.WhitespaceTrivia(" ")
38
Private Shared ReadOnly s_fourSpacesWhitespaceTrivia As SyntaxTrivia =
SyntaxFactory
.WhitespaceTrivia(" ")
39
Private Shared ReadOnly s_eightSpacesWhitespaceTrivia As SyntaxTrivia =
SyntaxFactory
.WhitespaceTrivia(" ")
40
Private Shared ReadOnly s_twelveSpacesWhitespaceTrivia As SyntaxTrivia =
SyntaxFactory
.WhitespaceTrivia(" ")
41
Private Shared ReadOnly s_sixteenSpacesWhitespaceTrivia As SyntaxTrivia =
SyntaxFactory
.WhitespaceTrivia(" ")
164
ws =
SyntaxFactory
.WhitespaceTrivia(text)
174
ws =
SyntaxFactory
.EndOfLineTrivia(text)
187
ct =
SyntaxFactory
.ColonTrivia(text)
193
Private Shared ReadOnly s_crLfTrivia As SyntaxTrivia =
SyntaxFactory
.EndOfLineTrivia(vbCrLf)
206
ws =
SyntaxFactory
.LineContinuationTrivia(text)
216
ws =
SyntaxFactory
.DocumentationCommentExteriorTrivia(text)
223
Return
SyntaxFactory
.SyntaxTrivia(SyntaxKind.CommentTrivia, text)
291
id =
SyntaxFactory
.Identifier(spelling, contextualKind, isBracketed, BaseSpelling, TypeCharacter, precedingTrivia.Node, followingTrivia.Node)
293
id =
SyntaxFactory
.Identifier(spelling, precedingTrivia.Node, followingTrivia.Node)
463
Return
SyntaxFactory
.ColonToken
550
Return
SyntaxFactory
.StatementTerminatorToken
639
p =
SyntaxFactory
.IntegerLiteralToken(
662
p =
SyntaxFactory
.CharacterLiteralToken(spelling, value, precedingTrivia.Node, followingTrivia.Node)
678
p =
SyntaxFactory
.DateLiteralToken(spelling, value, precedingTrivia.Node, followingTrivia.Node)
698
p =
SyntaxFactory
.FloatingLiteralToken(
724
p =
SyntaxFactory
.DecimalLiteralToken(
742
Dim result1 =
SyntaxFactory
.BadToken(SyntaxSubKind.None, spelling, precedingTrivia.Node, followingTrivia.Node)
748
Return
SyntaxFactory
.Token(precedingTrivia.Node, SyntaxKind.EndOfFileToken, Nothing, String.Empty)
751
Private ReadOnly _simpleEof As SyntaxToken =
SyntaxFactory
.Token(Nothing, SyntaxKind.EndOfFileToken, Nothing, String.Empty)
Scanner\XmlDocComments.vb (4)
121
docCommentSyntax =
SyntaxFactory
.DocumentationCommentTrivia(nodes)
255
Return
SyntaxFactory
.Token(Nothing, SyntaxKind.EndOfXmlToken, Nothing, String.Empty)
377
result =
SyntaxFactory
.Token(precedingTrivia.ToList.Node, SyntaxKind.EndOfXmlToken, Nothing, String.Empty)
481
Return
SyntaxFactory
.Token(precedingTrivia.Node, SyntaxKind.EndOfXmlToken, Nothing, String.Empty)
Scanner\XmlTokenFactories.vb (21)
18
Dim missing As SyntaxToken =
SyntaxFactory
.MissingToken(kind)
82
Dim result1 =
SyntaxFactory
.BadToken(subkind, spelling, precedingTrivia.Node, followingTrivia)
172
Return
SyntaxFactory
.XmlNameToken(text, contextualKind, precedingTrivia.Node, followingTrivia)
185
Return
SyntaxFactory
.XmlTextLiteralToken(text, Value, precedingTrivia.Node, Nothing)
206
Return
SyntaxFactory
.XmlEntityLiteralToken(GetText(TokenWidth), Value, precedingTrivia.Node, Nothing)
209
Private Shared ReadOnly s_xmlAmpToken As XmlTextTokenSyntax =
SyntaxFactory
.XmlEntityLiteralToken("&", "&", Nothing, Nothing)
215
Return If(precedingTrivia.Node Is Nothing, s_xmlAmpToken,
SyntaxFactory
.XmlEntityLiteralToken("&", "&", precedingTrivia.Node, Nothing))
218
Private Shared ReadOnly s_xmlAposToken As XmlTextTokenSyntax =
SyntaxFactory
.XmlEntityLiteralToken("'", "'", Nothing, Nothing)
224
Return If(precedingTrivia.Node Is Nothing, s_xmlAposToken,
SyntaxFactory
.XmlEntityLiteralToken("'", "'", precedingTrivia.Node, Nothing))
227
Private Shared ReadOnly s_xmlGtToken As XmlTextTokenSyntax =
SyntaxFactory
.XmlEntityLiteralToken(">", ">", Nothing, Nothing)
233
Return If(precedingTrivia.Node Is Nothing, s_xmlGtToken,
SyntaxFactory
.XmlEntityLiteralToken(">", "&", precedingTrivia.Node, Nothing))
236
Private Shared ReadOnly s_xmlLtToken As XmlTextTokenSyntax =
SyntaxFactory
.XmlEntityLiteralToken("<", "<", Nothing, Nothing)
242
Return If(precedingTrivia.Node Is Nothing, s_xmlLtToken,
SyntaxFactory
.XmlEntityLiteralToken("<", "<", precedingTrivia.Node, Nothing))
245
Private Shared ReadOnly s_xmlQuotToken As XmlTextTokenSyntax =
SyntaxFactory
.XmlEntityLiteralToken(""", """", Nothing, Nothing)
251
Return If(precedingTrivia.Node Is Nothing, s_xmlQuotToken,
SyntaxFactory
.XmlEntityLiteralToken(""", """", precedingTrivia.Node, Nothing))
267
Return
SyntaxFactory
.XmlTextLiteralToken(text, value, precedingTrivia.Node, Nothing)
271
Private Shared ReadOnly s_docCommentCrLfToken As XmlTextTokenSyntax =
SyntaxFactory
.DocumentationCommentLineBreakToken(vbCrLf, vbLf, Nothing, Nothing)
285
Return
SyntaxFactory
.DocumentationCommentLineBreakToken(text, vbLf, precedingTrivia.Node, Nothing)
297
Return DirectCast(
SyntaxFactory
.XmlTextLiteralToken(text, text, precedingTrivia.Node, Nothing).SetDiagnostics({ErrorFactory.ErrorInfo(err)}), XmlTextTokenSyntax)
378
Return
SyntaxFactory
.XmlTextLiteralToken(text, text, precedingTrivia.Node, Nothing)
403
Return
SyntaxFactory
.XmlTextLiteralToken(text, text, precedingTrivia.Node, Nothing)
Syntax\InternalSyntax\SyntaxFactory.vb (6)
33
trivia = If(elastic,
SyntaxFactory
.ElasticCarriageReturn,
SyntaxFactory
.CarriageReturn)
35
trivia = If(elastic,
SyntaxFactory
.ElasticLineFeed,
SyntaxFactory
.LineFeed)
37
trivia = If(elastic,
SyntaxFactory
.ElasticCarriageReturnLineFeed,
SyntaxFactory
.CarriageReturnLineFeed)
Syntax\InternalSyntax\SyntaxNodeExtensions.vb (1)
469
Dim skippedTokensTrivia As GreenNode =
SyntaxFactory
.SkippedTokensTrivia(_skippedTokensBuilder.ToList())
Syntax\InternalSyntax\SyntaxNodeFactories.vb (27)
156
t =
SyntaxFactory
.Token(Nothing, SyntaxKind.StatementTerminatorToken, Nothing, String.Empty)
159
t =
SyntaxFactory
.EndOfFileToken()
315
t =
SyntaxFactory
.MissingKeyword(kind)
358
Return
SyntaxFactory
.MissingIdentifier(kind)
398
t =
SyntaxFactory
.MissingPunctuation(kind)
401
t =
SyntaxFactory
.FloatingLiteralToken("", TypeCharacter.None, Nothing, Nothing, Nothing)
404
t =
SyntaxFactory
.DecimalLiteralToken("", TypeCharacter.None, Nothing, Nothing, Nothing)
407
t =
SyntaxFactory
.DateLiteralToken("", Nothing, Nothing, Nothing)
410
t =
SyntaxFactory
.XmlNameToken("", SyntaxKind.XmlNameToken, Nothing, Nothing)
413
t =
SyntaxFactory
.XmlTextLiteralToken("", "", Nothing, Nothing)
425
t =
SyntaxFactory
.MissingPunctuation(kind)
428
t =
SyntaxFactory
.MissingIdentifier()
434
t =
SyntaxFactory
.MissingStringLiteral()
437
t =
SyntaxFactory
.MissingCharacterLiteralToken()
440
t =
SyntaxFactory
.InterpolatedStringTextToken("", "", Nothing, Nothing)
514
Private Shared ReadOnly s_missingExpr As ExpressionSyntax =
SyntaxFactory
.IdentifierName(
SyntaxFactory
.Identifier("", Nothing, Nothing))
519
Private Shared ReadOnly s_emptyStatement As EmptyStatementSyntax =
SyntaxFactory
.EmptyStatement(NotMissingEmptyToken)
524
Private Shared ReadOnly s_omittedArgument As OmittedArgumentSyntax =
SyntaxFactory
.OmittedArgument(NotMissingEmptyToken)
532
Return
SyntaxFactory
.ModuleBlock(DirectCast(begin, ModuleStatementSyntax), [inherits], [implements], members, [end])
535
Return
SyntaxFactory
.ClassBlock(DirectCast(begin, ClassStatementSyntax), [inherits], [implements], members, [end])
538
Return
SyntaxFactory
.StructureBlock(DirectCast(begin, StructureStatementSyntax), [inherits], [implements], members, [end])
541
Return
SyntaxFactory
.InterfaceBlock(DirectCast(begin, InterfaceStatementSyntax), [inherits], [implements], members, [end])
551
Return
SyntaxFactory
.ModuleStatement(attributes, modifiers, keyword, identifier, typeParameterList)
554
Return
SyntaxFactory
.ClassStatement(attributes, modifiers, keyword, identifier, typeParameterList)
557
Return
SyntaxFactory
.StructureStatement(attributes, modifiers, keyword, identifier, typeParameterList)
560
Return
SyntaxFactory
.InterfaceStatement(attributes, modifiers, keyword, identifier, typeParameterList)
Syntax\InternalSyntax\SyntaxNodePartials.vb (1)
13
Return
SyntaxFactory
.MissingExpression
Syntax\SyntaxFactory.vb (1)
913
Return New SyntaxToken(Syntax.InternalSyntax.
SyntaxFactory
.XmlTextLiteralToken(text, value, ElasticMarker.UnderlyingNode, ElasticMarker.UnderlyingNode))