62 references to ParseToken
Microsoft.Analyzers.Extra.Tests (1)
SyntaxNodeExtensionsTests.cs (1)
198var memberbind = SyntaxFactory.MemberBindingExpression(SyntaxFactory.ParseToken("."), b);
Microsoft.CodeAnalysis.CSharp (1)
SymbolDisplay\SymbolDisplayVisitor_Minimal.cs (1)
293var token = SyntaxFactory.ParseToken(nameWithoutAttributeSuffix);
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (3)
76=> SyntaxFactory.ParseToken(text); 460var token = SyntaxFactory.ParseToken(identifier); 466var token = SyntaxFactory.ParseToken(identifier);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
DocumentationComments\DocumentationCommentCompilerTests.cs (1)
3227var newLeadingTrivia = SyntaxFactory.ParseToken("/** " + (_count++) + " */1)").LeadingTrivia;
Symbols\StaticAbstractMembersInInterfacesTests.cs (2)
17495private static string UnaryOperatorName(string op, bool isChecked = false) => OperatorFacts.UnaryOperatorNameFromSyntaxKindIfAny(SyntaxFactory.ParseToken(op).Kind(), isChecked: isChecked); 17497op switch { ">>" => WellKnownMemberNames.RightShiftOperatorName, ">>>" => WellKnownMemberNames.UnsignedRightShiftOperatorName, _ => OperatorFacts.BinaryOperatorNameFromSyntaxKindIfAny(SyntaxFactory.ParseToken(op).Kind(), isChecked: isChecked) };
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (46)
IncrementalParsing\IncrementalParsingTests.cs (3)
182var interfaceKeyword = SyntaxFactory.ParseToken("interface"); // prime the memoizer 200var interfaceKeyword = SyntaxFactory.ParseToken("struct"); // prime the memoizer 3116var interfaceKeyword = SyntaxFactory.ParseToken("interface"); // prime the memoizer
LexicalAndXml\RawStringLiteralLexingTests.cs (1)
187var token = SyntaxFactory.ParseToken(input);
Parsing\NameParsingTests.cs (2)
779var tok = SyntaxFactory.ParseToken(text); 795var tok = SyntaxFactory.ParseToken(text);
Syntax\SyntaxFactoryTests.cs (1)
111SyntaxFactory.ParseToken(string.Format("\"{0}\"", value)).WithLeadingTrivia(SyntaxFactory.ElasticMarker).WithTrailingTrivia(SyntaxFactory.ElasticMarker);
Syntax\SyntaxNodeOrTokenListTests.cs (8)
41? [SyntaxFactory.ParseToken("A "), SyntaxFactory.ParseToken("B "), SyntaxFactory.ParseToken("C ")] 42: SyntaxFactory.NodeOrTokenList(SyntaxFactory.ParseToken("A "), SyntaxFactory.ParseToken("B "), SyntaxFactory.ParseToken("C ")); 58SyntaxNodeOrToken tokenD = SyntaxFactory.ParseToken("D "); 185SyntaxNodeOrToken tokenD = SyntaxFactory.ParseToken("D ");
Syntax\SyntaxNodeTests.cs (16)
2255var expr2 = expr.ReplaceToken(bToken, SyntaxFactory.ParseToken("c")); 2263var d = SyntaxFactory.ParseToken("d "); 2274var publicToken = SyntaxFactory.ParseToken("public "); 2275var partialToken = SyntaxFactory.ParseToken("partial "); 2293var identifierA = SyntaxFactory.ParseToken("A"); 2294var identifierB = SyntaxFactory.ParseToken("B"); 2308var partialToken = SyntaxFactory.ParseToken("partial "); 2309var staticToken = SyntaxFactory.ParseToken("static "); 2324var identifierA = SyntaxFactory.ParseToken("A"); 2325var identifierB = SyntaxFactory.ParseToken("B"); 2455var id = SyntaxFactory.ParseToken("a "); 2465var id = SyntaxFactory.ParseToken("a // goo\r\n"); 3722idToken = SyntaxFactory.ParseToken("x"); 3729idToken = SyntaxFactory.ParseToken(" x "); 3781nodeOrToken = SyntaxFactory.ParseToken("goo"); 3795nodeOrToken = SyntaxFactory.ParseToken(" goo ");
Syntax\SyntaxNormalizerTests.cs (1)
3554var token = SyntaxFactory.ParseToken(text.NormalizeLineEndings());
Syntax\SyntaxRewriterTests.cs (4)
427var publicToken = SyntaxFactory.ParseToken("public "); 428var partialToken = SyntaxFactory.ParseToken("partial "); 445var partialToken = SyntaxFactory.ParseToken("partial "); 446var staticToken = SyntaxFactory.ParseToken("static ");
Syntax\SyntaxTokenListTests.cs (10)
63? [SyntaxFactory.ParseToken("A "), SyntaxFactory.ParseToken("B "), SyntaxFactory.ParseToken("C ")] 64: SyntaxFactory.TokenList(SyntaxFactory.ParseToken("A "), SyntaxFactory.ParseToken("B "), SyntaxFactory.ParseToken("C ")); 80var tokenD = SyntaxFactory.ParseToken("D "); 81var tokenE = SyntaxFactory.ParseToken("E "); 205var tokenD = SyntaxFactory.ParseToken("D "); 206var tokenE = SyntaxFactory.ParseToken("E ");
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Classification\ClassificationHelpers.cs (1)
530var token = SyntaxFactory.ParseToken(text);
CodeGeneration\CSharpSyntaxGenerator.cs (1)
35SyntaxFactory.IdentifierName(SyntaxFactory.ParseToken("nameof"));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (3)
76=> SyntaxFactory.ParseToken(text); 460var token = SyntaxFactory.ParseToken(identifier); 466var token = SyntaxFactory.ParseToken(identifier);
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
SolutionTests\SolutionTests.cs (1)
3236newSyntaxRoot = syntaxRoot.ReplaceNode(classNode, classNode.WithModifiers([CS.SyntaxFactory.ParseToken("public")]));
UtilityTest\FormattingRangeHelperTests.cs (1)
47var token = SyntaxFactory.ParseToken("else");
Microsoft.Interop.SourceGeneration (1)
TypePositionInfo.cs (1)
94InstanceIdentifier = ParseToken(paramSymbol.Name).IsReservedKeyword() ? $"@{paramSymbol.Name}" : paramSymbol.Name,