Skip to content

Source Generator Dev Question #3963

Closed Answered by nohwnd
thomhurst asked this question in Q&A
Oct 21, 2024 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

The source generator grabs all classes with the test class attribute, filters them to what we actually consider tests (e.g. non-private classes), and then uses this in 2 ways.

  1. to generate each class file
  2. as input (via .Collect()) for the root file

What connects them is a "naming convention", that both will generate entry for each class in the incoming list, and both will name it Nodes.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@nohwnd
Comment options

@thomhurst
Comment options

@nohwnd
Comment options

Answer selected by thomhurst
@thomhurst
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants