1 override of IsEffectivelyReadOnly
Microsoft.CodeAnalysis.CSharp (1)
Symbols\ReducedExtensionMethodSymbol.cs (1)
539internal override bool IsEffectivelyReadOnly => _reducedFrom.Parameters[0].RefKind is RefKind.In or RefKind.RefReadOnlyParameter;
18 references to IsEffectivelyReadOnly
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder.ValueChecks.cs (5)
867if (!isValueType || (RequiresAssignableVariable(valueKind) && (this.ContainingMemberOrLambda as MethodSymbol)?.IsEffectivelyReadOnly == true)) 1183if (RequiresAssignableVariable(valueKind) && !backingField.ContainingType.IsReferenceType && (this.ContainingMemberOrLambda as MethodSymbol)?.IsEffectivelyReadOnly == true) 1804var setValueKind = setMethod.IsEffectivelyReadOnly ? BindValueKind.RValue : BindValueKind.Assignable; 4740if (methodInfo.Method.IsEffectivelyReadOnly) 4785if (methodInfo.Method is null || methodInfo.Method.IsEffectivelyReadOnly)
Binder\Binder_Invocation.cs (3)
1397var valueKind = method.IsEffectivelyReadOnly 1842containingMethod.IsEffectivelyReadOnly && 1845!method.IsEffectivelyReadOnly &&
CodeGen\CodeGenerator_HasHome.cs (1)
75if (!IsAnyReadOnly(addressKind) && containingSymbol is MethodSymbol { ContainingSymbol: NamedTypeSymbol, IsEffectivelyReadOnly: true })
CodeGen\EmitExpression.cs (1)
2186if (method.IsEffectivelyReadOnly && method.MethodKind != MethodKind.Constructor)
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
172!method.IsEffectivelyReadOnly &&
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
662structToStringMethod?.IsEffectivelyReadOnly == true;
Symbols\MethodSymbol.cs (1)
354/// See also <see cref="IsEffectivelyReadOnly"/>
Symbols\PublicModel\MethodSymbol.cs (1)
145return _underlying.IsEffectivelyReadOnly;
Symbols\Source\ThisParameterSymbol.cs (1)
162if (_containingMethod?.IsEffectivelyReadOnly == true)
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (1)
108return property.GetMethod is not null && !getterMethod.IsEffectivelyReadOnly;
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
315if (property.GetMethod is not null && !getterMethod.IsEffectivelyReadOnly)
Symbols\Synthesized\Records\SynthesizedRecordToString.cs (1)
30isReadOnly: printMethod.IsEffectivelyReadOnly)