-
Notifications
You must be signed in to change notification settings - Fork 439
Fix macro expansion diagnostic for multi-binding variable declarations in MacroSystem #2139
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. Looks great!
@swift-ci Please test |
Would you mind also creating a second PR that targets the |
--- Fix macro expansion diagnostic for multi-binding variable declarations in MacroSystem When there are no macro attributes attached to the visited `VariableDeclSyntax` node, proceed without performing any additional checks or transformations. - Addressed the erroneous triggering of `MacroApplicationError.accessorMacroOnVariableWithMultipleBindings` diagnostic for nested multi-binding variable declarations. - Added corresponding tests to validate the fix. - Introduce fileprivate `NoOpMemberMacro`, extracted from `testCommentAroundeAttachedMacro` and used in 2 new tests. Fixes swiftlang#2133 rdar://114836887
--- Fix macro expansion diagnostic for multi-binding variable declarations in MacroSystem When there are no macro attributes attached to the visited `VariableDeclSyntax` node, proceed without performing any additional checks or transformations. - Addressed the erroneous triggering of `MacroApplicationError.accessorMacroOnVariableWithMultipleBindings` diagnostic for nested multi-binding variable declarations. - Added corresponding tests to validate the fix. - Introduce fileprivate `NoOpMemberMacro`, extracted from `testCommentAroundeAttachedMacro` and used in 2 new tests. Fixes swiftlang#2133 rdar://114836887
Done, see #2141. |
It looks like your changes are not formatted using |
--- Fix macro expansion diagnostic for multi-binding variable declarations in MacroSystem When there are no macro attributes attached to the visited `VariableDeclSyntax` node, proceed without performing any additional checks or transformations. - Addressed the erroneous triggering of `MacroApplicationError.accessorMacroOnVariableWithMultipleBindings` diagnostic for nested multi-binding variable declarations. - Added corresponding tests to validate the fix. - Introduce fileprivate `NoOpMemberMacro`, extracted from `testCommentAroundeAttachedMacro` and used in 2 new tests. Fixes swiftlang#2133 rdar://114836887
…s in MacroSystem When there are no macro attributes attached to the visited `VariableDeclSyntax` node, proceed without performing any additional checks or transformations. - Addressed the erroneous triggering of `MacroApplicationError.accessorMacroOnVariableWithMultipleBindings` diagnostic for nested multi-binding variable declarations. - Added corresponding tests to validate the fix. - Introduce fileprivate `NoOpMemberMacro`, extracted from `testCommentAroundeAttachedMacro` and used in 2 new tests. Fixes swiftlang#2133 rdar://114836887
Head branch was pushed to by a user without write access
983c3d9
to
b8e3122
Compare
Thank you! |
@swift-ci Please test |
When there are no macro attributes attached to the visited
VariableDeclSyntax
node, proceed without performing any additional checks or transformations.MacroApplicationError.accessorMacroOnVariableWithMultipleBindings
diagnostic for nested multi-binding variable declarations.NoOpMemberMacro
, extracted fromtestCommentAroundeAttachedMacro
and used in 2 new tests.Fixes #2133
rdar://114836887