14 overrides of IsInitOnly
Microsoft.CodeAnalysis.CSharp (14)
Symbols\ErrorMethodSymbol.cs (1)
136internal override bool IsInitOnly => false;
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
843internal override bool IsInitOnly => false;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1406internal override bool IsInitOnly
Symbols\ReducedExtensionMethodSymbol.cs (1)
537internal override bool IsInitOnly => false;
Symbols\SignatureOnlyMethodSymbol.cs (1)
177internal override bool IsInitOnly => _isInitOnly;
Symbols\Source\LambdaSymbol.cs (1)
425internal override bool IsInitOnly => false;
Symbols\Source\LocalFunctionSymbol.cs (1)
378internal override bool IsInitOnly => false;
Symbols\Source\SourceMemberMethodSymbol.cs (1)
683internal override bool IsInitOnly => false;
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
225internal sealed override bool IsInitOnly => false;
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
337internal sealed override bool IsInitOnly => false;
Symbols\Synthesized\SynthesizedInstanceMethodSymbol.cs (1)
76internal override bool IsInitOnly => false;
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
273internal override bool IsInitOnly => false;
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
293internal override bool IsInitOnly => false;
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
360internal override bool IsInitOnly => UnderlyingMethod.IsInitOnly;
17 references to IsInitOnly
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder.ValueChecks.cs (3)
1453return method.IsInitOnly; 1738if (setMethod.IsInitOnly) 1889if (method.MethodKind == MethodKind.Constructor || method.IsInitOnly)
Binder\Binder_Attributes.cs (1)
539if (setMethod.IsInitOnly && setMethod.DeclaringCompilation != this.Compilation)
CodeGen\CodeGenerator_HasHome.cs (1)
256return (containingSymbol is MethodSymbol { MethodKind: MethodKind.Constructor } or FieldSymbol { IsStatic: false } or MethodSymbol { IsInitOnly: true }) &&
Symbols\MethodSymbol.cs (2)
369protected bool IsValidReadOnlyTarget => !IsStatic && ContainingType.IsStructType() && MethodKind != MethodKind.Constructor && !IsInitOnly; 957IsInitOnly ?
Symbols\MethodSymbolExtensions.cs (1)
222!method.IsInitOnly;
Symbols\PublicModel\MethodSymbol.cs (1)
153return _underlying.IsInitOnly;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
1023method.IsInitOnly,
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
1115overridingProperty.SetMethod.IsInitOnly != ownOrInheritedOverriddenSetMethod.IsInitOnly)
Symbols\Source\SourcePropertySymbolBase.cs (1)
873if (!IsStatic && ((_propertyFlags & Flags.HasAutoPropertySet) != 0) && SetMethod is { IsInitOnly: false })
Symbols\TypeSymbol.cs (3)
1607interfaceMethod.IsInitOnly, 2065return oneMethod.IsInitOnly != otherMethod.IsInitOnly;
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
360internal override bool IsInitOnly => UnderlyingMethod.IsInitOnly;