212 references to ReadOnlyKeyword
Microsoft.CodeAnalysis.CSharp (31)
Binder\Binder_Crefs.cs (1)
936
if (refKind == RefKind.Ref && parameter.ReadOnlyKeyword.IsKind(SyntaxKind.
ReadOnlyKeyword
))
Declarations\DeclarationTreeBuilder.cs (1)
759
else if (modifier.IsKind(SyntaxKind.
ReadOnlyKeyword
) && kind is DeclarationKind.Struct or DeclarationKind.RecordStruct)
Parser\DocumentationCommentParser.cs (1)
1261
if (CurrentToken.Kind == SyntaxKind.
ReadOnlyKeyword
&& refKindOpt is not null)
Parser\LanguageParser.cs (12)
1319
case SyntaxKind.
ReadOnlyKeyword
:
2326
case SyntaxKind.
ReadOnlyKeyword
:
4724
case SyntaxKind.
ReadOnlyKeyword
:
4737
if (this.CurrentToken.Kind is SyntaxKind.RefKeyword or SyntaxKind.OutKeyword or SyntaxKind.InKeyword or SyntaxKind.
ReadOnlyKeyword
)
4754
while (this.CurrentToken.Kind is (SyntaxKind.RefKeyword or SyntaxKind.OutKeyword or SyntaxKind.InKeyword or SyntaxKind.
ReadOnlyKeyword
))
6830
if (this.CurrentToken.Kind == SyntaxKind.
ReadOnlyKeyword
)
7198
this.CurrentToken.Kind == SyntaxKind.
ReadOnlyKeyword
? this.EatToken() : null,
8783
case SyntaxKind.
ReadOnlyKeyword
:
10284
else if (k is SyntaxKind.
ReadOnlyKeyword
or SyntaxKind.VolatileKeyword)
10335
case SyntaxKind.
ReadOnlyKeyword
:
10420
case SyntaxKind.
ReadOnlyKeyword
:
13352
case SyntaxKind.
ReadOnlyKeyword
:
SymbolDisplay\SymbolDisplayVisitor.cs (1)
256
AddKeyword(SyntaxKind.
ReadOnlyKeyword
);
SymbolDisplay\SymbolDisplayVisitor.Members.cs (4)
899
AddKeyword(SyntaxKind.
ReadOnlyKeyword
);
1105
AddKeyword(SyntaxKind.
ReadOnlyKeyword
);
1115
AddKeyword(SyntaxKind.
ReadOnlyKeyword
);
1139
AddKeyword(SyntaxKind.
ReadOnlyKeyword
);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (2)
709
AddKeyword(SyntaxKind.
ReadOnlyKeyword
);
743
AddKeyword(SyntaxKind.
ReadOnlyKeyword
);
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
45
if (modifiers.Count > i + 1 && modifiers[i + 1].Kind() == SyntaxKind.
ReadOnlyKeyword
)
Symbols\Source\ModifierUtils.cs (3)
28
var readonlyToken = modifiers.FirstOrDefault(SyntaxKind.
ReadOnlyKeyword
);
300
return SyntaxFacts.GetText(SyntaxKind.
ReadOnlyKeyword
);
356
case SyntaxKind.
ReadOnlyKeyword
:
Symbols\Source\ParameterHelpers.cs (2)
602
case SyntaxKind.
ReadOnlyKeyword
:
965
case SyntaxKind.
ReadOnlyKeyword
:
Syntax\SyntaxKindFacts.cs (2)
941
return SyntaxKind.
ReadOnlyKeyword
;
1589
case SyntaxKind.
ReadOnlyKeyword
:
Syntax\SyntaxNodeExtensions.cs (1)
253
refKind = refType.ReadOnlyKeyword.Kind() == SyntaxKind.
ReadOnlyKeyword
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
189
property.Modifiers.Any(SyntaxKind.
ReadOnlyKeyword
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
72
public static readonly SyntaxToken ReadOnlyKeyword = Token(SyntaxKind.
ReadOnlyKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
162
SyntaxKind.
ReadOnlyKeyword
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
94
case SyntaxKind.
ReadOnlyKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
137
SyntaxKind.
ReadOnlyKeyword
=> DeclarationModifiers.ReadOnly,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (12)
src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (1)
79
if (otherAccessor.Modifiers.Any(SyntaxKind.
ReadOnlyKeyword
))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
384
=> BothHaveModifier(x, y, SyntaxKind.
ReadOnlyKeyword
, out comparisonResult);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\FieldGenerator.cs (3)
40
.Where(f => f.Modifiers.Any(SyntaxKind.
ReadOnlyKeyword
))
44
.Where(f => !f.Modifiers.Any(SyntaxKind.
ReadOnlyKeyword
) && !f.Modifiers.Any(SyntaxKind.ConstKeyword))
49
return fieldDeclaration.Modifiers.Any(SyntaxKind.
ReadOnlyKeyword
)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
574
SyntaxKind.
ReadOnlyKeyword
)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (3)
731
syntaxTree.IsAfterKeyword(position, SyntaxKind.
ReadOnlyKeyword
, cancellationToken) ||
1107
if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.
ReadOnlyKeyword
or SyntaxKind.OutKeyword or SyntaxKind.ThisKeyword or SyntaxKind.ParamsKeyword or SyntaxKind.ScopedKeyword)
1795
if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.
ReadOnlyKeyword
)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (3)
23
SyntaxKind.
ReadOnlyKeyword
,
38
SyntaxKind.
ReadOnlyKeyword
,
55
SyntaxKind.
ReadOnlyKeyword
,
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (1)
547
&& !baseFieldDeclarationNode.Modifiers.Any(SyntaxKind.
ReadOnlyKeyword
);
Microsoft.CodeAnalysis.CSharp.Features (26)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
563
case SyntaxKind.
ReadOnlyKeyword
:
Completion\CompletionProviders\SpeculativeTCompletionProvider.cs (1)
145
if (prevToken.Kind() is SyntaxKind.RefKeyword or SyntaxKind.
ReadOnlyKeyword
&& prevToken.Parent.IsKind(SyntaxKind.RefType))
Completion\KeywordRecommenders\AbstractSpecialTypePreselectingKeywordRecommender.cs (2)
44
!syntaxTree.IsAfterKeyword(position, SyntaxKind.
ReadOnlyKeyword
, cancellationToken))
53
if (token.Kind() is SyntaxKind.
ReadOnlyKeyword
)
Completion\KeywordRecommenders\DynamicKeywordRecommender.cs (1)
72
=> context.TargetToken.Kind() is SyntaxKind.RefKeyword or SyntaxKind.
ReadOnlyKeyword
&&
Completion\KeywordRecommenders\EventKeywordRecommender.cs (1)
33
SyntaxKind.
ReadOnlyKeyword
,
Completion\KeywordRecommenders\NewKeywordRecommender.cs (1)
25
SyntaxKind.
ReadOnlyKeyword
,
Completion\KeywordRecommenders\ReadOnlyKeywordRecommender.cs (3)
27
: base(SyntaxKind.
ReadOnlyKeyword
)
55
return context.IsTypeDeclarationContext(validModifiers: SyntaxKindSet.AllTypeModifiers.Except([SyntaxKind.
ReadOnlyKeyword
]).ToSet(),
64
context.TargetToken.IsAnyAccessorDeclarationContext(context.Position, SyntaxKind.
ReadOnlyKeyword
);
Completion\KeywordRecommenders\RecordKeywordRecommender.cs (1)
25
SyntaxKind.
ReadOnlyKeyword
,
Completion\KeywordRecommenders\RefKeywordRecommender.cs (1)
56
SyntaxKind.
ReadOnlyKeyword
,
Completion\KeywordRecommenders\RequiredKeywordRecommender.cs (1)
16
private static readonly ISet<SyntaxKind> s_validModifiers = SyntaxKindSet.AllMemberModifiers.Where(s => s is not (SyntaxKind.RequiredKeyword or SyntaxKind.StaticKeyword or SyntaxKind.
ReadOnlyKeyword
or SyntaxKind.ConstKeyword)).ToSet();
Completion\KeywordRecommenders\StaticKeywordRecommender.cs (3)
35
SyntaxKind.
ReadOnlyKeyword
,
50
SyntaxKind.
ReadOnlyKeyword
,
64
SyntaxKind.
ReadOnlyKeyword
,
Completion\KeywordRecommenders\StructKeywordRecommender.cs (1)
23
SyntaxKind.
ReadOnlyKeyword
,
Completion\KeywordRecommenders\ThisKeywordRecommender.cs (1)
69
SyntaxKind.
ReadOnlyKeyword
)
Completion\KeywordRecommenders\UnsafeKeywordRecommender.cs (2)
37
SyntaxKind.
ReadOnlyKeyword
,
51
SyntaxKind.
ReadOnlyKeyword
,
Completion\KeywordRecommenders\VoidKeywordRecommender.cs (1)
34
SyntaxKind.
ReadOnlyKeyword
,
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (1)
260
result.Add(Keyword(SyntaxKind.
ReadOnlyKeyword
));
Snippets\CSharpStructSnippetProvider.cs (1)
33
SyntaxKind.
ReadOnlyKeyword
,
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
189
property.Modifiers.Any(SyntaxKind.
ReadOnlyKeyword
))
src\Analyzers\CSharp\CodeFixes\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyCodeFixProvider.cs (1)
79
if (otherAccessor.Modifiers.Any(SyntaxKind.
ReadOnlyKeyword
))
UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (1)
127
.WithModifiers(TokenList(updatedProperty.Modifiers.Where(token => !token.IsKind(SyntaxKind.
ReadOnlyKeyword
))));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
DocumentationComments\CrefTests.cs (2)
6749
Assert.Equal(SyntaxKind.
ReadOnlyKeyword
, parameter.ReadOnlyKeyword.Kind());
6899
Assert.Equal(SyntaxKind.
ReadOnlyKeyword
, parameter.ReadOnlyKeyword.Kind());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (115)
Parsing\CrefParsingTests.cs (5)
1345
N(SyntaxKind.
ReadOnlyKeyword
);
1373
N(SyntaxKind.
ReadOnlyKeyword
);
1417
N(SyntaxKind.
ReadOnlyKeyword
);
1454
N(SyntaxKind.
ReadOnlyKeyword
);
1616
N(SyntaxKind.
ReadOnlyKeyword
);
Parsing\DeclarationParsingTests.cs (7)
2812
Assert.Equal(SyntaxKind.
ReadOnlyKeyword
, ms.Modifiers[0].Kind());
2859
Assert.Equal(SyntaxKind.
ReadOnlyKeyword
, ms.Modifiers[0].Kind());
2863
Assert.Equal(SyntaxKind.
ReadOnlyKeyword
, rt.ReadOnlyKeyword.Kind());
2909
Assert.Equal(SyntaxKind.
ReadOnlyKeyword
, propertySyntax.Modifiers[0].Kind());
2957
Assert.Equal(SyntaxKind.
ReadOnlyKeyword
, accessors[0].Modifiers[0].Kind());
3746
TestClassFieldModifier(SyntaxKind.
ReadOnlyKeyword
);
3801
TestClassEventFieldModifier(SyntaxKind.
ReadOnlyKeyword
);
Parsing\DeclarationScopeParsingTests.cs (56)
776
N(SyntaxKind.
ReadOnlyKeyword
);
816
N(SyntaxKind.
ReadOnlyKeyword
);
1479
N(SyntaxKind.
ReadOnlyKeyword
);
1499
N(SyntaxKind.
ReadOnlyKeyword
);
1575
N(SyntaxKind.
ReadOnlyKeyword
);
1691
N(SyntaxKind.
ReadOnlyKeyword
);
1809
N(SyntaxKind.
ReadOnlyKeyword
);
1987
N(SyntaxKind.
ReadOnlyKeyword
);
2036
N(SyntaxKind.
ReadOnlyKeyword
);
2062
N(SyntaxKind.
ReadOnlyKeyword
);
2267
N(SyntaxKind.
ReadOnlyKeyword
);
2373
N(SyntaxKind.
ReadOnlyKeyword
);
2474
N(SyntaxKind.
ReadOnlyKeyword
);
2592
N(SyntaxKind.
ReadOnlyKeyword
);
2744
N(SyntaxKind.
ReadOnlyKeyword
);
2793
N(SyntaxKind.
ReadOnlyKeyword
);
2819
N(SyntaxKind.
ReadOnlyKeyword
);
2928
N(SyntaxKind.
ReadOnlyKeyword
);
3452
N(SyntaxKind.
ReadOnlyKeyword
);
3798
N(SyntaxKind.
ReadOnlyKeyword
);
3899
N(SyntaxKind.
ReadOnlyKeyword
);
3983
N(SyntaxKind.
ReadOnlyKeyword
);
4328
N(SyntaxKind.
ReadOnlyKeyword
);
4422
N(SyntaxKind.
ReadOnlyKeyword
);
4624
N(SyntaxKind.
ReadOnlyKeyword
);
4992
N(SyntaxKind.
ReadOnlyKeyword
);
5496
N(SyntaxKind.
ReadOnlyKeyword
);
6181
N(SyntaxKind.
ReadOnlyKeyword
);
6270
N(SyntaxKind.
ReadOnlyKeyword
);
6357
N(SyntaxKind.
ReadOnlyKeyword
);
6673
N(SyntaxKind.
ReadOnlyKeyword
);
6768
N(SyntaxKind.
ReadOnlyKeyword
);
6941
N(SyntaxKind.
ReadOnlyKeyword
);
7234
N(SyntaxKind.
ReadOnlyKeyword
);
8540
N(SyntaxKind.
ReadOnlyKeyword
);
8589
N(SyntaxKind.
ReadOnlyKeyword
);
8875
N(SyntaxKind.
ReadOnlyKeyword
);
9078
N(SyntaxKind.
ReadOnlyKeyword
);
9346
N(SyntaxKind.
ReadOnlyKeyword
);
9805
N(SyntaxKind.
ReadOnlyKeyword
);
9881
N(SyntaxKind.
ReadOnlyKeyword
);
9955
N(SyntaxKind.
ReadOnlyKeyword
);
10193
N(SyntaxKind.
ReadOnlyKeyword
);
10267
N(SyntaxKind.
ReadOnlyKeyword
);
10386
N(SyntaxKind.
ReadOnlyKeyword
);
10589
N(SyntaxKind.
ReadOnlyKeyword
);
11228
N(SyntaxKind.
ReadOnlyKeyword
);
11238
N(SyntaxKind.
ReadOnlyKeyword
);
12401
N(SyntaxKind.
ReadOnlyKeyword
);
12469
N(SyntaxKind.
ReadOnlyKeyword
);
12536
N(SyntaxKind.
ReadOnlyKeyword
);
12788
N(SyntaxKind.
ReadOnlyKeyword
);
12849
N(SyntaxKind.
ReadOnlyKeyword
);
12992
N(SyntaxKind.
ReadOnlyKeyword
);
13289
N(SyntaxKind.
ReadOnlyKeyword
);
14908
N(SyntaxKind.
ReadOnlyKeyword
);
Parsing\FunctionPointerTests.cs (3)
844
N(SyntaxKind.
ReadOnlyKeyword
);
2140
N(SyntaxKind.
ReadOnlyKeyword
);
3326
N(SyntaxKind.
ReadOnlyKeyword
);
Parsing\LambdaReturnTypeParsingTests.cs (1)
2518
N(SyntaxKind.
ReadOnlyKeyword
);
Parsing\MemberDeclarationParsingTests.cs (4)
10248
N(SyntaxKind.
ReadOnlyKeyword
);
10283
N(SyntaxKind.
ReadOnlyKeyword
);
10316
N(SyntaxKind.
ReadOnlyKeyword
);
10348
N(SyntaxKind.
ReadOnlyKeyword
);
Parsing\RecordParsing.cs (3)
3677
N(SyntaxKind.
ReadOnlyKeyword
);
3698
N(SyntaxKind.
ReadOnlyKeyword
);
3731
N(SyntaxKind.
ReadOnlyKeyword
);
Parsing\RefFieldParsingTests.cs (4)
75
N(SyntaxKind.
ReadOnlyKeyword
);
514
N(SyntaxKind.
ReadOnlyKeyword
);
607
N(SyntaxKind.
ReadOnlyKeyword
);
672
N(SyntaxKind.
ReadOnlyKeyword
);
Parsing\RefReadonlyTests.cs (22)
525
N(SyntaxKind.
ReadOnlyKeyword
);
568
N(SyntaxKind.
ReadOnlyKeyword
);
569
N(SyntaxKind.
ReadOnlyKeyword
);
611
N(SyntaxKind.
ReadOnlyKeyword
);
612
N(SyntaxKind.
ReadOnlyKeyword
);
654
N(SyntaxKind.
ReadOnlyKeyword
);
656
N(SyntaxKind.
ReadOnlyKeyword
);
698
N(SyntaxKind.
ReadOnlyKeyword
);
699
N(SyntaxKind.
ReadOnlyKeyword
);
743
N(SyntaxKind.
ReadOnlyKeyword
);
745
N(SyntaxKind.
ReadOnlyKeyword
);
789
N(SyntaxKind.
ReadOnlyKeyword
);
833
N(SyntaxKind.
ReadOnlyKeyword
);
876
N(SyntaxKind.
ReadOnlyKeyword
);
921
N(SyntaxKind.
ReadOnlyKeyword
);
983
N(SyntaxKind.
ReadOnlyKeyword
);
1035
N(SyntaxKind.
ReadOnlyKeyword
);
1106
N(SyntaxKind.
ReadOnlyKeyword
);
1167
N(SyntaxKind.
ReadOnlyKeyword
);
1211
N(SyntaxKind.
ReadOnlyKeyword
);
1254
N(SyntaxKind.
ReadOnlyKeyword
);
1300
N(SyntaxKind.
ReadOnlyKeyword
);
Parsing\ScriptParsingTests.cs (2)
966
NewModifier_WithOtherModifier("readonly", SyntaxKind.
ReadOnlyKeyword
);
2519
N(SyntaxKind.
ReadOnlyKeyword
);
Parsing\StatementParsingTests.cs (4)
716
Assert.Equal(SyntaxKind.
ReadOnlyKeyword
, ds.Modifiers[0].Kind());
2530
N(SyntaxKind.
ReadOnlyKeyword
);
3189
N(SyntaxKind.
ReadOnlyKeyword
);
3298
N(SyntaxKind.
ReadOnlyKeyword
);
Parsing\TopLevelStatementsParsingTests.cs (2)
2068
N(SyntaxKind.
ReadOnlyKeyword
);
3129
N(SyntaxKind.
ReadOnlyKeyword
);
Parsing\UsingDirectiveParsingTests.cs (1)
1046
N(SyntaxKind.
ReadOnlyKeyword
);
Syntax\SyntaxNodeCacheTests.cs (1)
62
var child2 = new SyntaxTokenWithTrivia(SyntaxKind.
ReadOnlyKeyword
, null, null);
Microsoft.CodeAnalysis.CSharp.Workspaces (15)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
72
public static readonly SyntaxToken ReadOnlyKeyword = Token(SyntaxKind.
ReadOnlyKeyword
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
162
SyntaxKind.
ReadOnlyKeyword
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
94
case SyntaxKind.
ReadOnlyKeyword
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
137
SyntaxKind.
ReadOnlyKeyword
=> DeclarationModifiers.ReadOnly,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
384
=> BothHaveModifier(x, y, SyntaxKind.
ReadOnlyKeyword
, out comparisonResult);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\FieldGenerator.cs (3)
40
.Where(f => f.Modifiers.Any(SyntaxKind.
ReadOnlyKeyword
))
44
.Where(f => !f.Modifiers.Any(SyntaxKind.
ReadOnlyKeyword
) && !f.Modifiers.Any(SyntaxKind.ConstKeyword))
49
return fieldDeclaration.Modifiers.Any(SyntaxKind.
ReadOnlyKeyword
)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
574
SyntaxKind.
ReadOnlyKeyword
)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (3)
731
syntaxTree.IsAfterKeyword(position, SyntaxKind.
ReadOnlyKeyword
, cancellationToken) ||
1107
if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.InKeyword or SyntaxKind.
ReadOnlyKeyword
or SyntaxKind.OutKeyword or SyntaxKind.ThisKeyword or SyntaxKind.ParamsKeyword or SyntaxKind.ScopedKeyword)
1795
if (token.Kind() is SyntaxKind.RefKeyword or SyntaxKind.
ReadOnlyKeyword
)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (3)
23
SyntaxKind.
ReadOnlyKeyword
,
38
SyntaxKind.
ReadOnlyKeyword
,
55
SyntaxKind.
ReadOnlyKeyword
,
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeGeneration\CodeGenerationTests.cs (1)
761
yield return CS.SyntaxFactory.Token(CS.SyntaxKind.
ReadOnlyKeyword
);
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
EmitterTests.cs (1)
39
mod => mod.IsKind(SyntaxKind.
ReadOnlyKeyword
));
Microsoft.Interop.SourceGeneration (1)
Marshalling\MarshallerHelpers.cs (1)
438
tokens = tokens.Add(Token(SyntaxKind.
ReadOnlyKeyword
));
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\ModifierFlagsExtensions.cs (2)
30
{ ModifierFlags.ReadOnly, SyntaxKind.
ReadOnlyKeyword
},
79
case SyntaxKind.
ReadOnlyKeyword
: