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