GeneratorExecutionContext.AddSource - emtpy string as directory separator?
- Dominant language
- No language data
- Stars
- 4.8k
- Forks
- 6.1k
- Avg merge
- 19h 10m
- Merged PRs (30d)
- 268
Description
The "Remarks" Section says:
> Directory separators "/" and "" are allowed in hintName, they are normalized to "/" regardless of host platform.
As far as I know, the empty string is not really a directory separator. I guess this ought to be a backslash, and has been lost in quoting and escaping mechanisms somewhere.
---
#### Document Details
⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.*
* ID: 8eaaac31-2551-8da3-ff44-a7770fed9fa3
* Version Independent ID: ae740f38-097d-9f66-5e76-9dcfb3bc5066
* Content: [GeneratorExecutionContext.AddSource Method (Microsoft.CodeAnalysis)](https://learn.microsoft.com/en-us/dotnet/api/microsoft.codeanalysis.generatorexecutioncontext.addsource?view=roslyn-dotnet-4.6.0)
* Content Source: [dotnet/xml/Microsoft.CodeAnalysis/GeneratorExecutionContext.xml](https://github.com/dotnet/roslyn-api-docs/blob/live/dotnet/xml/Microsoft.CodeAnalysis/GeneratorExecutionContext.xml)
* Product: **dotnet-roslyn-api**
* Technology: **microsoft.codeanalysis**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**
Contributor guide
Assessment
This issue has not been assessed yet.