204 references to GetText
Microsoft.CodeAnalysis.CSharp (106)
Binder\Binder_AnonymousTypes.cs (1)
224
expressionType = CreateErrorType(SyntaxFacts.
GetText
(SyntaxKind.VoidKeyword));
Binder\Binder_Expressions.cs (5)
7628
diagnostics.Add(ErrorCode.ERR_BadUnaryOp, operatorToken.GetLocation(), SyntaxFacts.
GetText
(operatorToken.Kind()), leftType);
7635
DiagnosticInfo diagnosticInfo = new CSDiagnosticInfo(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, SyntaxFacts.
GetText
(operatorToken.Kind()), boundLeft.Display);
7645
diagnostics.Add(ErrorCode.ERR_BadUnaryOp, node.Location, SyntaxFacts.
GetText
(operatorToken.Kind()), msgId.Localize());
9806
var name = candidate.IsIndexer ? SyntaxFacts.
GetText
(SyntaxKind.ThisKeyword) : candidate.Name;
11119
DiagnosticInfo diagnosticInfo = new CSDiagnosticInfo(ErrorCode.ERR_BadUnaryOp, SyntaxFacts.
GetText
(operatorToken.Kind()), msgId.Localize());
Binder\Binder_Invocation.cs (1)
2334
this.LookupSymbolsWithFallback(lookupResult, SyntaxFacts.
GetText
(SyntaxKind.NameOfKeyword), useSiteInfo: ref discardedUseSiteInfo, arity: 0, options: options);
Binder\Binder_Operators.cs (3)
3177
Error(diagnostics, ErrorCode.ERR_BadUnaryOp, node, SyntaxFacts.
GetText
(SyntaxKind.IsKeyword), operand.Display);
3972
Error(diagnostics, ErrorCode.ERR_BadBinaryOps, node, SyntaxFacts.
GetText
(node.OperatorToken.Kind()), leftOperand.Display, rightOperand.Display);
4230
Error(diagnostics, ErrorCode.ERR_BadBinaryOps, node, SyntaxFacts.
GetText
(node.OperatorToken.Kind()), leftOperand.Display, rightOperand.Display);
Binder\Binder_QueryErrors.cs (9)
171
clauseKind = SyntaxFacts.
GetText
(SyntaxKind.JoinKeyword);
175
clauseKind = SyntaxFacts.
GetText
(SyntaxKind.LetKeyword);
178
clauseKind = SyntaxFacts.
GetText
(SyntaxKind.SelectKeyword);
181
clauseKind = SyntaxFacts.
GetText
(SyntaxKind.WhereKeyword);
186
clauseKind = SyntaxFacts.
GetText
(SyntaxKind.OrderByKeyword);
190
clauseKind = SyntaxFacts.
GetText
(SyntaxKind.IntoKeyword);
193
clauseKind = SyntaxFacts.
GetText
(SyntaxKind.GroupKeyword) + " " + SyntaxFacts.
GetText
(SyntaxKind.ByKeyword);
201
clauseKind = SyntaxFacts.
GetText
(SyntaxKind.FromKeyword);
Binder\Binder_Symbols.cs (1)
2564
Debug.Assert(aliasOpt == null || aliasOpt == SyntaxFacts.
GetText
(SyntaxKind.GlobalKeyword));
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
905
badParamName = SyntaxFacts.
GetText
(SyntaxKind.ArgListKeyword);
Binder\SwitchBinder.cs (1)
528
var labelName = SyntaxFacts.
GetText
(node.CaseOrDefaultKeyword.Kind());
Parser\DocumentationCommentParser.cs (5)
534
current.ValueText != SyntaxFacts.
GetText
(openQuote.Kind) &&
806
return new XmlSyntaxDiagnosticInfo(offset, length, XmlParseErrorCode.XML_InvalidToken, SyntaxFacts.
GetText
(actual));
827
return new XmlSyntaxDiagnosticInfo(XmlParseErrorCode.XML_InvalidToken, SyntaxFacts.
GetText
(actual));
1530
return CurrentToken.Text == SyntaxFacts.
GetText
(SyntaxKind.LessThanToken) ||
1598
return CurrentToken.Text == SyntaxFacts.
GetText
(SyntaxKind.LessThanToken) ||
Parser\LanguageParser.cs (13)
2160
AddTrailingSkippedSyntax(bounds, this.AddError(separatorToken, ErrorCode.ERR_UnexpectedToken, SyntaxFacts.
GetText
(SyntaxKind.CommaToken)));
2232
? this.AddError(this.EatToken(), ErrorCode.ERR_UnexpectedToken, SyntaxFacts.
GetText
(SyntaxKind.QuestionToken))
3832
SyntaxDiagnosticInfo diagInfo = MakeError(opTokenErrorOffset, opTokenErrorWidth, ErrorCode.ERR_BadOperatorSyntax, SyntaxFacts.
GetText
(SyntaxKind.PlusToken));
3838
type = this.AddError(type, ErrorCode.ERR_BadOperatorSyntax, SyntaxFacts.
GetText
(SyntaxKind.PlusToken));
3902
opToken = this.AddError(opToken, ErrorCode.ERR_BadBinOpArgs, SyntaxFacts.
GetText
(opKind));
3906
opToken = this.AddError(opToken, ErrorCode.ERR_BadUnOpArgs, SyntaxFacts.
GetText
(opKind));
9280
skippedForToken = this.AddError(skippedForToken, ErrorCode.ERR_SyntaxError, SyntaxFacts.
GetText
(SyntaxKind.ForEachKeyword));
10918
return this.AddError(this.CreateMissingIdentifierName(), ErrorCode.ERR_InvalidExprTerm, SyntaxFacts.
GetText
(tk));
10974
: this.AddError(result, ErrorCode.ERR_InvalidExprTerm, SyntaxFacts.
GetText
(tk));
11518
return this.AddError(_syntaxFactory.RefExpression(refKeyword, this.ParseExpressionCore()), ErrorCode.ERR_InvalidExprTerm, SyntaxFacts.
GetText
(tk));
11532
expr = this.AddError(expr, ErrorCode.ERR_InvalidExprTerm, SyntaxFacts.
GetText
(tk));
11547
expr = this.AddError(expr, ErrorCode.ERR_InvalidExprTerm, SyntaxFacts.
GetText
(tk));
13553
fc = this.AddError(fc, ErrorCode.WRN_PrecedenceInversion, SyntaxFacts.
GetText
(SyntaxKind.FromKeyword));
Parser\Lexer.cs (1)
3768
string valueText = SyntaxFacts.
GetText
(info.Kind);
Parser\SyntaxParser.cs (2)
662
return new SyntaxDiagnosticInfo(offset, width, code, SyntaxFacts.
GetText
(expected));
666
return new SyntaxDiagnosticInfo(offset, width, code, /*unused*/string.Empty, SyntaxFacts.
GetText
(actual));
SymbolDisplay\SymbolDisplayVisitor.cs (3)
224
SyntaxFacts.
GetText
(SyntaxKind.GlobalKeyword)));
351
Builder.Add(CreatePart(SymbolDisplayPartKind.Punctuation, null, SyntaxFacts.
GetText
(punctuationKind)));
356
Builder.Add(CreatePart(SymbolDisplayPartKind.Keyword, null, SyntaxFacts.
GetText
(keywordKind)));
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
703
SyntaxFacts.
GetText
(operatorKind)));
Symbols\Source\ModifierUtils.cs (27)
280
return SyntaxFacts.
GetText
(SyntaxKind.AbstractKeyword);
282
return SyntaxFacts.
GetText
(SyntaxKind.SealedKeyword);
284
return SyntaxFacts.
GetText
(SyntaxKind.StaticKeyword);
286
return SyntaxFacts.
GetText
(SyntaxKind.NewKeyword);
288
return SyntaxFacts.
GetText
(SyntaxKind.PublicKeyword);
290
return SyntaxFacts.
GetText
(SyntaxKind.ProtectedKeyword);
292
return SyntaxFacts.
GetText
(SyntaxKind.InternalKeyword);
294
return SyntaxFacts.
GetText
(SyntaxKind.ProtectedKeyword) + " " + SyntaxFacts.
GetText
(SyntaxKind.InternalKeyword);
296
return SyntaxFacts.
GetText
(SyntaxKind.PrivateKeyword);
298
return SyntaxFacts.
GetText
(SyntaxKind.PrivateKeyword) + " " + SyntaxFacts.
GetText
(SyntaxKind.ProtectedKeyword);
300
return SyntaxFacts.
GetText
(SyntaxKind.ReadOnlyKeyword);
302
return SyntaxFacts.
GetText
(SyntaxKind.ConstKeyword);
304
return SyntaxFacts.
GetText
(SyntaxKind.VolatileKeyword);
306
return SyntaxFacts.
GetText
(SyntaxKind.ExternKeyword);
308
return SyntaxFacts.
GetText
(SyntaxKind.PartialKeyword);
310
return SyntaxFacts.
GetText
(SyntaxKind.UnsafeKeyword);
312
return SyntaxFacts.
GetText
(SyntaxKind.FixedKeyword);
314
return SyntaxFacts.
GetText
(SyntaxKind.VirtualKeyword);
316
return SyntaxFacts.
GetText
(SyntaxKind.OverrideKeyword);
318
return SyntaxFacts.
GetText
(SyntaxKind.AsyncKeyword);
320
return SyntaxFacts.
GetText
(SyntaxKind.RefKeyword);
322
return SyntaxFacts.
GetText
(SyntaxKind.RequiredKeyword);
324
return SyntaxFacts.
GetText
(SyntaxKind.ScopedKeyword);
326
return SyntaxFacts.
GetText
(SyntaxKind.FileKeyword);
454
SyntaxFacts.
GetText
(modifierToken.Kind()));
Symbols\Source\ParameterHelpers.cs (5)
620
diagnostics.Add(ErrorCode.ERR_BadFuncPointerParamModifier, modifier.GetLocation(), SyntaxFacts.
GetText
(modifier.Kind()));
632
diagnostics.Add(ErrorCode.ERR_DupParamMod, modifier.GetLocation(), SyntaxFacts.
GetText
(modifier.Kind()));
637
diagnostics.Add(ErrorCode.ERR_BadParameterModifiers, modifier.GetLocation(), SyntaxFacts.
GetText
(modifier.Kind()), SyntaxFacts.
GetText
(otherModifierKind));
642
diagnostics.Add(ErrorCode.ERR_ParamsCantBeWithModifier, modifier.GetLocation(), SyntaxFacts.
GetText
(otherModifierKind));
Symbols\Source\SourceEventSymbol.cs (2)
560
diagnostics.Add(ErrorCode.ERR_BadMemberFlag, location, SyntaxFacts.
GetText
(SyntaxKind.AbstractKeyword));
565
diagnostics.Add(ErrorCode.ERR_BadMemberFlag, location, SyntaxFacts.
GetText
(SyntaxKind.VirtualKeyword));
Symbols\Source\SourceMemberContainerSymbol.cs (3)
512
if (name == SyntaxFacts.
GetText
(contextualKind) && compilation.LanguageVersion >= featureId.RequiredVersion())
2268
diagnostics.Add(ErrorCode.ERR_MemberAlreadyExists, indexer.GetFirstLocation(), SyntaxFacts.
GetText
(SyntaxKind.ThisKeyword), this);
2515
SyntaxFacts.
GetText
(SyntaxFacts.GetOperatorKind(operatorName2)));
Symbols\Source\SourceMemberFieldSymbol.cs (2)
236
diagnostics.Add(ErrorCode.ERR_BadMemberFlag, errorLocation, SyntaxFacts.
GetText
(SyntaxKind.RequiredKeyword));
456
diagnostics.Add(ErrorCode.ERR_BadMemberFlag, ErrorLocation, SyntaxFacts.
GetText
(SyntaxKind.ScopedKeyword));
Symbols\Source\SourceOrdinaryMethodSymbol.cs (3)
840
diagnostics.Add(ErrorCode.ERR_BadMemberFlag, location, SyntaxFacts.
GetText
(SyntaxKind.SealedKeyword));
862
diagnostics.Add(ErrorCode.ERR_BadMemberFlag, location, SyntaxFacts.
GetText
(SyntaxKind.AbstractKeyword));
867
diagnostics.Add(ErrorCode.ERR_BadMemberFlag, location, SyntaxFacts.
GetText
(SyntaxKind.VirtualKeyword));
Symbols\Source\SourcePropertySymbol.cs (1)
483
diagnostics.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),
1097
diagnostics.Add(ErrorCode.ERR_BadMemberFlag, location, SyntaxFacts.
GetText
(SyntaxKind.AbstractKeyword));
1102
diagnostics.Add(ErrorCode.ERR_BadMemberFlag, location, SyntaxFacts.
GetText
(SyntaxKind.VirtualKeyword));
Symbols\Source\SourceUserDefinedOperatorSymbol.cs (1)
34
diagnostics.Add(ErrorCode.ERR_OperatorCantBeChecked, syntax.CheckedKeyword.GetLocation(), SyntaxFacts.
GetText
(SyntaxFacts.GetOperatorKind(name)));
Syntax\InternalSyntax\SyntaxFactory.cs (1)
141
string defaultText = SyntaxFacts.
GetText
(kind);
Syntax\InternalSyntax\SyntaxToken.cs (1)
269
get { return SyntaxFacts.
GetText
(this.Kind); }
Syntax\SyntaxFacts.cs (8)
365
return SyntaxFacts.
GetText
(PrivateKeyword);
367
return SyntaxFacts.
GetText
(PrivateKeyword) + " " + SyntaxFacts.
GetText
(ProtectedKeyword);
369
return SyntaxFacts.
GetText
(InternalKeyword);
371
return SyntaxFacts.
GetText
(ProtectedKeyword);
373
return SyntaxFacts.
GetText
(ProtectedKeyword) + " " + SyntaxFacts.
GetText
(InternalKeyword);
375
return SyntaxFacts.
GetText
(PublicKeyword);
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (1)
117
SyntaxFacts.
GetText
(firstToken.Kind())));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
172
defaultValue: new CodeStyleOption2<string>(string.Join(",", s_preferredModifierOrderDefault.Select(SyntaxFacts.
GetText
)), NotificationOption2.Silent));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
428
name.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)
2879
if (token.Text == SyntaxFacts.
GetText
(SyntaxKind.AsyncKeyword))
Microsoft.CodeAnalysis.CSharp.EditorFeatures (3)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (3)
49
private static readonly string s_semicolon = SyntaxFacts.
GetText
(SyntaxKind.SemicolonToken);
638
=> string.Concat(SyntaxFacts.
GetText
(SyntaxKind.OpenBraceToken),
640
SyntaxFacts.
GetText
(SyntaxKind.CloseBraceToken));
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Completion\CompletionProviders\XmlDocumentationCommentCompletionProviderTests.cs (1)
889
var keywordText = SyntaxFacts.
GetText
(keywordKind);
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
Recommendations\KeywordRecommenderTests.cs (1)
48
KeywordText = SyntaxFacts.
GetText
(kind);
Microsoft.CodeAnalysis.CSharp.Features (20)
BraceMatching\AbstractCSharpBraceMatcher.cs (2)
12
: base(new BraceCharacterAndKind(SyntaxFacts.
GetText
(openBrace)[0], (int)openBrace),
13
new BraceCharacterAndKind(SyntaxFacts.
GetText
(closeBrace)[0], (int)closeBrace))
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.CompletionSymbolDisplay.cs (1)
63
builder.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)
47
var 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)
26
protected 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)
37
members.Add(Keyword(SyntaxFacts.
GetText
(SyntaxKind.NewKeyword)));
39
members.Add(Punctuation(SyntaxFacts.
GetText
(SyntaxKind.OpenBraceToken)));
47
members.Add(Punctuation(SyntaxFacts.
GetText
(SyntaxKind.CommaToken)));
58
members.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)
79
return new TextChange(TextSpan.FromBounds(targetPosition, targetPosition), SyntaxFacts.
GetText
(SyntaxKind.PublicKeyword) + " ");
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (1)
117
SyntaxFacts.
GetText
(firstToken.Kind())));
UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (1)
183
=> attributeList.WithTarget(AttributeTargetSpecifier(Identifier(SyntaxFacts.
GetText
(SyntaxKind.FieldKeyword)), ColonToken.WithTrailingTrivia(Space)));
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
EditAndContinue\TopLevelEditingTests.cs (1)
1949
Diagnostic(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)
839
var value = SyntaxFacts.
GetText
(keyword);
881
var text = SyntaxFacts.
GetText
(keyword);
961
var text = SyntaxFacts.
GetText
(kind);
3745
.Select(SyntaxFacts.
GetText
)
Parsing\DeclarationParsingTests.cs (27)
2096
var typeText = SyntaxFacts.
GetText
(builtInType);
2142
var typeText = SyntaxFacts.
GetText
(builtInType);
2670
var text = "class a { " + string.Join(" ", modifiers.Select(SyntaxFacts.
GetText
)) + " b X() { } }";
3097
var text = "class a { b X(" + SyntaxFacts.
GetText
(mod) + " c d) { } }";
3235
var typeText = SyntaxFacts.
GetText
(type);
3300
var typeText = SyntaxFacts.
GetText
(type);
3515
var text = "class a { " + SyntaxFacts.
GetText
(mod) + " a() { } }";
3658
var typeText = SyntaxFacts.
GetText
(type);
3699
var text = "class a { " + SyntaxFacts.
GetText
(mod) + " b c; }";
3753
var text = "class a { " + SyntaxFacts.
GetText
(mod) + " event b c; }";
4287
var typeText = SyntaxFacts.
GetText
(type);
4480
var text = "class a { " + (isEvent ? "event" : string.Empty) + " b c { " + SyntaxFacts.
GetText
(accessorKeyword) + " { x = value; } } }";
4536
var text = "class a { event b c { " + SyntaxFacts.
GetText
(accessorKeyword) + " { x = value; } } }";
4592
var text = "class a { " + SyntaxFacts.
GetText
(mod) + " b c { get; set; } }";
4786
var text = "class a { " + SyntaxFacts.
GetText
(mod) + " event b c { add { } remove { } } }";
5272
var text = "class a { b operator " + SyntaxFacts.
GetText
(op1) + " (c d, e f) { } }";
5466
var 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)
452
var text = SyntaxFacts.
GetText
(kind);
475
var text = SyntaxFacts.
GetText
(kind);
565
var text = SyntaxFacts.
GetText
(kind) + "a";
596
var text = "a" + SyntaxFacts.
GetText
(kind);
622
var text = "(a) " + SyntaxFacts.
GetText
(kind) + " b";
668
var text = "(a) " + SyntaxFacts.
GetText
(kind) + " b";
705
var text = "(a)" + SyntaxFacts.
GetText
(kind) + " b";
812
var text = SyntaxFacts.
GetText
(kind) + "(a)";
876
var text = SyntaxFacts.
GetText
(SyntaxKind.RefValueKeyword) + "(a, b)";
Parsing\FileModifierParsingTests.cs (7)
50
file {{SyntaxFacts.
GetText
(typeKeyword)}} C { }
75
file partial {{SyntaxFacts.
GetText
(typeKeyword)}} C { }
128
partial file {{SyntaxFacts.
GetText
(typeKeyword)}} C { }
134
Diagnostic(ErrorCode.ERR_SemicolonExpected, SyntaxFacts.
GetText
(typeKeyword)).WithLocation(1, 14)
146
Diagnostic(ErrorCode.ERR_SemicolonExpected, SyntaxFacts.
GetText
(typeKeyword)).WithLocation(1, 14)
502
public file {{SyntaxFacts.
GetText
(typeKeyword)}} C { }
535
file public {{SyntaxFacts.
GetText
(typeKeyword)}} C { }
Parsing\ImplicitObjectCreationParsingTests.cs (2)
310
UsingExpression($"new(Int32,Int32){SyntaxFacts.
GetText
(tokenKind),3}", DefaultParseOptions,
349
UsingExpression($"new(Int32,Int32){SyntaxFacts.
GetText
(tokenKind),2}e", DefaultParseOptions);
Parsing\NameParsingTests.cs (1)
473
var text = SyntaxFacts.
GetText
(kind);
Parsing\PatternParsingTests.cs (3)
10855
UsingStatement($"_ = e is (int){left} {SyntaxFacts.
GetText
(opKind)} {right};",
10972
UsingStatement($"_ = e is {left} {SyntaxFacts.
GetText
(opKind)} {right};",
11023
UsingStatement($"_ = e is (int) {SyntaxFacts.
GetText
(opKind)} {right};",
Parsing\StatementParsingTests.cs (2)
153
var text = "a" + SyntaxFacts.
GetText
(kind) + ";";
3341
var keywordText = SyntaxFacts.
GetText
(kind);
Syntax\SyntaxFactoryTests.cs (2)
195
var defaultText = SyntaxFacts.
GetText
(kind);
212
var defaultText = SyntaxFacts.
GetText
(kind);
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Rename\CSharpRenameRewriterLanguageService.cs (2)
604
valueText = SyntaxFacts.
GetText
(kind);
1126
valueText = SyntaxFacts.
GetText
(kind);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
172
defaultValue: new CodeStyleOption2<string>(string.Join(",", s_preferredModifierOrderDefault.Select(SyntaxFacts.
GetText
)), NotificationOption2.Silent));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
428
name.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)
2879
if (token.Text == SyntaxFacts.
GetText
(SyntaxKind.AsyncKeyword))