1 override of IsEffectivelyReadOnly
Microsoft.CodeAnalysis.CSharp (1)
Symbols\ReducedExtensionMethodSymbol.cs (1)
544internal override bool IsEffectivelyReadOnly => _reducedFrom.Parameters[0].RefKind is RefKind.In or RefKind.RefReadOnlyParameter;
19 references to IsEffectivelyReadOnly
Microsoft.CodeAnalysis.CSharp (19)
Binder\Binder_Invocation.cs (3)
1431var valueKind = method.IsEffectivelyReadOnly 1939containingMethod.IsEffectivelyReadOnly && 1942!method.IsEffectivelyReadOnly &&
Binder\Binder.ValueChecks.cs (5)
1099if (!isValueType || (RequiresAssignableVariable(valueKind) && (this.ContainingMemberOrLambda as MethodSymbol)?.IsEffectivelyReadOnly == true)) 1446if (RequiresAssignableVariable(valueKind) && !backingField.ContainingType.IsReferenceType && (this.ContainingMemberOrLambda as MethodSymbol)?.IsEffectivelyReadOnly == true) 2085var setValueKind = setMethod.IsEffectivelyReadOnly ? BindValueKind.RValue : BindValueKind.Assignable; 4955if (methodInfo.Method.IsEffectivelyReadOnly) 5004if (methodInfo.Method is null || methodInfo.Method.IsEffectivelyReadOnly)
CodeGen\CodeGenerator_HasHome.cs (1)
75if (!IsAnyReadOnly(addressKind) && containingSymbol is MethodSymbol { ContainingSymbol: NamedTypeSymbol, IsEffectivelyReadOnly: true })
CodeGen\EmitExpression.cs (1)
2235if (method.IsEffectivelyReadOnly && method.MethodKind != MethodKind.Constructor)
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
709structToStringMethod?.IsEffectivelyReadOnly == true;
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
172!method.IsEffectivelyReadOnly &&
Symbols\MethodSymbol.cs (1)
367/// See also <see cref="IsEffectivelyReadOnly"/>
Symbols\PublicModel\MethodSymbol.cs (1)
146return _underlying.IsEffectivelyReadOnly;
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5164Debug.Assert(isRecordClass || !members.Any(m => m is PropertySymbol { GetMethod.IsEffectivelyReadOnly: false }));
Symbols\Source\ThisParameterSymbol.cs (1)
167if (_containingMethod?.IsEffectivelyReadOnly == true)
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (1)
108return property.GetMethod is not null && !getterMethod.IsEffectivelyReadOnly;
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
333if (property.GetMethod is not null && !getterMethod.IsEffectivelyReadOnly)
Symbols\Synthesized\Records\SynthesizedRecordToString.cs (1)
30isReadOnly: printMethod.IsEffectivelyReadOnly)