Base:
property
IsInitOnly
Microsoft.CodeAnalysis.CSharp.Symbols.SourceMemberMethodSymbol.IsInitOnly
6 references to IsInitOnly
Microsoft.CodeAnalysis.CSharp (6)
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
389
if (
IsInitOnly
)
557
else if (LocalDeclaredReadOnly &&
IsInitOnly
)
Symbols\Source\SourcePropertySymbolBase.cs (4)
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),
812
else if ((_setMethod is null || _setMethod.
IsInitOnly
|| _setMethod.IsDeclaredReadOnly) &&