26 references to WRN_PrimaryConstructorParameterIsShadowedAndNotPassedToBase
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Expressions.cs (1)
1819
diagnostics.Add(ErrorCode.
WRN_PrimaryConstructorParameterIsShadowedAndNotPassedToBase
, node.Location, shadowedParameter);
Binder\Binder_Invocation.cs (1)
1904
if (code == (int)ErrorCode.
WRN_PrimaryConstructorParameterIsShadowedAndNotPassedToBase
&&
Errors\ErrorFacts.cs (2)
550
case ErrorCode.
WRN_PrimaryConstructorParameterIsShadowedAndNotPassedToBase
:
2397
or ErrorCode.
WRN_PrimaryConstructorParameterIsShadowedAndNotPassedToBase
Generated\ErrorFacts.Generated.cs (1)
323
case ErrorCode.
WRN_PrimaryConstructorParameterIsShadowedAndNotPassedToBase
:
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (20)
Semantics\PrimaryConstructorTests.cs (20)
20871
Diagnostic(ErrorCode.
WRN_PrimaryConstructorParameterIsShadowedAndNotPassedToBase
, "p1").WithArguments("int p1").WithLocation(15, 24)
20903
Diagnostic(ErrorCode.
WRN_PrimaryConstructorParameterIsShadowedAndNotPassedToBase
, "p1").WithArguments("int p1").WithLocation(11, 20)
20935
Diagnostic(ErrorCode.
WRN_PrimaryConstructorParameterIsShadowedAndNotPassedToBase
, "p1").WithArguments("int p1").WithLocation(11, 20)
21008
Diagnostic(ErrorCode.
WRN_PrimaryConstructorParameterIsShadowedAndNotPassedToBase
, "p1").WithArguments("int p1").WithLocation(11, 20)
21059
Diagnostic(ErrorCode.
WRN_PrimaryConstructorParameterIsShadowedAndNotPassedToBase
, "p1").WithArguments("int p1").WithLocation(11, 20)
21096
Diagnostic(ErrorCode.
WRN_PrimaryConstructorParameterIsShadowedAndNotPassedToBase
, "Type1").WithArguments("int Type1").WithLocation(11, 20)
21167
Diagnostic(ErrorCode.
WRN_PrimaryConstructorParameterIsShadowedAndNotPassedToBase
, "Type1").WithArguments("int Type1").WithLocation(11, 20)
21204
Diagnostic(ErrorCode.
WRN_PrimaryConstructorParameterIsShadowedAndNotPassedToBase
, "Type1").WithArguments("Type1 Type1").WithLocation(11, 20)
21239
Diagnostic(ErrorCode.
WRN_PrimaryConstructorParameterIsShadowedAndNotPassedToBase
, "Type1").WithArguments("Base.Type1 Type1").WithLocation(14, 20)
21274
Diagnostic(ErrorCode.
WRN_PrimaryConstructorParameterIsShadowedAndNotPassedToBase
, "Type1").WithArguments("Base.Type1 Type1").WithLocation(14, 20),
21309
Diagnostic(ErrorCode.
WRN_PrimaryConstructorParameterIsShadowedAndNotPassedToBase
, "p1").WithArguments("int p1").WithLocation(11, 17)
21402
Diagnostic(ErrorCode.
WRN_PrimaryConstructorParameterIsShadowedAndNotPassedToBase
, "p1").WithArguments("int p1").WithLocation(11, 17),
21442
Diagnostic(ErrorCode.
WRN_PrimaryConstructorParameterIsShadowedAndNotPassedToBase
, "p1").WithArguments("int p1").WithLocation(11, 20),
21445
Diagnostic(ErrorCode.
WRN_PrimaryConstructorParameterIsShadowedAndNotPassedToBase
, "p1").WithArguments("int p1").WithLocation(16, 20)
21602
Diagnostic(ErrorCode.
WRN_PrimaryConstructorParameterIsShadowedAndNotPassedToBase
, "p1").WithArguments("int p1").WithLocation(11, 20),
21640
Diagnostic(ErrorCode.
WRN_PrimaryConstructorParameterIsShadowedAndNotPassedToBase
, "p1").WithArguments("int p1").WithLocation(8, 20)
21647
Diagnostic(ErrorCode.
WRN_PrimaryConstructorParameterIsShadowedAndNotPassedToBase
, "p1").WithArguments("int p1").WithLocation(6, 20),
21682
Diagnostic(ErrorCode.
WRN_PrimaryConstructorParameterIsShadowedAndNotPassedToBase
, "p1").WithArguments("int p1").WithLocation(6, 20)
21691
Diagnostic(ErrorCode.
WRN_PrimaryConstructorParameterIsShadowedAndNotPassedToBase
, "p1").WithArguments("int p1").WithLocation(6, 20)
21724
Diagnostic(ErrorCode.
WRN_PrimaryConstructorParameterIsShadowedAndNotPassedToBase
, "p1").WithArguments("int p1").WithLocation(15, 17)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
311
case ErrorCode.
WRN_PrimaryConstructorParameterIsShadowedAndNotPassedToBase
: