Skip to content

Commit

Permalink
Limit check to merged test directories, add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
markples authored and trylek committed Aug 22, 2023
1 parent 2fe764a commit a34e2b7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
{
var (method, _) = data;
// Only check test methods
bool found = false;
foreach (var attr in method.GetAttributesOnSelfAndContainingSymbols())
{
Expand All @@ -144,6 +145,8 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
}
}
if (!found) return;
// Find methods where all returns are the literal 100 (and there is at least one return)
if (method.DeclaringSyntaxReferences.IsEmpty) return;
found = false;
Expand Down

0 comments on commit a34e2b7

Please sign in to comment.