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