Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.

Fix VB trivia handling with comments + attrs #80

Merged
merged 1 commit into from
Feb 27, 2015

Conversation

jaredpar
Copy link
Member

The explicit modifier code for VB wasn't correctly handling the leading
trivia on types and methods. It mistakenly grabbed and replaced the
trivia on the node instead of the appropriate keyword token when there
were no other modifiers. This resulted in strange effects like comments
being moved below attributes.

Fixed the first modifier case to use the keyword for trivial handling
instead.

The explicit modifier code for VB wasn't correctly handling the leading
trivia on types and methods.  It mistakenly grabbed and replaced the
trivia on the node instead of the appropriate keyword token when there
were no other modifiers.  This resulted in strange effects like comments
being moved below attributes.

Fixed the first modifier case to use the keyword for trivial handling
instead.
jaredpar added a commit that referenced this pull request Feb 27, 2015
Fix VB trivia handling with comments + attrs
@jaredpar jaredpar merged commit b08e58c into dotnet:master Feb 27, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants