-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional tab white space on XML comment leading trivia if Attribute is added prior #63227
Comments
I'm not seeing this line being hit with It looks like trivia is messed up at |
Thank you for pointing me in the right direction! |
@Youssef1313, You can hit via |
@elachlan Yeah the doc comment trivia indeed belongs to the attribute. |
Should it belong to the class and not the attribute? This issue really only applied to comment trivia on classes with attributes. In |
Unfortunately, no. That's how trivia works. They're specifically attached to a token (more specifically, the first token of the method declaration). When there is an attribute, the first token of the method declaration is the |
Hope elachlan/CsWin32#1 corrects the implementation :) |
I am currently working on this PR for CsWin32: microsoft/CsWin32#621
We have this code that causes the xml comment to have an extra leading tab white space:
typeDeclaration is MemberDeclarationSyntax.
The generated code attribute is:
If we do not add the attribute, then the leading trivia xml comment is formatted correctly.
Am I missing something obvious?
The text was updated successfully, but these errors were encountered: