Base:
property
IsInitOnly
Microsoft.CodeAnalysis.CSharp.Symbols.SourceMemberMethodSymbol.IsInitOnly
7 references to IsInitOnly
Microsoft.CodeAnalysis.CSharp (7)
Symbols\Source\SourcePropertyAccessorSymbol.cs (3)
389
if (
IsInitOnly
)
557
else if (ContainingType.IsExtension &&
IsInitOnly
)
561
else if (LocalDeclaredReadOnly &&
IsInitOnly
)
Symbols\Source\SourcePropertySymbolBase.cs (4)
347
{ MethodKind: MethodKind.PropertyGet,
IsInitOnly
: false } => SyntaxFacts.GetText(SyntaxKind.GetKeyword),
348
{ MethodKind: MethodKind.PropertySet,
IsInitOnly
: false } => SyntaxFacts.GetText(SyntaxKind.SetKeyword),
349
{ MethodKind: MethodKind.PropertySet,
IsInitOnly
: true } => SyntaxFacts.GetText(SyntaxKind.InitKeyword),
827
else if ((_setMethod is null || _setMethod.
IsInitOnly
|| _setMethod.IsDeclaredReadOnly) &&