25 references to Error
Microsoft.CodeAnalysis.CodeStyle (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (2)
59
/// in <paramref name="value"/> and <see cref="NotificationOption2.
Error
"/> will be returned
111
case EditorConfigSeverityStrings.Error: notification = NotificationOption2.
Error
; return true;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
195
DiagnosticSeverity.Error => NotificationOption2.
Error
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\NotificationOption2.cs (2)
49
ReportDiagnostic.Error =>
Error
,
60
DiagnosticSeverity.Error =>
Error
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticSeverityExtensions.cs (1)
15
DiagnosticSeverity.Error => NotificationOption2.
Error
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReportDiagnosticExtensions.cs (1)
30
ReportDiagnostic.Error => NotificationOption2.
Error
,
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (18)
src\Analyzers\CSharp\Tests\GenerateConstructor\GenerateConstructorTests.cs (5)
528
new(options: Option(CodeStyleOptions2.QualifyFieldAccess, true, NotificationOption2.
Error
)));
663
new(options: Option(CodeStyleOptions2.QualifyFieldAccess, true, NotificationOption2.
Error
)));
831
new(options: Option(CodeStyleOptions2.QualifyPropertyAccess, true, NotificationOption2.
Error
)));
966
new(options: Option(CodeStyleOptions2.QualifyPropertyAccess, true, NotificationOption2.
Error
)));
1055
new(options: Option(CodeStyleOptions2.QualifyPropertyAccess, true, NotificationOption2.
Error
)));
src\Analyzers\CSharp\Tests\MisplacedUsingDirectives\MisplacedUsingDirectivesTests.cs (3)
36
new(AddImportPlacement.InsideNamespace, NotificationOption2.
Error
);
39
new(AddImportPlacement.OutsideNamespace, NotificationOption2.
Error
);
42
new(AddImportPlacement.OutsideNamespaceIgnoringAliases, NotificationOption2.
Error
);
src\Analyzers\CSharp\Tests\QualifyMemberAccess\QualifyMemberAccessTests.cs (3)
35
=> TestAsyncWithOptionAndNotificationOption(code, expected, option, NotificationOption2.
Error
);
45
=> TestMissingAsyncWithOptionAndNotificationOption(code, option, NotificationOption2.
Error
);
1501
CodeStyleOptions2.QualifyPropertyAccess, NotificationOption2.
Error
);
src\Analyzers\CSharp\Tests\UseAutoProperty\UseAutoPropertyTests.cs (2)
3031
new(options: Option(CodeStyleOptions2.QualifyPropertyAccess, false, NotificationOption2.
Error
)));
3060
new(options: Option(CodeStyleOptions2.QualifyPropertyAccess, true, NotificationOption2.
Error
)));
src\Analyzers\CSharp\Tests\UseExpressionBody\UseExpressionBodyForMethodsAnalyzerTests.cs (1)
68
Assert.Equal(NotificationOption2.
Error
.WithIsExplicitlySpecified(true), option.Notification);
src\Analyzers\CSharp\Tests\UseImplicitOrExplicitType\UseExplicitTypeTests.cs (1)
31
private readonly CodeStyleOption2<bool> offWithError = new(false, NotificationOption2.
Error
);
src\Analyzers\CSharp\Tests\UseImplicitOrExplicitType\UseImplicitTypeTests.cs (1)
32
private static readonly CodeStyleOption2<bool> onWithError = new(true, NotificationOption2.
Error
);
src\Analyzers\CSharp\Tests\UseVarTestExtensions.cs (2)
22
private static readonly CodeStyleOption2<bool> offWithError = new(false, NotificationOption2.
Error
);
23
private static readonly CodeStyleOption2<bool> onWithError = new(true, NotificationOption2.
Error
);