25 references to Create
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (8)
Syntax\StructuredTriviaTests.cs (1)
67
var ident = SyntaxFactory.Identifier(SyntaxTriviaList.
Create
(sTrivia), "banana", spaceTrivia);
Syntax\SyntaxFactoryTests.cs (4)
196
var actualRed = SyntaxFactory.Token(SyntaxTriviaList.
Create
(SyntaxFactory.ElasticMarker), kind, defaultText, defaultText, SyntaxTriviaList.
Create
(SyntaxFactory.ElasticMarker));
216
var token = SyntaxFactory.Token(SyntaxTriviaList.
Create
(SyntaxFactory.ElasticMarker), kind, text, valueText, SyntaxTriviaList.
Create
(SyntaxFactory.ElasticMarker));
Syntax\SyntaxNodeTests.cs (3)
1389
var token = SyntaxFactory.Identifier(default(SyntaxTriviaList), "x", SyntaxTriviaList.
Create
(trivia));
2357
var expr2 = expr.ReplaceToken(token, SyntaxFactory.Token(SyntaxTriviaList.
Create
(SyntaxFactory.Whitespace("garbage")), token.Kind(), default(SyntaxTriviaList)));
2370
var cu2 = cu.ReplaceToken(token, SyntaxFactory.Token(SyntaxTriviaList.
Create
(SyntaxFactory.Whitespace(" ")), token.Kind(), default(SyntaxTriviaList)));
Microsoft.CodeAnalysis.VisualBasic (7)
Syntax\SyntaxFactory.vb (3)
190
Return Token(kind, SyntaxTriviaList.
Create
(trailing), text)
204
Return Token(SyntaxTriviaList.
Create
(leading), kind, SyntaxTriviaList.
Create
(trailing), text)
Syntax\SyntaxNodeFactories.vb (4)
342
Return Identifier(SyntaxTriviaList.
Create
(leadingTrivia), text, isBracketed, identifierText, typeCharacter, SyntaxTriviaList.
Create
(trailingTrivia))
358
Return Identifier(SyntaxTriviaList.
Create
(leadingTrivia), text, SyntaxTriviaList.
Create
(trailingTrivia))
Microsoft.CodeAnalysis.VisualBasic.Features (1)
MetadataAsSource\VisualBasicMetadataAsSourceService.vb (1)
39
SyntaxTriviaList.
Create
(SyntaxFactory.CarriageReturnLineFeed)))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (3)
TestSyntaxNodes.vb (3)
725
tok = SyntaxFactory.Token(bldr.ToList, SyntaxKind.PlusToken, trailing:=SyntaxTriviaList.
Create
(white_b))
801
keyword = SyntaxFactory.Token(bldr.ToList, SyntaxKind.AndAlsoKeyword, SyntaxTriviaList.
Create
(SyntaxFactory.WhitespaceTrivia(" ")), "andalso")
1784
SyntaxFactory.Token(Nothing, SyntaxKind.GreaterThanToken, trailing:=SyntaxTriviaList.
Create
(_spaceTrivia).Concat(_spaceTrivia).ToSyntaxTriviaList()))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (6)
CodeCleanup\Providers\AbstractTokensCodeCleanupProvider.vb (4)
81
Dim leading = If(token.LeadingTrivia.Count > 0, token.LeadingTrivia, SyntaxTriviaList.
Create
(SyntaxFactory.ElasticMarker))
82
Dim trailing = If(token.TrailingTrivia.Count > 0, token.TrailingTrivia, SyntaxTriviaList.
Create
(SyntaxFactory.ElasticMarker))
92
Dim leading = If(token.LeadingTrivia.Count > 0, token.LeadingTrivia, SyntaxTriviaList.
Create
(SyntaxFactory.ElasticMarker))
93
Dim trailing = If(token.TrailingTrivia.Count > 0, token.TrailingTrivia, SyntaxTriviaList.
Create
(SyntaxFactory.ElasticMarker))
CodeCleanup\Providers\ReduceTokensCodeCleanupProvider.vb (2)
296
Dim leading = If(token.LeadingTrivia.Count > 0, token.LeadingTrivia, SyntaxTriviaList.
Create
(SyntaxFactory.ElasticMarker))
297
Dim trailing = If(token.TrailingTrivia.Count > 0, token.TrailingTrivia, SyntaxTriviaList.
Create
(SyntaxFactory.ElasticMarker))