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 111case EditorConfigSeverityStrings.Error: notification = NotificationOption2.Error; return true;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOption2`1.cs (1)
195DiagnosticSeverity.Error => NotificationOption2.Error,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\NotificationOption2.cs (2)
49ReportDiagnostic.Error => Error, 60DiagnosticSeverity.Error => Error,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticSeverityExtensions.cs (1)
15DiagnosticSeverity.Error => NotificationOption2.Error,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReportDiagnosticExtensions.cs (1)
30ReportDiagnostic.Error => NotificationOption2.Error,
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (18)
src\Analyzers\CSharp\Tests\GenerateConstructor\GenerateConstructorTests.cs (5)
528new(options: Option(CodeStyleOptions2.QualifyFieldAccess, true, NotificationOption2.Error))); 663new(options: Option(CodeStyleOptions2.QualifyFieldAccess, true, NotificationOption2.Error))); 831new(options: Option(CodeStyleOptions2.QualifyPropertyAccess, true, NotificationOption2.Error))); 966new(options: Option(CodeStyleOptions2.QualifyPropertyAccess, true, NotificationOption2.Error))); 1055new(options: Option(CodeStyleOptions2.QualifyPropertyAccess, true, NotificationOption2.Error)));
src\Analyzers\CSharp\Tests\MisplacedUsingDirectives\MisplacedUsingDirectivesTests.cs (3)
36new(AddImportPlacement.InsideNamespace, NotificationOption2.Error); 39new(AddImportPlacement.OutsideNamespace, NotificationOption2.Error); 42new(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); 1501CodeStyleOptions2.QualifyPropertyAccess, NotificationOption2.Error);
src\Analyzers\CSharp\Tests\UseAutoProperty\UseAutoPropertyTests.cs (2)
3031new(options: Option(CodeStyleOptions2.QualifyPropertyAccess, false, NotificationOption2.Error))); 3060new(options: Option(CodeStyleOptions2.QualifyPropertyAccess, true, NotificationOption2.Error)));
src\Analyzers\CSharp\Tests\UseExpressionBody\UseExpressionBodyForMethodsAnalyzerTests.cs (1)
68Assert.Equal(NotificationOption2.Error.WithIsExplicitlySpecified(true), option.Notification);
src\Analyzers\CSharp\Tests\UseImplicitOrExplicitType\UseExplicitTypeTests.cs (1)
31private readonly CodeStyleOption2<bool> offWithError = new(false, NotificationOption2.Error);
src\Analyzers\CSharp\Tests\UseImplicitOrExplicitType\UseImplicitTypeTests.cs (1)
32private static readonly CodeStyleOption2<bool> onWithError = new(true, NotificationOption2.Error);
src\Analyzers\CSharp\Tests\UseVarTestExtensions.cs (2)
22private static readonly CodeStyleOption2<bool> offWithError = new(false, NotificationOption2.Error); 23private static readonly CodeStyleOption2<bool> onWithError = new(true, NotificationOption2.Error);