Skip to content

SymbolDisplayFormat: use '+' to separate nested types #67798

Closed Answered by CyrusNajmabadi
weifenluo asked this question in Q&A
Discussion options

You must be logged in to vote

I'm writing a source generator which I need to store a string in "{namespace}.{containingType}+{nestedType}+{...}" format so that I can generate:

You don't need to store a string for this. You could just store stuff like an list of tuples. Where each tuple contains the name and a boolean stating if it's a namespace or type to generate.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by weifenluo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead
2 participants
Converted from issue

This discussion was converted from issue #67797 on April 13, 2023 14:57.