27 references to ReadOnly
Microsoft.CodeAnalysis.CSharp (27)
Parser\LanguageParser.cs (1)
1320
return DeclarationModifiers.
ReadOnly
;
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
49
=> (Modifiers & DeclarationModifiers.
ReadOnly
) != 0;
Symbols\Source\ModifierUtils.cs (3)
299
case DeclarationModifiers.
ReadOnly
:
357
return DeclarationModifiers.
ReadOnly
;
502
case FieldSymbol when (modifiers & DeclarationModifiers.
ReadOnly
) != 0:
Symbols\Source\SourceEventSymbol.cs (2)
400
get { return (_modifiers & DeclarationModifiers.
ReadOnly
) != 0; }
495
allowedModifiers |= DeclarationModifiers.
ReadOnly
;
Symbols\Source\SourceMemberContainerSymbol.cs (2)
329
allowedModifiers |= DeclarationModifiers.Partial | DeclarationModifiers.
ReadOnly
| DeclarationModifiers.Unsafe;
845
public override bool IsReadOnly => HasFlag(DeclarationModifiers.
ReadOnly
);
Symbols\Source\SourceMemberFieldSymbol.cs (4)
175
DeclarationModifiers.
ReadOnly
|
203
reportBadMemberFlagIfAny(result, DeclarationModifiers.
ReadOnly
, diagnostics, errorLocation);
208
result &= ~(DeclarationModifiers.Static | DeclarationModifiers.
ReadOnly
| DeclarationModifiers.Const | DeclarationModifiers.Volatile | DeclarationModifiers.Required);
220
reportBadMemberFlagIfAny(result, DeclarationModifiers.
ReadOnly
, diagnostics, errorLocation);
Symbols\Source\SourceMemberMethodSymbol.cs (1)
679
return (this.DeclarationModifiers & DeclarationModifiers.
ReadOnly
) != 0;
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
741
allowedModifiers |= DeclarationModifiers.
ReadOnly
;
Symbols\Source\SourcePropertyAccessorSymbol.cs (3)
252
propertyModifiers & ~(DeclarationModifiers.Indexer | DeclarationModifiers.
ReadOnly
);
432
internal bool LocalDeclaredReadOnly => (DeclarationModifiers & DeclarationModifiers.
ReadOnly
) != 0;
503
allowedModifiers |= DeclarationModifiers.
ReadOnly
;
Symbols\Source\SourcePropertySymbol.cs (1)
428
allowedModifiers |= DeclarationModifiers.
ReadOnly
;
Symbols\Source\SourcePropertySymbolBase.cs (1)
602
internal bool HasReadOnlyModifier => (_modifiers & DeclarationModifiers.
ReadOnly
) != 0;
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (1)
24
DeclarationModifiers.Public | (IsReadOnly(containingType, positionalMembers) ? DeclarationModifiers.
ReadOnly
: 0))
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
25
(containingType.IsRecordStruct ? DeclarationModifiers.
ReadOnly
: 0))
Symbols\Synthesized\Records\SynthesizedRecordObjectMethod.cs (1)
16
DeclarationModifiers.Public | DeclarationModifiers.Override | (isReadOnly ? DeclarationModifiers.
ReadOnly
: 0))
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
55
result |= DeclarationModifiers.
ReadOnly
;
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
36
(isReadOnly ? DeclarationModifiers.
ReadOnly
: DeclarationModifiers.None) |
Symbols\Synthesized\SynthesizedFieldSymbolBase.cs (2)
37
(isReadOnly ? DeclarationModifiers.
ReadOnly
: DeclarationModifiers.None) |
107
get { return (_modifiers & DeclarationModifiers.
ReadOnly
) != 0; }