14 overrides of IsInitOnly
Microsoft.CodeAnalysis.CSharp (14)
Symbols\ErrorMethodSymbol.cs (1)
138internal override bool IsInitOnly => false;
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
843internal override bool IsInitOnly => false;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1498internal override bool IsInitOnly
Symbols\ReducedExtensionMethodSymbol.cs (1)
542internal override bool IsInitOnly => false;
Symbols\SignatureOnlyMethodSymbol.cs (1)
179internal override bool IsInitOnly => _isInitOnly;
Symbols\Source\LambdaSymbol.cs (1)
427internal override bool IsInitOnly => false;
Symbols\Source\LocalFunctionSymbol.cs (1)
408internal override bool IsInitOnly => false;
Symbols\Source\SourceMemberMethodSymbol.cs (1)
703internal override bool IsInitOnly => false;
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
229internal sealed override bool IsInitOnly => false;
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
341internal sealed override bool IsInitOnly => false;
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
276internal override bool IsInitOnly => false;
Symbols\Synthesized\SynthesizedMethodSymbol.cs (1)
90internal override bool IsInitOnly => false;
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
295internal override bool IsInitOnly => false;
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
356internal override bool IsInitOnly => UnderlyingMethod.IsInitOnly;
17 references to IsInitOnly
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder.ValueChecks.cs (3)
1758return method.IsInitOnly; 2051if (setMethod.IsInitOnly) 2204if (method.MethodKind == MethodKind.Constructor || method.IsInitOnly)
Binder\Binder_Attributes.cs (1)
543if (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)
382protected bool IsValidReadOnlyTarget => !IsStatic && ContainingType.IsStructType() && MethodKind != MethodKind.Constructor && !IsInitOnly; 974IsInitOnly ?
Symbols\MethodSymbolExtensions.cs (1)
224!method.IsInitOnly;
Symbols\PublicModel\MethodSymbol.cs (1)
154return _underlying.IsInitOnly;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
1023method.IsInitOnly,
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
1143overridingProperty.SetMethod.IsInitOnly != ownOrInheritedOverriddenSetMethod.IsInitOnly)
Symbols\Source\SourcePropertySymbolBase.cs (1)
891if (!IsStatic && HasAutoPropertySet && SetMethod is { IsInitOnly: false })
Symbols\TypeSymbol.cs (3)
1617interfaceMethod.IsInitOnly, 2097return oneMethod.IsInitOnly != otherMethod.IsInitOnly;
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
356internal override bool IsInitOnly => UnderlyingMethod.IsInitOnly;