Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 authored Dec 31, 2024
1 parent 3e10c87 commit 675e6ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
DeclaringSyntaxReferences: { Length: 1 } declaringSyntaxReferences
} &&
// If the `Program` class is already declared in user code, we don't need to generate anything.
declaringSyntaxReferences.Single() is not ClassDeclarationSyntax
declaringSyntaxReferences.Single().GetSyntax(cancellationToken) is not ClassDeclarationSyntax
);

context.RegisterSourceOutput(internalGeneratedProgramClass, (context, result) =>
Expand Down

0 comments on commit 675e6ac

Please sign in to comment.