Closed JasonBock closed 2 years ago
I think I can clean up the incremental generator a bit...
IsSyntaxTargetForGeneration()
AttributeSyntax
Map
MapAttribute
TransformTargets()
(SyntaxNode node, INamedTypeSymbol source, INamedTypeSymbol destination, MappingContext context)?
MapToAttribute
MapFromAttribute
null
CreateOutput()
nodes
targets
GetTargets()
mappings
I think I can clean up the incremental generator a bit...
IsSyntaxTargetForGeneration()
, just look forAttributeSyntax
nodes that have expected "names" likeMap
orMapAttribute
(along with the other two options)TransformTargets()
(SyntaxNode node, INamedTypeSymbol source, INamedTypeSymbol destination, MappingContext context)?
MapToAttribute
orMapFromAttribute
, return the right values for that.MapAttribute
, return the right values.null
CreateOutput()
nodes
type to the tuple, and rename totargets
GetTargets()
(and the method itself)mappings
dictionary.