8 references to ERR_ConditionalOnSpecialMethod
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
978
or ErrorCode.
ERR_ConditionalOnSpecialMethod
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
747
diagnostics.Add(ErrorCode.
ERR_ConditionalOnSpecialMethod
, node.Location, this);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\LambdaTests.cs (1)
4117
Diagnostic(ErrorCode.
ERR_ConditionalOnSpecialMethod
, @"Conditional(""DEBUG"")").WithArguments("lambda expression").WithLocation(10, 17));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Symbols\DestructorTests.cs (1)
555
Diagnostic(ErrorCode.
ERR_ConditionalOnSpecialMethod
, @"Conditional(""Debug"")").WithArguments("Test.~Test()"));
Symbols\SymbolErrorTests.cs (4)
11144
Diagnostic(ErrorCode.
ERR_ConditionalOnSpecialMethod
, @"Conditional("""")").WithArguments("Program.Program()").WithLocation(5, 6));
11160
Diagnostic(ErrorCode.
ERR_ConditionalOnSpecialMethod
, @"Conditional("""")").WithArguments("Program.~Program()").WithLocation(4, 6));
11176
Diagnostic(ErrorCode.
ERR_ConditionalOnSpecialMethod
, @"Conditional("""")").WithArguments("C.operator !(C)").WithLocation(4, 6));
11196
Diagnostic(ErrorCode.
ERR_ConditionalOnSpecialMethod
, @"System.Diagnostics.Conditional(""a"")").WithArguments("MyClass.I.m()").WithLocation(8, 6));