Skip to content
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-6116] [SourceKit] Introduce "source.lang.swift.expr.closure" in structure #48671

Closed
marcelofabri opened this issue Oct 11, 2017 · 1 comment
Assignees
Labels
closures Feature: closures document structure Area → source tooling: document structure annotation feature A feature request or implementation source tooling Area: IDE support, SourceKit, and other source tooling

Comments

@marcelofabri
Copy link
Contributor

Previous ID SR-6116
Radar None
Original Reporter @marcelofabri
Type New Feature
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Source Tooling
Labels New Feature
Assignee @marcelofabri
Priority Medium

md5: 328c664880b57a88af33aa16267d132f

Issue Description:

It'd be useful for tools like SwiftLint to get information about closure expressions in source code.

Several rules currently need this information and obtain it using heuristics. It'd be way more reliable if this was available via SourceKit.

Some rules that could use it:

It'd be also useful to know whether a closure is a trailing closure inside a function call, but I'm not sure if it's semantically correct to add this information on this structure, because it's something available in several declarations such as CallExpr and SubscriptExpr, not ClosureExpr.

@marcelofabri
Copy link
Contributor Author

#13617

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added feature A feature request or implementation source tooling Area: IDE support, SourceKit, and other source tooling closures Feature: closures document structure Area → source tooling: document structure annotation and removed new feature labels Jan 28, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closures Feature: closures document structure Area → source tooling: document structure annotation feature A feature request or implementation source tooling Area: IDE support, SourceKit, and other source tooling
Projects
None yet
Development

No branches or pull requests

2 participants