8 references to NoAssignValueFromReferenceRule
Roslyn.Diagnostics.Analyzers (3)
AbstractDoNotCopyValue.cs (3)
1131
_context.ReportDiagnostic(value.CreateDiagnostic(
NoAssignValueFromReferenceRule
, value.Type));
1289
_context.ReportDiagnostic(initializer.CreateDiagnostic(
NoAssignValueFromReferenceRule
, symbol.Type));
1316
_context.ReportDiagnostic(initializer.CreateDiagnostic(
NoAssignValueFromReferenceRule
, operation.Symbol.Type));
Roslyn.Diagnostics.Analyzers.UnitTests (5)
DoNotCopyValueTests.cs (5)
156
VerifyCS.Diagnostic(AbstractDoNotCopyValue.
NoAssignValueFromReferenceRule
).WithLocation(0).WithArguments("System.Runtime.InteropServices.GCHandle"));
170
VerifyVB.Diagnostic(AbstractDoNotCopyValue.
NoAssignValueFromReferenceRule
).WithLocation(0).WithArguments("System.Runtime.InteropServices.GCHandle"));
267
VerifyCS.Diagnostic(AbstractDoNotCopyValue.
NoAssignValueFromReferenceRule
).WithLocation(0).WithArguments("System.Runtime.InteropServices.GCHandle"));
1097
VerifyCS.Diagnostic(AbstractDoNotCopyValue.
NoAssignValueFromReferenceRule
).WithLocation(0).WithArguments("CannotCopy"),
1099
VerifyCS.Diagnostic(AbstractDoNotCopyValue.
NoAssignValueFromReferenceRule
).WithLocation(1).WithArguments("CannotCopy"),