90 writes to IsWarning
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (64)
Semantics\InheritanceBindingTests.cs (56)
457
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 11, Column = 17,
IsWarning
= true },
459
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 12, Column = 26,
IsWarning
= true },
461
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 13, Column = 25,
IsWarning
= true },
485
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 11, Column = 17,
IsWarning
= true },
487
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 12, Column = 26,
IsWarning
= true },
489
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 13, Column = 25,
IsWarning
= true },
513
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 11, Column = 17,
IsWarning
= true },
515
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 12, Column = 26,
IsWarning
= true },
517
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 13, Column = 25,
IsWarning
= true },
4406
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 28, Column = 17,
IsWarning
= true },
4407
new ErrorDescription { Code = (int)ErrorCode.ERR_HidingAbstractMethod, Line = 28, Column = 17,
IsWarning
= false },
4408
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 29, Column = 26,
IsWarning
= true },
4409
new ErrorDescription { Code = (int)ErrorCode.ERR_HidingAbstractMethod, Line = 29, Column = 26,
IsWarning
= false },
4410
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 30, Column = 25,
IsWarning
= true },
4411
new ErrorDescription { Code = (int)ErrorCode.ERR_HidingAbstractMethod, Line = 30, Column = 25,
IsWarning
= false },
4413
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 33, Column = 17,
IsWarning
= true },
4414
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 34, Column = 26,
IsWarning
= true },
4415
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 35, Column = 25,
IsWarning
= true },
4417
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 46, Column = 17,
IsWarning
= true },
4418
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 47, Column = 26,
IsWarning
= true },
4419
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 48, Column = 25,
IsWarning
= true },
4421
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 51, Column = 17,
IsWarning
= true },
4422
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 52, Column = 26,
IsWarning
= true },
4423
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 53, Column = 25,
IsWarning
= true },
4486
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 28, Column = 17,
IsWarning
= true }, //1
4487
new ErrorDescription { Code = (int)ErrorCode.ERR_HidingAbstractMethod, Line = 28, Column = 17,
IsWarning
= false }, //1.get/set
4488
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 29, Column = 26,
IsWarning
= true }, //2
4489
new ErrorDescription { Code = (int)ErrorCode.ERR_HidingAbstractMethod, Line = 29, Column = 26,
IsWarning
= false }, //2.get/set
4490
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 30, Column = 25,
IsWarning
= true }, //3
4491
new ErrorDescription { Code = (int)ErrorCode.ERR_HidingAbstractMethod, Line = 30, Column = 25,
IsWarning
= false }, //3.get/set
4493
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 33, Column = 17,
IsWarning
= true }, //4
4494
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 34, Column = 26,
IsWarning
= true }, //5
4495
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 35, Column = 25,
IsWarning
= true }, //6
4497
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 46, Column = 17,
IsWarning
= true }, //7
4498
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 47, Column = 26,
IsWarning
= true }, //8
4499
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 48, Column = 25,
IsWarning
= true }, //9
4501
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 51, Column = 17,
IsWarning
= true }, //10
4502
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 52, Column = 26,
IsWarning
= true }, //11
4503
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 53, Column = 25,
IsWarning
= true }, //12
4566
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 28, Column = 17,
IsWarning
= true }, //1
4567
new ErrorDescription { Code = (int)ErrorCode.ERR_HidingAbstractMethod, Line = 28, Column = 17,
IsWarning
= false }, //1.get/set
4568
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 29, Column = 26,
IsWarning
= true }, //2
4569
new ErrorDescription { Code = (int)ErrorCode.ERR_HidingAbstractMethod, Line = 29, Column = 26,
IsWarning
= false }, //2.get/set
4570
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 30, Column = 25,
IsWarning
= true }, //3
4571
new ErrorDescription { Code = (int)ErrorCode.ERR_HidingAbstractMethod, Line = 30, Column = 25,
IsWarning
= false }, //3.get/set
4573
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 33, Column = 17,
IsWarning
= true }, //4
4574
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 34, Column = 26,
IsWarning
= true }, //5
4575
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 35, Column = 25,
IsWarning
= true }, //6
4577
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 46, Column = 17,
IsWarning
= true }, //7
4578
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 47, Column = 26,
IsWarning
= true }, //8
4579
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 48, Column = 25,
IsWarning
= true }, //9
4581
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 51, Column = 17,
IsWarning
= true }, //10
4582
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 52, Column = 26,
IsWarning
= true }, //11
4583
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 53, Column = 25,
IsWarning
= true }, //12
4710
new ErrorDescription { Code = (int)ErrorCode.WRN_ExplicitImplCollision, Line = 10, Column = 25,
IsWarning
= true },
4781
new ErrorDescription { Code = (int)ErrorCode.WRN_ExplicitImplCollision, Line = 10, Column = 25,
IsWarning
= true },
Semantics\SemanticErrorTests.cs (8)
12181
new ErrorDescription { Code = (int)ErrorCode.WRN_UnreferencedVar, Line = 6, Column = 13,
IsWarning
= true }});
12215
new ErrorDescription { Code = (int)ErrorCode.WRN_UnreferencedVarAssg, Line = 6, Column = 13,
IsWarning
= true },
12216
new ErrorDescription { Code = (int)ErrorCode.WRN_UnreferencedVarAssg, Line = 6, Column = 20,
IsWarning
= true }});
14060
new ErrorDescription { Code = (int)ErrorCode.WRN_NewRequired, Line = 8, Column = 16,
IsWarning
= true },
14061
new ErrorDescription { Code = (int)ErrorCode.WRN_NewRequired, Line = 12, Column = 22,
IsWarning
= true },
19382
new ErrorDescription { Code = (int)ErrorCode.WRN_IsAlwaysTrue, Line = 14, Column = 13,
IsWarning
= true });
22043
new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.WRN_CallOnNonAgileField, Line = 11, Column = 9,
IsWarning
= true } });
22260
new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.WRN_AssignmentToSelf, Line = 7, Column = 7,
IsWarning
= true } });
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (25)
Symbols\SymbolErrorTests.cs (25)
3224
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 12, Column = 24,
IsWarning
= true },
8465
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 11, Column = 23,
IsWarning
= true },
12721
new ErrorDescription { Code = (int)ErrorCode.WRN_TypeParameterSameAsOuterTypeParameter, Line = 5, Column = 16,
IsWarning
= true },
12722
new ErrorDescription { Code = (int)ErrorCode.WRN_TypeParameterSameAsOuterTypeParameter, Line = 10, Column = 28,
IsWarning
= true },
12723
new ErrorDescription { Code = (int)ErrorCode.WRN_TypeParameterSameAsOuterTypeParameter, Line = 12, Column = 25,
IsWarning
= true });
17043
new ErrorDescription { Code = (int)ErrorCode.WRN_NewRequired, Line = 12, Column = 27,
IsWarning
= true });
17133
new ErrorDescription { Code = (int)ErrorCode.WRN_NewRequired, Line = 13, Column = 23,
IsWarning
= true },
17134
new ErrorDescription { Code = (int)ErrorCode.WRN_NewRequired, Line = 26, Column = 20,
IsWarning
= true });
17533
new ErrorDescription { Code = (int)ErrorCode.WRN_NewNotRequired, Line = 11, Column = 24,
IsWarning
= true });
17557
new ErrorDescription { Code = (int)ErrorCode.WRN_NewOrOverrideExpected, Line = 8, Column = 17,
IsWarning
= true },
18022
new ErrorDescription { Code = (int)ErrorCode.WRN_ExplicitImplCollision, Line = 9, Column = 20,
IsWarning
= true });
18098
new ErrorDescription { Code = (int)ErrorCode.WRN_ProtectedInSealed, Line = 5, Column = 23,
IsWarning
= true },
18099
new ErrorDescription { Code = (int)ErrorCode.WRN_ProtectedInSealed, Line = 6, Column = 33,
IsWarning
= true },
18100
new ErrorDescription { Code = (int)ErrorCode.WRN_ProtectedInSealed, Line = 11, Column = 33,
IsWarning
= true },
18101
new ErrorDescription { Code = (int)ErrorCode.WRN_ProtectedInSealed, Line = 12, Column = 21,
IsWarning
= true });
18118
new ErrorDescription { Code = (int)ErrorCode.WRN_ProtectedInSealed, Line = 3, Column = 22,
IsWarning
= true },
18119
new ErrorDescription { Code = (int)ErrorCode.WRN_ProtectedInSealed, Line = 4, Column = 35,
IsWarning
= true },
18120
new ErrorDescription { Code = (int)ErrorCode.WRN_ProtectedInSealed, Line = 8, Column = 26,
IsWarning
= true },
18121
new ErrorDescription { Code = (int)ErrorCode.WRN_ProtectedInSealed, Line = 8, Column = 45,
IsWarning
= true });
18350
new ErrorDescription { Code = (int)ErrorCode.WRN_NonObsoleteOverridingObsolete, Line = 11, Column = 26,
IsWarning
= true });
18370
new ErrorDescription { Code = (int)ErrorCode.WRN_CoClassWithoutComImport, Line = 4, Column = 2,
IsWarning
= true });
18391
new ErrorDescription { Code = (int)ErrorCode.WRN_ObsoleteOverridingNonObsolete, Line = 10, Column = 26,
IsWarning
= true });
18790
new ErrorDescription { Code = (int)ErrorCode.WRN_MultipleRuntimeImplementationMatches, Line = 20, Column = 33,
IsWarning
= true });
19332
new ErrorDescription { Code = (int)ErrorCode.WRN_CLS_VolatileField, Line = 4, Column = 25,
IsWarning
= true });
19359
new ErrorDescription { Code = (int)ErrorCode.WRN_CLS_BadInterface, Line = 13, Column = 18,
IsWarning
= true });
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
DiagnosticTestUtilities.cs (1)
121
IsWarning
= e.Severity == DiagnosticSeverity.Warning,
3 references to IsWarning
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
DiagnosticTestUtilities.cs (3)
28
return string.Format("Line={0}, Column={1}, Code={2}, IsWarning={3}", this.Line, this.Column, this.Code, this.
IsWarning
);
155
Assert.True(experr.
IsWarning
== acterr.IsWarning, String.Format("IsWarning {0}!={1}", experr.
IsWarning
, acterr.IsWarning));