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