Skip to content

[IDE] Fix SyntaxModel to corretly walk sequence expression correctly #22177

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

Merged
merged 1 commit into from
Jan 28, 2019

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Jan 28, 2019

This is 5.0 regression introduced in #18663 .

  • Handle sequence expression at call argument position (i.e. move the block after the call argument handling logic)
  • Set the sequence expression as the Parent when walking into its sub
    expressions
  • Correctly call walkToExprPost() to the sequence expression

rdar://problem/47603866 / https://bugs.swift.org/browse/SR-9776

* Handle sequence expression at call argument position
* Set the sequence expression as the parent when walking into its sub
  expressions.
* Correctly call walkToExprPost() to the sequence expression.

rdar://problem/47603866 / https://bugs.swift.org/browse/SR-9776
@rintaro rintaro requested a review from akyrtzi January 28, 2019 19:33
@rintaro
Copy link
Member Author

rintaro commented Jan 28, 2019

@swift-ci Please smoke test

myFunc(foo: 0,
bar: baz == 0)
// CHECK: <call><name>myFunc</name>(<arg><name>foo</name>: 0</arg>,
// CHECK: <arg><name>bar</name>: baz == 0</arg>)</call>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this patch, this line is like:

 bar: <arg>baz</arg> <arg>==</arg> <arg>0</arg>)</call>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants