7 references to EnsureIsReadOnlyAttributeExists
Microsoft.CodeAnalysis.CSharp (7)
BoundTree\UnboundLambda.cs (1)
820compilation.EnsureIsReadOnlyAttributeExists(diagnostics, lambdaSymbol.DiagnosticLocation, modifyCompilation: false);
Symbols\Source\ParameterHelpers.cs (1)
251compilation.EnsureIsReadOnlyAttributeExists(diagnostics, GetParameterLocation(parameter), modifyCompilation);
Symbols\Source\SourceFieldSymbol.cs (1)
141compilation.EnsureIsReadOnlyAttributeExists(diagnostics, location, modifyCompilation: true);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
1822compilation.EnsureIsReadOnlyAttributeExists(diagnostics, location, modifyCompilation: true);
Symbols\Source\SourceMemberMethodSymbol.cs (1)
958compilation.EnsureIsReadOnlyAttributeExists(diagnostics, _location, modifyCompilation: true);
Symbols\Source\SourceOrdinaryMethodOrUserDefinedOperatorSymbol.cs (1)
244compilation.EnsureIsReadOnlyAttributeExists(diagnostics, getReturnTypeLocation(), modifyCompilation: true);
Symbols\Source\SourcePropertySymbolBase.cs (1)
1027compilation.EnsureIsReadOnlyAttributeExists(diagnostics, location, modifyCompilation: true);