Skip to content

[SourceKit] Add local variables to structure (SR-5057)#11431

Merged
nkcsgexi merged 1 commit intoswiftlang:masterfrom
marcelofabri:local-vars-structure
Aug 11, 2017
Merged

[SourceKit] Add local variables to structure (SR-5057)#11431
nkcsgexi merged 1 commit intoswiftlang:masterfrom
marcelofabri:local-vars-structure

Conversation

@marcelofabri
Copy link
Copy Markdown
Contributor

Reopening #11262 to make @swift-ci work 🙏.

// cc @nkcsgexi


This PR includes local variables (source.lang.swift.decl.var.local) to structures provided by SourceKit. This also makes variables declared in for and while statements available in the structure.

Resolves SR-5057.

This is super important for SwiftLint, as you can see on realm/SwiftLint#136 and all duplicated issues. I'm not sure if there's a historical reason for this not be included until now.

@felix91gr
Copy link
Copy Markdown
Contributor

Thank you for working on SourceKit 🙌🏻

@shahmishal
Copy link
Copy Markdown
Member

@marcelofabri Thanks!

@shahmishal shahmishal requested a review from nkcsgexi August 11, 2017 07:04
@shahmishal
Copy link
Copy Markdown
Member

@swift-ci test macOS

Copy link
Copy Markdown
Contributor

@nkcsgexi nkcsgexi left a comment

Choose a reason for hiding this comment

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

I've reviewed this in the previous PR. LGTM!

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.

4 participants