-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Open
Labels
Area-CompilersFeature Requesthelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on itThe issue is "up for grabs" - add a comment if you are interested in working on it
Milestone
Description
Brief description:
I want to sort my generated types into folders so that the structure looks like this in the IDE
Dependencies -> .. -> Source Generators -> Foo -> Bar -> Baz.g.cs
Where Foo and Bar are folders (Foo a folder in Source Generators and Bar a subfolder of Foo)
I can add folders to the hintname - the documentation says so too. But what it doesn't reveal is that if you use more than one folder it only uses the last folder. So in the given example above the structure would look like this
Dependencies -> .. -> Source Generators -> Bar -> Baz.g.cs
Foo was omitted
/// <summary>
/// Adds a <see cref="SourceText"/> to the compilation
/// </summary>
/// <param name="hintName">An identifier that can be used to reference this source text, must be unique within this generator</param>
/// <param name="sourceText">The <see cref="SourceText"/> to add to the compilation</param>
/// <remarks>
/// Directory separators "/" and "\" are allowed in <paramref name="hintName"/>, they are normalized to "/" regardless of host platform.
/// </remarks>
public void AddSource(string hintName, SourceText sourceText) => Sources.Add(hintName, sourceText);
dotlogix, ngvtien and Fresa
Metadata
Metadata
Assignees
Labels
Area-CompilersFeature Requesthelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on itThe issue is "up for grabs" - add a comment if you are interested in working on it