File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Verify.MSTest.SourceGenerator Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -62,9 +62,7 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
62
62
return null ;
63
63
}
64
64
65
- cancel . ThrowIfCancellationRequested ( ) ;
66
-
67
- if ( ! symbol . HasAttributeOfType ( TestClassAttributeName , includeDerived : true ) )
65
+ if ( HasTestClassAttribute ( symbol ) )
68
66
{
69
67
return null ;
70
68
}
@@ -96,6 +94,8 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
96
94
context . RegisterSourceOutput ( toGenerate , Execute ) ;
97
95
}
98
96
97
+ static bool HasTestClassAttribute ( INamedTypeSymbol symbol ) => ! symbol . HasAttributeOfType ( TestClassAttributeName , includeDerived : true ) ;
98
+
99
99
static bool IsSyntaxEligibleForGeneration ( SyntaxNode node , Cancel _ ) =>
100
100
node is ClassDeclarationSyntax ;
101
101
You can’t perform that action at this time.
0 commit comments