13 references to WRN_PatternBadSignature
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder_Statements.cs (2)
777
diagnostics.Add(ErrorCode.
WRN_PatternBadSignature
, syntaxNode.Location, expr.Type, MessageID.IDS_Disposable.Localize(), disposeMethod);
1351
additionalDiagnostics.Add(ErrorCode.
WRN_PatternBadSignature
, initializer.Syntax.Location, initializer.Type, "fixed", patternMethodSymbol);
Binder\ForEachLoopBinder.cs (1)
1506
diagnostics.Add(ErrorCode.
WRN_PatternBadSignature
, _syntax.Expression.Location, enumeratorType, MessageID.IDS_Collection.Localize(), patternMemberCandidate);
Errors\ErrorFacts.cs (2)
285
case ErrorCode.
WRN_PatternBadSignature
:
783
case ErrorCode.
WRN_PatternBadSignature
:
Generated\ErrorFacts.Generated.cs (1)
29
case ErrorCode.
WRN_PatternBadSignature
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\UnsafeTests.cs (1)
5340
Diagnostic(ErrorCode.
WRN_PatternBadSignature
, "new Fixable(1)").WithArguments("Fixable", "fixed", "Fixable.GetPinnableReference(int)").WithLocation(6, 25),
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IUsingStatement.cs (1)
7293
Diagnostic(ErrorCode.
WRN_PatternBadSignature
, "using var x = new P();").WithArguments("P", "disposable", "P.Dispose()").WithLocation(8, 13),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\SemanticErrorTests.cs (1)
19848
Diagnostic(ErrorCode.
WRN_PatternBadSignature
, "new Derived()").WithArguments("Derived", "collection", "Derived.GetEnumerator"),
Semantics\UsingStatementTests.cs (4)
750
Diagnostic(ErrorCode.
WRN_PatternBadSignature
, "S1 s = new S1()").WithArguments("S1", "disposable", "S1.Dispose()").WithLocation(19, 15),
952
Diagnostic(ErrorCode.
WRN_PatternBadSignature
, "S1 c = new S1()").WithArguments("S1", "disposable", "S1.Dispose()").WithLocation(11, 16),
958
Diagnostic(ErrorCode.
WRN_PatternBadSignature
, "c1b").WithArguments("S1", "disposable", "S1.Dispose()").WithLocation(15, 16),
1197
Diagnostic(ErrorCode.
WRN_PatternBadSignature
, "S1 s = new S1()").WithArguments("S1", "disposable", "S1.Dispose()").WithLocation(11, 16),