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