-
Notifications
You must be signed in to change notification settings - Fork 10.5k
SR-10469 Unknown syntax for interpolated string literal #24280
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
SR-10469 Unknown syntax for interpolated string literal #24280
Conversation
@@ -1,7 +1,7 @@ | |||
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=EXPR_POSTFIX_BEGIN_1 | %FileCheck %s -check-prefix=COMMON | |||
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=EXPR_POSTFIX_BEGIN_2 | %FileCheck %s -check-prefix=COMMON | |||
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=EXPR_POSTFIX_BEGIN_3 | %FileCheck %s -check-prefix=COMMON | |||
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=EXPR_POSTFIX_BEGIN_4 | %FileCheck %s -check-prefix=COMMON | |||
// RUN-FIXME: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=EXPR_POSTFIX_BEGIN_4 | %FileCheck %s -check-prefix=COMMON |
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.
I wasn't able to fix this failing test, so changed to RUN-FIXME
for now. Can someone give me a better solution?
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.
It's OK for now. I'll fix this after merging this.
Could you add test cases with multiple arguments with labels? Like |
@@ -460,7 +460,7 @@ | |||
Child('LeftParen', kind='LeftParenToken', | |||
classification='StringInterpolationAnchor', | |||
force_classification=True), | |||
Child('Expression', kind='Expr'), | |||
Child('Expressions', kind='FunctionCallArgumentList'), |
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.
You probably need collection_element_name
after #24227 .
Thank you for your feedback! Will add the test cases |
@rintaro Addressed your feedbacks |
@swift-ci Please smoke test |
@swift-ci Please smoke test Linux platform |
1 similar comment
@swift-ci Please smoke test Linux platform |
Thank you! |
Test failure, going to revert to unblock PR testing. https://ci.swift.org/job/oss-swift-pr-test/7259/changes#detail
|
Sorry about the failed test. I'm working on the fix and will create a new PR. |
Overview
This PR fixes unknown syntax for interpolated string literal by changing
Expr
kind ofExpression
inExpressionSegment
toFunctionCallArgumentList
Ticket
Resolves #52869.