Skip to content

Commit

Permalink
add null filter
Browse files Browse the repository at this point in the history
  • Loading branch information
aspriddell committed Dec 17, 2023
1 parent 6e76aae commit c6689c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DragonFruit.Data.Roslyn/ApiRequestSourceGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
predicate: (syntaxNode, _) => syntaxNode is ClassDeclarationSyntax classDecl && classDecl.Modifiers.Any(x => x.IsKind(SyntaxKind.PartialKeyword)),
transform: (generatorSyntaxContext, _) => GetSemanticTarget(generatorSyntaxContext));

IncrementalValueProvider<(Compilation, ImmutableArray<ClassDeclarationSyntax>)> targets = context.CompilationProvider.Combine(apiRequestDerivedClasses.Collect());
var targets = context.CompilationProvider.Combine(apiRequestDerivedClasses.Where(x => x != null).Collect());
context.RegisterSourceOutput(targets, (spc, source) => Execute(source.Item1, source.Item2, spc));
}

Expand Down

0 comments on commit c6689c0

Please sign in to comment.