4 references to NoFieldOfCopyableTypeRule
Roslyn.Diagnostics.Analyzers (2)
AbstractDoNotCopyValue.cs (2)
131
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(Rule, UnsupportedUseRule, NoBoxingRule, NoUnboxingRule,
NoFieldOfCopyableTypeRule
, NoAutoPropertyRule);
284
_context.ReportDiagnostic(symbol.CreateDiagnostic(
NoFieldOfCopyableTypeRule
, symbol.Type, symbol));
Roslyn.Diagnostics.Analyzers.UnitTests (2)
DoNotCopyValueTests.cs (2)
1209
VerifyCS.Diagnostic(AbstractDoNotCopyValue.
NoFieldOfCopyableTypeRule
).WithLocation(0).WithArguments("CannotCopy", "C2.field2"));
1233
VerifyVB.Diagnostic(AbstractDoNotCopyValue.
NoFieldOfCopyableTypeRule
).WithLocation(0).WithArguments("CannotCopy", "Private field2 As CannotCopy"));