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