5 references to InvalidConversionExpressionDescriptor
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Diagnostics\OperationAnalyzerTests.cs (3)
1676
Diagnostic(ConversionExpressionCSharpTestAnalyzer.
InvalidConversionExpressionDescriptor
.Id, "null.Length").WithLocation(8, 17),
1677
Diagnostic(ConversionExpressionCSharpTestAnalyzer.
InvalidConversionExpressionDescriptor
.Id, "string.Empty").WithLocation(10, 17),
1678
Diagnostic(ConversionExpressionCSharpTestAnalyzer.
InvalidConversionExpressionDescriptor
.Id, "global::MyType()").WithLocation(12, 17));
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\OperationTestAnalyzer.cs (2)
1886
get { return ImmutableArray.Create(
InvalidConversionExpressionDescriptor
); }
1897
operationContext.ReportDiagnostic(Diagnostic.Create(
InvalidConversionExpressionDescriptor
, conversion.Syntax.GetLocation()));