Skip to content

[code-completion] Fix for-loop sequences containing collection syntax #11502

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
Aug 17, 2017

Conversation

benlangmuir
Copy link
Contributor

This fixes various issues with getting no code-completion in top-level
code containing array/dictionary sugar, such as:

for x in [<HERE>] {}
for x in [1: 2, <HERE>] {}

And also removes the index variable from completions inside the sequence
(it was coming through as a local variable with <>).

rdar://problem/33884082

This fixes various issues with getting no code-completion in top-level
code containing array/dictionary sugar, such as:
```
for x in [<HERE>] {}
for x in [1: 2, <HERE>] {}
```

And also removes the index variable from completions inside the sequence
(it was coming through as a local variable with <<error type>>).

rdar://problem/33884082
@benlangmuir
Copy link
Contributor Author

@swift-ci please smoke test

@benlangmuir benlangmuir merged commit 8486eaf into swiftlang:master Aug 17, 2017
if (!Container.isNull()) {
Container.get()->dump();
}
Status |= Container;
Copy link
Contributor

Choose a reason for hiding this comment

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

This is causing dumps when building swift and was probably not intentional.

https://ci.swift.org/job/oss-swift-incremental-RA-osx/133/consoleText

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ooops! Removing via #11508

@benlangmuir benlangmuir deleted the cc-for-collection-syntax branch September 27, 2017 17:14
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