204 references to GetText
Microsoft.CodeAnalysis.CSharp (106)
Binder\Binder_AnonymousTypes.cs (1)
224expressionType = CreateErrorType(SyntaxFacts.GetText(SyntaxKind.VoidKeyword));
Binder\Binder_Expressions.cs (5)
7631diagnostics.Add(ErrorCode.ERR_BadUnaryOp, operatorToken.GetLocation(), SyntaxFacts.GetText(operatorToken.Kind()), leftType); 7638DiagnosticInfo diagnosticInfo = new CSDiagnosticInfo(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, SyntaxFacts.GetText(operatorToken.Kind()), boundLeft.Display); 7648diagnostics.Add(ErrorCode.ERR_BadUnaryOp, node.Location, SyntaxFacts.GetText(operatorToken.Kind()), msgId.Localize()); 9809var name = candidate.IsIndexer ? SyntaxFacts.GetText(SyntaxKind.ThisKeyword) : candidate.Name; 11122DiagnosticInfo diagnosticInfo = new CSDiagnosticInfo(ErrorCode.ERR_BadUnaryOp, SyntaxFacts.GetText(operatorToken.Kind()), msgId.Localize());
Binder\Binder_Invocation.cs (1)
2334this.LookupSymbolsWithFallback(lookupResult, SyntaxFacts.GetText(SyntaxKind.NameOfKeyword), useSiteInfo: ref discardedUseSiteInfo, arity: 0, options: options);
Binder\Binder_Operators.cs (3)
3177Error(diagnostics, ErrorCode.ERR_BadUnaryOp, node, SyntaxFacts.GetText(SyntaxKind.IsKeyword), operand.Display); 3972Error(diagnostics, ErrorCode.ERR_BadBinaryOps, node, SyntaxFacts.GetText(node.OperatorToken.Kind()), leftOperand.Display, rightOperand.Display); 4230Error(diagnostics, ErrorCode.ERR_BadBinaryOps, node, SyntaxFacts.GetText(node.OperatorToken.Kind()), leftOperand.Display, rightOperand.Display);
Binder\Binder_QueryErrors.cs (9)
171clauseKind = SyntaxFacts.GetText(SyntaxKind.JoinKeyword); 175clauseKind = SyntaxFacts.GetText(SyntaxKind.LetKeyword); 178clauseKind = SyntaxFacts.GetText(SyntaxKind.SelectKeyword); 181clauseKind = SyntaxFacts.GetText(SyntaxKind.WhereKeyword); 186clauseKind = SyntaxFacts.GetText(SyntaxKind.OrderByKeyword); 190clauseKind = SyntaxFacts.GetText(SyntaxKind.IntoKeyword); 193clauseKind = SyntaxFacts.GetText(SyntaxKind.GroupKeyword) + " " + SyntaxFacts.GetText(SyntaxKind.ByKeyword); 201clauseKind = SyntaxFacts.GetText(SyntaxKind.FromKeyword);
Binder\Binder_Symbols.cs (1)
2582Debug.Assert(aliasOpt == null || aliasOpt == SyntaxFacts.GetText(SyntaxKind.GlobalKeyword));
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
905badParamName = SyntaxFacts.GetText(SyntaxKind.ArgListKeyword);
Binder\SwitchBinder.cs (1)
528var labelName = SyntaxFacts.GetText(node.CaseOrDefaultKeyword.Kind());
Parser\DocumentationCommentParser.cs (5)
534current.ValueText != SyntaxFacts.GetText(openQuote.Kind) && 806return new XmlSyntaxDiagnosticInfo(offset, length, XmlParseErrorCode.XML_InvalidToken, SyntaxFacts.GetText(actual)); 827return new XmlSyntaxDiagnosticInfo(XmlParseErrorCode.XML_InvalidToken, SyntaxFacts.GetText(actual)); 1530return CurrentToken.Text == SyntaxFacts.GetText(SyntaxKind.LessThanToken) || 1598return CurrentToken.Text == SyntaxFacts.GetText(SyntaxKind.LessThanToken) ||
Parser\LanguageParser.cs (13)
2161AddTrailingSkippedSyntax(bounds, this.AddError(separatorToken, ErrorCode.ERR_UnexpectedToken, SyntaxFacts.GetText(SyntaxKind.CommaToken))); 2233? this.AddError(this.EatToken(), ErrorCode.ERR_UnexpectedToken, SyntaxFacts.GetText(SyntaxKind.QuestionToken)) 3833SyntaxDiagnosticInfo diagInfo = MakeError(opTokenErrorOffset, opTokenErrorWidth, ErrorCode.ERR_BadOperatorSyntax, SyntaxFacts.GetText(SyntaxKind.PlusToken)); 3839type = this.AddError(type, ErrorCode.ERR_BadOperatorSyntax, SyntaxFacts.GetText(SyntaxKind.PlusToken)); 3903opToken = this.AddError(opToken, ErrorCode.ERR_BadBinOpArgs, SyntaxFacts.GetText(opKind)); 3907opToken = this.AddError(opToken, ErrorCode.ERR_BadUnOpArgs, SyntaxFacts.GetText(opKind)); 9308skippedForToken = this.AddError(skippedForToken, ErrorCode.ERR_SyntaxError, SyntaxFacts.GetText(SyntaxKind.ForEachKeyword)); 10959return this.AddError(this.CreateMissingIdentifierName(), ErrorCode.ERR_InvalidExprTerm, SyntaxFacts.GetText(tk)); 11015: this.AddError(result, ErrorCode.ERR_InvalidExprTerm, SyntaxFacts.GetText(tk)); 11559return this.AddError(_syntaxFactory.RefExpression(refKeyword, this.ParseExpressionCore()), ErrorCode.ERR_InvalidExprTerm, SyntaxFacts.GetText(tk)); 11573expr = this.AddError(expr, ErrorCode.ERR_InvalidExprTerm, SyntaxFacts.GetText(tk)); 11588expr = this.AddError(expr, ErrorCode.ERR_InvalidExprTerm, SyntaxFacts.GetText(tk)); 13594fc = this.AddError(fc, ErrorCode.WRN_PrecedenceInversion, SyntaxFacts.GetText(SyntaxKind.FromKeyword));
Parser\Lexer.cs (1)
3801string valueText = SyntaxFacts.GetText(info.Kind);
Parser\SyntaxParser.cs (2)
662return new SyntaxDiagnosticInfo(offset, width, code, SyntaxFacts.GetText(expected)); 666return new SyntaxDiagnosticInfo(offset, width, code, /*unused*/string.Empty, SyntaxFacts.GetText(actual));
SymbolDisplay\SymbolDisplayVisitor.cs (3)
224SyntaxFacts.GetText(SyntaxKind.GlobalKeyword))); 358Builder.Add(CreatePart(SymbolDisplayPartKind.Punctuation, null, SyntaxFacts.GetText(punctuationKind))); 363Builder.Add(CreatePart(SymbolDisplayPartKind.Keyword, null, SyntaxFacts.GetText(keywordKind)));
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
703SyntaxFacts.GetText(operatorKind)));
Symbols\Source\ModifierUtils.cs (27)
280return SyntaxFacts.GetText(SyntaxKind.AbstractKeyword); 282return SyntaxFacts.GetText(SyntaxKind.SealedKeyword); 284return SyntaxFacts.GetText(SyntaxKind.StaticKeyword); 286return SyntaxFacts.GetText(SyntaxKind.NewKeyword); 288return SyntaxFacts.GetText(SyntaxKind.PublicKeyword); 290return SyntaxFacts.GetText(SyntaxKind.ProtectedKeyword); 292return SyntaxFacts.GetText(SyntaxKind.InternalKeyword); 294return SyntaxFacts.GetText(SyntaxKind.ProtectedKeyword) + " " + SyntaxFacts.GetText(SyntaxKind.InternalKeyword); 296return SyntaxFacts.GetText(SyntaxKind.PrivateKeyword); 298return SyntaxFacts.GetText(SyntaxKind.PrivateKeyword) + " " + SyntaxFacts.GetText(SyntaxKind.ProtectedKeyword); 300return SyntaxFacts.GetText(SyntaxKind.ReadOnlyKeyword); 302return SyntaxFacts.GetText(SyntaxKind.ConstKeyword); 304return SyntaxFacts.GetText(SyntaxKind.VolatileKeyword); 306return SyntaxFacts.GetText(SyntaxKind.ExternKeyword); 308return SyntaxFacts.GetText(SyntaxKind.PartialKeyword); 310return SyntaxFacts.GetText(SyntaxKind.UnsafeKeyword); 312return SyntaxFacts.GetText(SyntaxKind.FixedKeyword); 314return SyntaxFacts.GetText(SyntaxKind.VirtualKeyword); 316return SyntaxFacts.GetText(SyntaxKind.OverrideKeyword); 318return SyntaxFacts.GetText(SyntaxKind.AsyncKeyword); 320return SyntaxFacts.GetText(SyntaxKind.RefKeyword); 322return SyntaxFacts.GetText(SyntaxKind.RequiredKeyword); 324return SyntaxFacts.GetText(SyntaxKind.ScopedKeyword); 326return SyntaxFacts.GetText(SyntaxKind.FileKeyword); 454SyntaxFacts.GetText(modifierToken.Kind()));
Symbols\Source\ParameterHelpers.cs (5)
620diagnostics.Add(ErrorCode.ERR_BadFuncPointerParamModifier, modifier.GetLocation(), SyntaxFacts.GetText(modifier.Kind())); 632diagnostics.Add(ErrorCode.ERR_DupParamMod, modifier.GetLocation(), SyntaxFacts.GetText(modifier.Kind())); 637diagnostics.Add(ErrorCode.ERR_BadParameterModifiers, modifier.GetLocation(), SyntaxFacts.GetText(modifier.Kind()), SyntaxFacts.GetText(otherModifierKind)); 642diagnostics.Add(ErrorCode.ERR_ParamsCantBeWithModifier, modifier.GetLocation(), SyntaxFacts.GetText(otherModifierKind));
Symbols\Source\SourceEventSymbol.cs (2)
560diagnostics.Add(ErrorCode.ERR_BadMemberFlag, location, SyntaxFacts.GetText(SyntaxKind.AbstractKeyword)); 565diagnostics.Add(ErrorCode.ERR_BadMemberFlag, location, SyntaxFacts.GetText(SyntaxKind.VirtualKeyword));
Symbols\Source\SourceMemberContainerSymbol.cs (3)
512if (name == SyntaxFacts.GetText(contextualKind) && compilation.LanguageVersion >= featureId.RequiredVersion()) 2268diagnostics.Add(ErrorCode.ERR_MemberAlreadyExists, indexer.GetFirstLocation(), SyntaxFacts.GetText(SyntaxKind.ThisKeyword), this); 2515SyntaxFacts.GetText(SyntaxFacts.GetOperatorKind(operatorName2)));
Symbols\Source\SourceMemberFieldSymbol.cs (2)
236diagnostics.Add(ErrorCode.ERR_BadMemberFlag, errorLocation, SyntaxFacts.GetText(SyntaxKind.RequiredKeyword)); 456diagnostics.Add(ErrorCode.ERR_BadMemberFlag, ErrorLocation, SyntaxFacts.GetText(SyntaxKind.ScopedKeyword));
Symbols\Source\SourceOrdinaryMethodSymbol.cs (3)
840diagnostics.Add(ErrorCode.ERR_BadMemberFlag, location, SyntaxFacts.GetText(SyntaxKind.SealedKeyword)); 862diagnostics.Add(ErrorCode.ERR_BadMemberFlag, location, SyntaxFacts.GetText(SyntaxKind.AbstractKeyword)); 867diagnostics.Add(ErrorCode.ERR_BadMemberFlag, location, SyntaxFacts.GetText(SyntaxKind.VirtualKeyword));
Symbols\Source\SourcePropertySymbol.cs (1)
483diagnostics.Add(ErrorCode.ERR_BadMemberFlag, location, SyntaxFacts.GetText(SyntaxKind.RequiredKeyword));
Symbols\Source\SourcePropertySymbolBase.cs (5)
346{ MethodKind: MethodKind.PropertyGet, IsInitOnly: false } => SyntaxFacts.GetText(SyntaxKind.GetKeyword), 347{ MethodKind: MethodKind.PropertySet, IsInitOnly: false } => SyntaxFacts.GetText(SyntaxKind.SetKeyword), 348{ MethodKind: MethodKind.PropertySet, IsInitOnly: true } => SyntaxFacts.GetText(SyntaxKind.InitKeyword), 1097diagnostics.Add(ErrorCode.ERR_BadMemberFlag, location, SyntaxFacts.GetText(SyntaxKind.AbstractKeyword)); 1102diagnostics.Add(ErrorCode.ERR_BadMemberFlag, location, SyntaxFacts.GetText(SyntaxKind.VirtualKeyword));
Symbols\Source\SourceUserDefinedOperatorSymbol.cs (1)
34diagnostics.Add(ErrorCode.ERR_OperatorCantBeChecked, syntax.CheckedKeyword.GetLocation(), SyntaxFacts.GetText(SyntaxFacts.GetOperatorKind(name)));
Syntax\InternalSyntax\SyntaxFactory.cs (1)
141string defaultText = SyntaxFacts.GetText(kind);
Syntax\InternalSyntax\SyntaxToken.cs (1)
269get { return SyntaxFacts.GetText(this.Kind); }
Syntax\SyntaxFacts.cs (8)
365return SyntaxFacts.GetText(PrivateKeyword); 367return SyntaxFacts.GetText(PrivateKeyword) + " " + SyntaxFacts.GetText(ProtectedKeyword); 369return SyntaxFacts.GetText(InternalKeyword); 371return SyntaxFacts.GetText(ProtectedKeyword); 373return SyntaxFacts.GetText(ProtectedKeyword) + " " + SyntaxFacts.GetText(InternalKeyword); 375return SyntaxFacts.GetText(PublicKeyword);
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (1)
117SyntaxFacts.GetText(firstToken.Kind())));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
176defaultValue: new CodeStyleOption2<string>(string.Join(",", s_preferredModifierOrderDefault.Select(SyntaxFacts.GetText)), NotificationOption2.Silent));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
429name.Identifier.Text == SyntaxFacts.GetText(SyntaxKind.NameOfKeyword))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
43=> token.ToString() == SyntaxFacts.GetText(kind);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
447=> SyntaxFacts.GetText((SyntaxKind)kind);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2879if (token.Text == SyntaxFacts.GetText(SyntaxKind.AsyncKeyword))
Microsoft.CodeAnalysis.CSharp.EditorFeatures (3)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (3)
49private static readonly string s_semicolon = SyntaxFacts.GetText(SyntaxKind.SemicolonToken); 638=> string.Concat(SyntaxFacts.GetText(SyntaxKind.OpenBraceToken), 640SyntaxFacts.GetText(SyntaxKind.CloseBraceToken));
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Completion\CompletionProviders\XmlDocumentationCommentCompletionProviderTests.cs (1)
889var keywordText = SyntaxFacts.GetText(keywordKind);
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
Recommendations\KeywordRecommenderTests.cs (1)
48KeywordText = SyntaxFacts.GetText(kind);
Microsoft.CodeAnalysis.CSharp.Features (20)
BraceMatching\AbstractCSharpBraceMatcher.cs (2)
12: base(new BraceCharacterAndKind(SyntaxFacts.GetText(openBrace)[0], (int)openBrace), 13new BraceCharacterAndKind(SyntaxFacts.GetText(closeBrace)[0], (int)closeBrace))
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.CompletionSymbolDisplay.cs (1)
63builder.Append(SyntaxFacts.GetText(SyntaxFacts.GetOperatorKind(symbol.MetadataName)));
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Operators.cs (1)
121=> SyntaxFacts.GetText(SyntaxFacts.GetOperatorKind(opName));
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (1)
47var keywordText = SyntaxFacts.GetText(keywordKind);
Completion\KeywordRecommenders\AbstractSyntacticSingleKeywordRecommender.cs (2)
36_keywordPriorityRecommendedKeywords = [new RecommendedKeyword(SyntaxFacts.GetText(keywordKind), 39_defaultPriorityRecommendedKeywords = [new RecommendedKeyword(SyntaxFacts.GetText(keywordKind),
Completion\Providers\ContextVariableArgumentProvider.cs (1)
26protected override string ThisOrMeKeyword => SyntaxFacts.GetText(SyntaxKind.ThisKeyword);
InvertLogical\CSharpInvertLogicalCodeRefactoringProvider.cs (2)
26? SyntaxFacts.GetText(SyntaxKind.AmpersandAmpersandToken) 27: SyntaxFacts.GetText(SyntaxKind.BarBarToken);
LanguageServices\CSharpStructuralTypeDisplayService.cs (4)
37members.Add(Keyword(SyntaxFacts.GetText(SyntaxKind.NewKeyword))); 39members.Add(Punctuation(SyntaxFacts.GetText(SyntaxKind.OpenBraceToken))); 47members.Add(Punctuation(SyntaxFacts.GetText(SyntaxKind.CommaToken))); 58members.Add(Punctuation(SyntaxFacts.GetText(SyntaxKind.CloseBraceToken)));
SignatureHelp\AbstractCSharpSignatureHelpProvider.cs (3)
19=> new SymbolDisplayPart(SymbolDisplayPartKind.Keyword, null, SyntaxFacts.GetText(kind)); 22=> new SymbolDisplayPart(SymbolDisplayPartKind.Operator, null, SyntaxFacts.GetText(kind)); 25=> new SymbolDisplayPart(SymbolDisplayPartKind.Punctuation, null, SyntaxFacts.GetText(kind));
Snippets\AbstractCSharpTypeSnippetProvider.cs (1)
79return new TextChange(TextSpan.FromBounds(targetPosition, targetPosition), SyntaxFacts.GetText(SyntaxKind.PublicKeyword) + " ");
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (1)
117SyntaxFacts.GetText(firstToken.Kind())));
UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (1)
184=> attributeList.WithTarget(AttributeTargetSpecifier(Identifier(SyntaxFacts.GetText(SyntaxKind.FieldKeyword)), ColonToken.WithTrailingTrivia(Space)));
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
EditAndContinue\TopLevelEditingTests.cs (1)
1949Diagnostic(RudeEditKind.ModifiersUpdate, "readonly struct X", SyntaxFacts.GetText(SyntaxKind.StructKeyword)));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (59)
LexicalAndXml\DocumentationCommentLexerTestBase.cs (2)
118? SyntaxFacts.GetText(kind) 119: SyntaxFacts.GetText(contextualKind);
LexicalAndXml\LexicalTests.cs (4)
839var value = SyntaxFacts.GetText(keyword); 881var text = SyntaxFacts.GetText(keyword); 961var text = SyntaxFacts.GetText(kind); 3745.Select(SyntaxFacts.GetText)
Parsing\DeclarationParsingTests.cs (27)
2096var typeText = SyntaxFacts.GetText(builtInType); 2142var typeText = SyntaxFacts.GetText(builtInType); 2670var text = "class a { " + string.Join(" ", modifiers.Select(SyntaxFacts.GetText)) + " b X() { } }"; 3097var text = "class a { b X(" + SyntaxFacts.GetText(mod) + " c d) { } }"; 3235var typeText = SyntaxFacts.GetText(type); 3300var typeText = SyntaxFacts.GetText(type); 3515var text = "class a { " + SyntaxFacts.GetText(mod) + " a() { } }"; 3658var typeText = SyntaxFacts.GetText(type); 3699var text = "class a { " + SyntaxFacts.GetText(mod) + " b c; }"; 3753var text = "class a { " + SyntaxFacts.GetText(mod) + " event b c; }"; 4287var typeText = SyntaxFacts.GetText(type); 4480var text = "class a { " + (isEvent ? "event" : string.Empty) + " b c { " + SyntaxFacts.GetText(accessorKeyword) + " { x = value; } } }"; 4536var text = "class a { event b c { " + SyntaxFacts.GetText(accessorKeyword) + " { x = value; } } }"; 4592var text = "class a { " + SyntaxFacts.GetText(mod) + " b c { get; set; } }"; 4786var text = "class a { " + SyntaxFacts.GetText(mod) + " event b c { add { } remove { } } }"; 5272var text = "class a { b operator " + SyntaxFacts.GetText(op1) + " (c d, e f) { } }"; 5466var text = "class a { b operator " + SyntaxFacts.GetText(op1) + " (c d) { } }"; 9378" + SyntaxFacts.GetText(keywordKind) + @" C;"; 9401" + SyntaxFacts.GetText(keywordKind) + @" C<T>;"; 9433" + SyntaxFacts.GetText(keywordKind) + @" 9471" + SyntaxFacts.GetText(keywordKind) + @" C; 9507" + SyntaxFacts.GetText(keywordKind) + @" C : Base;"; 9541" + SyntaxFacts.GetText(keywordKind) + @" C : Base, I1;"; 9583" + SyntaxFacts.GetText(keywordKind) + @" C where T1 : U1 ;"; 9622" + SyntaxFacts.GetText(keywordKind) + @" C where T1 : U1 where T2 : U2 ;"; 9677" + SyntaxFacts.GetText(keywordKind) + @" C<T1> where T1 : U1 ;"; 9726" + SyntaxFacts.GetText(keywordKind) + @" C { };";
Parsing\ExpressionParsingTests.cs (9)
452var text = SyntaxFacts.GetText(kind); 475var text = SyntaxFacts.GetText(kind); 565var text = SyntaxFacts.GetText(kind) + "a"; 596var text = "a" + SyntaxFacts.GetText(kind); 622var text = "(a) " + SyntaxFacts.GetText(kind) + " b"; 668var text = "(a) " + SyntaxFacts.GetText(kind) + " b"; 705var text = "(a)" + SyntaxFacts.GetText(kind) + " b"; 812var text = SyntaxFacts.GetText(kind) + "(a)"; 876var text = SyntaxFacts.GetText(SyntaxKind.RefValueKeyword) + "(a, b)";
Parsing\FileModifierParsingTests.cs (7)
50file {{SyntaxFacts.GetText(typeKeyword)}} C { } 75file partial {{SyntaxFacts.GetText(typeKeyword)}} C { } 128partial file {{SyntaxFacts.GetText(typeKeyword)}} C { } 134Diagnostic(ErrorCode.ERR_SemicolonExpected, SyntaxFacts.GetText(typeKeyword)).WithLocation(1, 14) 146Diagnostic(ErrorCode.ERR_SemicolonExpected, SyntaxFacts.GetText(typeKeyword)).WithLocation(1, 14) 502public file {{SyntaxFacts.GetText(typeKeyword)}} C { } 535file public {{SyntaxFacts.GetText(typeKeyword)}} C { }
Parsing\ImplicitObjectCreationParsingTests.cs (2)
310UsingExpression($"new(Int32,Int32){SyntaxFacts.GetText(tokenKind),3}", DefaultParseOptions, 349UsingExpression($"new(Int32,Int32){SyntaxFacts.GetText(tokenKind),2}e", DefaultParseOptions);
Parsing\NameParsingTests.cs (1)
473var text = SyntaxFacts.GetText(kind);
Parsing\PatternParsingTests.cs (3)
10855UsingStatement($"_ = e is (int){left} {SyntaxFacts.GetText(opKind)} {right};", 10972UsingStatement($"_ = e is {left} {SyntaxFacts.GetText(opKind)} {right};", 11023UsingStatement($"_ = e is (int) {SyntaxFacts.GetText(opKind)} {right};",
Parsing\StatementParsingTests.cs (2)
153var text = "a" + SyntaxFacts.GetText(kind) + ";"; 3341var keywordText = SyntaxFacts.GetText(kind);
Syntax\SyntaxFactoryTests.cs (2)
195var defaultText = SyntaxFacts.GetText(kind); 212var defaultText = SyntaxFacts.GetText(kind);
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Rename\CSharpRenameRewriterLanguageService.cs (2)
604valueText = SyntaxFacts.GetText(kind); 1126valueText = SyntaxFacts.GetText(kind);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
176defaultValue: new CodeStyleOption2<string>(string.Join(",", s_preferredModifierOrderDefault.Select(SyntaxFacts.GetText)), NotificationOption2.Silent));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
429name.Identifier.Text == SyntaxFacts.GetText(SyntaxKind.NameOfKeyword))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
43=> token.ToString() == SyntaxFacts.GetText(kind);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
447=> SyntaxFacts.GetText((SyntaxKind)kind);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2879if (token.Text == SyntaxFacts.GetText(SyntaxKind.AsyncKeyword))