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