205 references to GeneratedCodeAnalysisFlags
Aspire.Hosting.Analyzers (1)
AppHostAnalyzer.cs (1)
23context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.ReportDiagnostics);
ILLink.RoslynAnalyzer (6)
COMAnalyzer.cs (2)
29 context.ConfigureGeneratedCodeAnalysis (GeneratedCodeAnalysisFlags.Analyze | GeneratedCodeAnalysisFlags.ReportDiagnostics);
DynamicallyAccessedMembersAnalyzer.cs (2)
92 context.ConfigureGeneratedCodeAnalysis (GeneratedCodeAnalysisFlags.Analyze | GeneratedCodeAnalysisFlags.ReportDiagnostics);
RequiresAnalyzerBase.cs (2)
42 context.ConfigureGeneratedCodeAnalysis (GeneratedCodeAnalysisFlags.Analyze | GeneratedCodeAnalysisFlags.ReportDiagnostics);
Microsoft.Analyzers.Extra (7)
AsyncCallInsideUsingBlockAnalyzer.cs (1)
21context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
AsyncMethodWithoutCancellation.cs (1)
21context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
CallAnalysis\CallAnalyzer.cs (1)
27context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
CoalesceAnalyzer.cs (1)
22context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
ConditionalAccessAnalyzer.cs (1)
22context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
MakeExeTypesInternalAnalyzer.cs (1)
54context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
UsingToStringInLoggersAnalyzer.cs (1)
21context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
Microsoft.Analyzers.Local (3)
ApiLifecycle\ApiLifecycleAnalyzer.cs (1)
32context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
CallAnalysis\CallAnalyzer.cs (1)
23context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
InternalReferencedInPublicDocAnalyzer.cs (1)
108context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
Microsoft.AspNetCore.Analyzers (1)
StartupAnalyzer.cs (1)
25context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
Microsoft.AspNetCore.App.Analyzers (12)
Authorization\AddAuthorizationBuilderAnalyzer.cs (1)
23context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
Http\HeaderDictionaryAddAnalyzer.cs (1)
21context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
Http\HeaderDictionaryIndexerAnalyzer.cs (1)
20context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
Http\RequestDelegateReturnTypeAnalyzer.cs (1)
21context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
Kestrel\ListenOnIPv6AnyAnalyzer.cs (1)
21context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
Mvc\MvcAnalyzer.cs (1)
31context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
RenderTreeBuilder\RenderTreeBuilderAnalyzer.cs (1)
23context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
RouteEmbeddedLanguage\RoutePatternAnalyzer.cs (2)
157context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.Analyze | GeneratedCodeAnalysisFlags.ReportDiagnostics);
RouteHandlers\RouteHandlerAnalyzer.cs (1)
36context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
WebApplicationBuilder\PublicPartialProgramClassAnalyzer.cs (1)
20context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
WebApplicationBuilder\WebApplicationBuilderAnalyzer.cs (1)
33context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
Microsoft.AspNetCore.App.Analyzers.Test (1)
Infrastructure\WellKnownTypesTests.cs (1)
105context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
Microsoft.AspNetCore.Components.Analyzers (6)
ComponentInternalUsageDiagnosticAnalzyer.cs (2)
34context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.Analyze | GeneratedCodeAnalysisFlags.ReportDiagnostics);
ComponentParameterAnalyzer.cs (2)
39context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.Analyze | GeneratedCodeAnalysisFlags.ReportDiagnostics);
ComponentParameterUsageAnalyzer.cs (2)
28context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.Analyze | GeneratedCodeAnalysisFlags.ReportDiagnostics);
Microsoft.AspNetCore.Components.SdkAnalyzers (6)
ComponentInternalUsageDiagnosticAnalzyer.cs (2)
34context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.Analyze | GeneratedCodeAnalysisFlags.ReportDiagnostics);
ComponentParameterAnalyzer.cs (2)
33context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.Analyze | GeneratedCodeAnalysisFlags.ReportDiagnostics);
ComponentParameterUsageAnalyzer.cs (2)
28context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.Analyze | GeneratedCodeAnalysisFlags.ReportDiagnostics);
Microsoft.AspNetCore.Mvc.Analyzers (6)
AttributesShouldNotBeAppliedToPageModelAnalyzer.cs (1)
21context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
TagHelpersInCodeBlocksAnalyzer.cs (2)
26context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.Analyze | GeneratedCodeAnalysisFlags.ReportDiagnostics);
TopLevelParameterNameAnalyzer.cs (1)
22context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
ViewFeatureAnalyzerBase.cs (2)
25context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.Analyze | GeneratedCodeAnalysisFlags.ReportDiagnostics);
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzer.cs (1)
21context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
ApiConventionAnalyzer.cs (1)
23context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
Microsoft.CodeAnalysis (31)
DiagnosticAnalyzer\AnalyzerDriver.cs (20)
148/// This mode should always guarantee that analyzer action callbacks are enabled for generated code, i.e. <see cref="GeneratedCodeAnalysisFlags.Analyze"/> is set. 151internal const GeneratedCodeAnalysisFlags DefaultGeneratedCodeAnalysisFlags = GeneratedCodeAnalysisFlags.Analyze | GeneratedCodeAnalysisFlags.ReportDiagnostics; 166private ImmutableSegmentedDictionary<DiagnosticAnalyzer, GeneratedCodeAnalysisFlags> _lazyGeneratedCodeAnalysisFlagsMap; 169/// Map from analyzers to their <see cref="GeneratedCodeAnalysisFlags"/> setting. 171private ImmutableSegmentedDictionary<DiagnosticAnalyzer, GeneratedCodeAnalysisFlags> GeneratedCodeAnalysisFlagsMap 566ImmutableSegmentedDictionary<DiagnosticAnalyzer, GeneratedCodeAnalysisFlags> generatedCodeAnalysisFlagsMap, 583private static bool ComputeShouldTreatAllCodeAsNonGeneratedCode(ImmutableHashSet<DiagnosticAnalyzer> analyzers, ImmutableSegmentedDictionary<DiagnosticAnalyzer, GeneratedCodeAnalysisFlags> generatedCodeAnalysisFlagsMap) 587var flags = generatedCodeAnalysisFlagsMap[analyzer]; 588var analyze = (flags & GeneratedCodeAnalysisFlags.Analyze) != 0; 589var report = (flags & GeneratedCodeAnalysisFlags.ReportDiagnostics) != 0; 604ImmutableSegmentedDictionary<DiagnosticAnalyzer, GeneratedCodeAnalysisFlags> generatedCodeAnalysisFlagsMap, 612var mode = generatedCodeAnalysisFlagsMap[analyzer]; 613return (mode & GeneratedCodeAnalysisFlags.Analyze) == 0; 623var generatedCodeAnalysisFlags = GeneratedCodeAnalysisFlagsMap[analyzer]; 624var suppressInGeneratedCode = (generatedCodeAnalysisFlags & GeneratedCodeAnalysisFlags.ReportDiagnostics) == 0; 2249private static async Task<ImmutableSegmentedDictionary<DiagnosticAnalyzer, GeneratedCodeAnalysisFlags>> CreateGeneratedCodeAnalysisFlagsMapAsync( 2257var builder = ImmutableSegmentedDictionary.CreateBuilder<DiagnosticAnalyzer, GeneratedCodeAnalysisFlags>(); 2262var generatedCodeAnalysisFlags = await analyzerManager.GetGeneratedCodeAnalysisFlagsAsync(analyzer, analyzerExecutor, cancellationToken).ConfigureAwait(false);
DiagnosticAnalyzer\AnalyzerManager.cs (2)
240/// Returns <see cref="GeneratedCodeAnalysisFlags"/> for the given analyzer. 243public async Task<GeneratedCodeAnalysisFlags> GetGeneratedCodeAnalysisFlagsAsync(DiagnosticAnalyzer analyzer, AnalyzerExecutor analyzerExecutor, CancellationToken cancellationToken)
DiagnosticAnalyzer\CompilerDiagnosticAnalyzer.cs (2)
41context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.Analyze | GeneratedCodeAnalysisFlags.ReportDiagnostics);
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (2)
218/// It is recommended for the analyzer to invoke this API with the required <see cref="GeneratedCodeAnalysisFlags"/> setting. 220public virtual void ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags analysisMode)
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (4)
113public override void ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags mode) 361private GeneratedCodeAnalysisFlags _generatedCodeConfiguration = AnalyzerDriver.DefaultGeneratedCodeAnalysisFlags; 368public GeneratedCodeAnalysisFlags GetGeneratedCodeAnalysisFlags() 385public void ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags mode)
DiagnosticAnalyzer\DiagnosticSuppressor.cs (1)
20context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
Microsoft.CodeAnalysis.CodeStyle (14)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (2)
73protected virtual GeneratedCodeAnalysisFlags GeneratedCodeAnalysisFlags => GeneratedCodeAnalysisFlags.None;
src\Analyzers\Core\Analyzers\AbstractCodeQualityDiagnosticAnalyzer.cs (2)
14private readonly GeneratedCodeAnalysisFlags _generatedCodeAnalysisFlags; 18GeneratedCodeAnalysisFlags generatedCodeAnalysisFlags)
src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (2)
33protected sealed override GeneratedCodeAnalysisFlags GeneratedCodeAnalysisFlags => GeneratedCodeAnalysisFlags.Analyze;
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (1)
49: base([s_invalidScopeDescriptor, s_invalidOrMissingTargetDescriptor, LegacyFormatTargetDescriptor], GeneratedCodeAnalysisFlags.None)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
39: base([s_removeUnnecessarySuppressionDescriptor], GeneratedCodeAnalysisFlags.None)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (2)
80protected override GeneratedCodeAnalysisFlags GeneratedCodeAnalysisFlags => GeneratedCodeAnalysisFlags.Analyze;
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (2)
194protected sealed override GeneratedCodeAnalysisFlags GeneratedCodeAnalysisFlags => GeneratedCodeAnalysisFlags.Analyze;
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (2)
69context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.Analyze | GeneratedCodeAnalysisFlags.ReportDiagnostics);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableDiagnosticAnalyzer.cs (1)
25: base([s_diagnosticDescriptor], GeneratedCodeAnalysisFlags.ReportDiagnostics)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (34)
Diagnostics\DiagnosticAnalyzerTests.cs (34)
1545VerifyGeneratedCodeAnalyzerDiagnostics(compilation, analyzerOptions, isGeneratedFile, GeneratedCodeAnalysisFlags.None); 1547VerifyGeneratedCodeAnalyzerDiagnostics(compilation, analyzerOptions, isGeneratedFile, GeneratedCodeAnalysisFlags.Analyze); 1548VerifyGeneratedCodeAnalyzerDiagnostics(compilation, analyzerOptions, isGeneratedFile, GeneratedCodeAnalysisFlags.ReportDiagnostics); 1549VerifyGeneratedCodeAnalyzerDiagnostics(compilation, analyzerOptions, isGeneratedFile, GeneratedCodeAnalysisFlags.Analyze | GeneratedCodeAnalysisFlags.ReportDiagnostics); 1581AddExpectedLocalDiagnostics(builder, false, squiggledText, line, column, GeneratedCodeAnalysisFlags.ReportDiagnostics, diagnosticArgument); 1588AddExpectedLocalDiagnostics(builder, false, squiggledText, line, column, GeneratedCodeAnalysisFlags.ReportDiagnostics, diagnosticArgument); 1596VerifyGeneratedCodeAnalyzerDiagnostics(compilation, expected, GeneratedCodeAnalysisFlags.None); 1598VerifyGeneratedCodeAnalyzerDiagnostics(compilation, expected, GeneratedCodeAnalysisFlags.Analyze); 1599VerifyGeneratedCodeAnalyzerDiagnostics(compilation, expected, GeneratedCodeAnalysisFlags.ReportDiagnostics); 1600VerifyGeneratedCodeAnalyzerDiagnostics(compilation, expected, GeneratedCodeAnalysisFlags.Analyze | GeneratedCodeAnalysisFlags.ReportDiagnostics); 1625public GeneratedCodeAnalyzer(GeneratedCodeAnalysisFlags? generatedCodeAnalysisFlags, bool testIsGeneratedCodeInCallbacks = false) 1693private static void VerifyGeneratedCodeAnalyzerDiagnostics(Compilation compilation, AnalyzerOptions analyzerOptions, Func<string, bool> isGeneratedFileName, GeneratedCodeAnalysisFlags? generatedCodeAnalysisFlagsOpt) 1699private static void VerifyGeneratedCodeAnalyzerDiagnostics(Compilation compilation, DiagnosticDescription[] expected, GeneratedCodeAnalysisFlags? generatedCodeAnalysisFlagsOpt, AnalyzerOptions analyzerOptions = null, bool testIsGeneratedCodeInCallbacks = false) 1705private static DiagnosticDescription[] GetExpectedGeneratedCodeAnalyzerDiagnostics(Compilation compilation, Func<string, bool> isGeneratedFileName, GeneratedCodeAnalysisFlags? generatedCodeAnalysisFlagsOpt) 1772if (generatedCodeAnalysisFlagsOpt == null || (generatedCodeAnalysisFlagsOpt & GeneratedCodeAnalysisFlags.Analyze) != 0) 1850GeneratedCodeAnalysisFlags? generatedCodeAnalysisFlagsOpt, 1855((generatedCodeAnalysisFlagsOpt & GeneratedCodeAnalysisFlags.ReportDiagnostics) != 0 && 1856(generatedCodeAnalysisFlagsOpt & GeneratedCodeAnalysisFlags.Analyze) != 0); 2179var analyzers = new DiagnosticAnalyzer[] { new GeneratedCodeAnalyzer(GeneratedCodeAnalysisFlags.None) }; 2187analyzers = new DiagnosticAnalyzer[] { new GeneratedCodeAnalyzer(GeneratedCodeAnalysisFlags.Analyze) }; 2195analyzers = new DiagnosticAnalyzer[] { new GeneratedCodeAnalyzer(GeneratedCodeAnalysisFlags.Analyze | GeneratedCodeAnalysisFlags.ReportDiagnostics) }; 2247var analyzers = new DiagnosticAnalyzer[] { new GeneratedCodeSyntaxAndOperationAnalyzer(GeneratedCodeAnalysisFlags.None, syntaxKinds, operationKinds) }; 2255analyzers = new DiagnosticAnalyzer[] { new GeneratedCodeSyntaxAndOperationAnalyzer(GeneratedCodeAnalysisFlags.Analyze, syntaxKinds, operationKinds) }; 2263analyzers = new DiagnosticAnalyzer[] { new GeneratedCodeSyntaxAndOperationAnalyzer(GeneratedCodeAnalysisFlags.Analyze | GeneratedCodeAnalysisFlags.ReportDiagnostics, syntaxKinds, operationKinds) }; 2279private readonly GeneratedCodeAnalysisFlags? _generatedCodeAnalysisFlagsOpt; 2299public GeneratedCodeSyntaxAndOperationAnalyzer(GeneratedCodeAnalysisFlags? generatedCodeAnalysisFlagsOpt, ImmutableArray<SyntaxKind> syntaxKinds, ImmutableArray<OperationKind> operationKinds) 3434namedTypeAnalyzer = new NamedTypeAnalyzer(NamedTypeAnalyzer.AnalysisKind.SymbolStartEnd, GeneratedCodeAnalysisFlags.Analyze); 3443namedTypeAnalyzer = new NamedTypeAnalyzer(NamedTypeAnalyzer.AnalysisKind.SymbolStartEnd, GeneratedCodeAnalysisFlags.None); 3486namedTypeAnalyzer = new NamedTypeAnalyzer(NamedTypeAnalyzer.AnalysisKind.CompilationStartEnd, GeneratedCodeAnalysisFlags.Analyze); 3495namedTypeAnalyzer = new NamedTypeAnalyzer(NamedTypeAnalyzer.AnalysisKind.CompilationStartEnd, GeneratedCodeAnalysisFlags.None);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableDiagnosticAnalyzer.cs (1)
25: base([s_diagnosticDescriptor], GeneratedCodeAnalysisFlags.ReportDiagnostics)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeFixes\CodeFixServiceTests.cs (1)
918context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
Microsoft.CodeAnalysis.Features (16)
Diagnostics\Analyzers\UnboundIdentifiersDiagnosticAnalyzerBase.cs (2)
43context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.Analyze | GeneratedCodeAnalysisFlags.ReportDiagnostics);
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (2)
73protected virtual GeneratedCodeAnalysisFlags GeneratedCodeAnalysisFlags => GeneratedCodeAnalysisFlags.None;
src\Analyzers\Core\Analyzers\AbstractCodeQualityDiagnosticAnalyzer.cs (2)
14private readonly GeneratedCodeAnalysisFlags _generatedCodeAnalysisFlags; 18GeneratedCodeAnalysisFlags generatedCodeAnalysisFlags)
src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (2)
33protected sealed override GeneratedCodeAnalysisFlags GeneratedCodeAnalysisFlags => GeneratedCodeAnalysisFlags.Analyze;
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (1)
49: base([s_invalidScopeDescriptor, s_invalidOrMissingTargetDescriptor, LegacyFormatTargetDescriptor], GeneratedCodeAnalysisFlags.None)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
39: base([s_removeUnnecessarySuppressionDescriptor], GeneratedCodeAnalysisFlags.None)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (2)
80protected override GeneratedCodeAnalysisFlags GeneratedCodeAnalysisFlags => GeneratedCodeAnalysisFlags.Analyze;
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (2)
194protected sealed override GeneratedCodeAnalysisFlags GeneratedCodeAnalysisFlags => GeneratedCodeAnalysisFlags.Analyze;
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (2)
69context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.Analyze | GeneratedCodeAnalysisFlags.ReportDiagnostics);
Microsoft.CodeAnalysis.Test.Utilities (6)
Diagnostics\CommonDiagnosticAnalyzers.cs (6)
1475private readonly GeneratedCodeAnalysisFlags? _generatedCodeAnalysisFlagsOpt; 1510protected AbstractGeneratedCodeAnalyzer(GeneratedCodeAnalysisFlags? generatedCodeAnalysisFlagsOpt, bool testIsGeneratedCodeInCallbacks) 1695context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.Analyze); 2396private readonly GeneratedCodeAnalysisFlags _analysisFlags; 2399public NamedTypeAnalyzer(AnalysisKind analysisKind, GeneratedCodeAnalysisFlags analysisFlags = GeneratedCodeAnalysisFlags.None, bool configurable = true)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (20)
Diagnostics\DiagnosticAnalyzerTests.vb (20)
892VerifyGeneratedCodeAnalyzerDiagnostics(compilation, isGeneratedFile, GeneratedCodeAnalysisFlags.None) 894VerifyGeneratedCodeAnalyzerDiagnostics(compilation, isGeneratedFile, GeneratedCodeAnalysisFlags.Analyze) 895VerifyGeneratedCodeAnalyzerDiagnostics(compilation, isGeneratedFile, GeneratedCodeAnalysisFlags.ReportDiagnostics) 896VerifyGeneratedCodeAnalyzerDiagnostics(compilation, isGeneratedFile, GeneratedCodeAnalysisFlags.Analyze Or GeneratedCodeAnalysisFlags.ReportDiagnostics) 925AddExpectedLocalDiagnostics(builder, False, squiggledText, line, column, GeneratedCodeAnalysisFlags.ReportDiagnostics, diagnosticArgument) 932AddExpectedLocalDiagnostics(builder, False, squiggledText, line, column, GeneratedCodeAnalysisFlags.ReportDiagnostics, diagnosticArgument) 940VerifyGeneratedCodeAnalyzerDiagnostics(compilation, expected, GeneratedCodeAnalysisFlags.None) 942VerifyGeneratedCodeAnalyzerDiagnostics(compilation, expected, GeneratedCodeAnalysisFlags.Analyze) 943VerifyGeneratedCodeAnalyzerDiagnostics(compilation, expected, GeneratedCodeAnalysisFlags.ReportDiagnostics) 944VerifyGeneratedCodeAnalyzerDiagnostics(compilation, expected, GeneratedCodeAnalysisFlags.Analyze Or GeneratedCodeAnalysisFlags.ReportDiagnostics) 1157Private Shared Sub VerifyGeneratedCodeAnalyzerDiagnostics(compilation As Compilation, isGeneratedFileName As Func(Of String, Boolean), generatedCodeAnalysisFlagsOpt As GeneratedCodeAnalysisFlags?) 1162Private Shared Sub VerifyGeneratedCodeAnalyzerDiagnostics(compilation As Compilation, expected As DiagnosticDescription(), generatedCodeAnalysisFlagsOpt As GeneratedCodeAnalysisFlags?, Optional testIsGeneratedCodeInCallbacks As Boolean = False) 1167Private Shared Function GetExpectedGeneratedCodeAnalyzerDiagnostics(compilation As Compilation, isGeneratedFileName As Func(Of String, Boolean), generatedCodeAnalysisFlagsOpt As GeneratedCodeAnalysisFlags?) As DiagnosticDescription() 1233If generatedCodeAnalysisFlagsOpt Is Nothing OrElse (generatedCodeAnalysisFlagsOpt And GeneratedCodeAnalysisFlags.Analyze) <> 0 Then 1308generatedCodeAnalysisFlagsOpt As GeneratedCodeAnalysisFlags?, 1313((generatedCodeAnalysisFlagsOpt.GetValueOrDefault() And GeneratedCodeAnalysisFlags.ReportDiagnostics) <> 0 AndAlso 1314(generatedCodeAnalysisFlagsOpt.GetValueOrDefault() And GeneratedCodeAnalysisFlags.Analyze) <> 0) 1338Public Sub New(generatedCodeAnalysisFlags As GeneratedCodeAnalysisFlags?, Optional testIsGeneratedCodeInCallbacks As Boolean = False)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
BatchFixAllProviderTests.cs (1)
64context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
Microsoft.DotNet.CodeAnalysis (2)
Analyzers\BaseAnalyzer.cs (2)
17context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.Analyze | GeneratedCodeAnalysisFlags.ReportDiagnostics);
Microsoft.Interop.ComInterfaceGenerator (5)
Analyzers\AddGeneratedComClassAnalyzer.cs (1)
21context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
Analyzers\ComHostingDoesNotSupportGeneratedComInterfaceAnalyzer.cs (1)
21context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
32context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
Analyzers\GeneratedComInterfaceAttributeAnalyzer.cs (1)
27context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
Analyzers\RuntimeComApiUsageWithSourceGeneratedComAnalyzer.cs (1)
25context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
Microsoft.Interop.LibraryImportGenerator (3)
Analyzers\ConvertToLibraryImportAnalyzer.cs (1)
49context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
Analyzers\CustomMarshallerAttributeAnalyzer.cs (1)
614context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
Analyzers\NativeMarshallingAttributeAnalyzer.cs (1)
63context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
Microsoft.ML.CodeAnalyzer.Tests (1)
Code\RelaxTestNamingTest.cs (1)
113context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
Microsoft.ML.InternalCodeAnalyzer (10)
BaseTestClassAnalyzer.cs (1)
32context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
BestFriendAnalyzer.cs (2)
42context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.Analyze | GeneratedCodeAnalysisFlags.ReportDiagnostics);
BestFriendOnPublicDeclarationsAnalyzer.cs (1)
37context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
ContractsCheckAnalyzer.cs (1)
90context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
InstanceInitializerAnalyzer.cs (1)
33context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
NameAnalyzer.cs (1)
76context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
ParameterVariableNameAnalyzer.cs (1)
34context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
SingleVariableDeclarationAnalyzer.cs (1)
34context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
TypeParamNameAnalyzer.cs (1)
33context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
System.Private.CoreLib.Generators (1)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (1)
135context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
System.Text.RegularExpressions.Generator (1)
UpgradeToGeneratedRegexAnalyzer.cs (1)
35context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
System.Windows.Forms.Analyzers (2)
System\Windows\Forms\Analyzers\AppManifestAnalyzer.cs (2)
21context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.Analyze 22| GeneratedCodeAnalysisFlags.ReportDiagnostics);
System.Windows.Forms.Analyzers.CSharp (2)
System\Windows\Forms\CSharp\Analyzers\AvoidPassingTaskWithoutCancellationToken\AvoidPassingTaskWithoutCancellationTokenAnalyzer.cs (1)
25context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
System\Windows\Forms\CSharp\Analyzers\MissingPropertySerializationConfiguration\MissingPropertySerializationConfigurationAnalyzer.cs (1)
20context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
System.Windows.Forms.Analyzers.VisualBasic (2)
Analyzers\AvoidPassingTaskWithoutCancellationToken\AvoidPassingTaskWithoutCancellationTokenAnalyzer.vb (1)
27context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None)
Analyzers\MissingPropertySerializationConfiguration\MissingPropertySerializationConfigurationDiagnosticAnalyzer.vb (1)
22context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None)