mikegoatly,
@mikegoatly@toot.community avatar

Random #dotnet question. Can a source generator emit code that another source generator then processes?

This generator generates a [GeneratedRegex] https://gist.github.com/mikegoatly/fe36bc559e01b757c6ccb33d4020c8e9 , but the RegularExpressions generator doesn't pick it up, so compilation fails with the error:

Partial method 'RegexGeneratedClass.CapitalizedWords()' must have an implementation part because it has accessibility modifiers.

My guess is it's a limitation, but I might be doing something wrong!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • dotnet
  • DreamBathrooms
  • magazineikmin
  • InstantRegret
  • GTA5RPClips
  • ethstaker
  • Youngstown
  • everett
  • slotface
  • osvaldo12
  • rosin
  • mdbf
  • kavyap
  • thenastyranch
  • ngwrru68w68
  • provamag3
  • Durango
  • modclub
  • cubers
  • khanakhh
  • Leos
  • tacticalgear
  • cisconetworking
  • vwfavf
  • tester
  • anitta
  • normalnudes
  • megavids
  • JUstTest
  • All magazines