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-943] .self is missing from code completion results #43555

Closed
swift-ci opened this issue Mar 14, 2016 · 2 comments
Closed

[SR-943] .self is missing from code completion results #43555

swift-ci opened this issue Mar 14, 2016 · 2 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. code completion Area → source tooling: code completion source tooling Area: IDE support, SourceKit, and other source tooling

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-943
Radar None
Original Reporter john_regner (JIRA User)
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s CodeCompletion, Source Tooling
Labels Bug
Assignee @AnthonyLatsis
Priority Medium

md5: 52222ae093c2bea8688ca4635f501999

is duplicated by:

  • SR-7639 CodeCompletion doesn't show a self option when typing metatype instance

Issue Description:

A postfix .self expression should be usable on either an expression or type.

Currently this postfix self is not reported as a Code Completion Result.

To test this, use swift-ide-test. i.e.
Create a test file self.swift

struct A {}
A.#^SELF1^#
A().#^SELF2^#

Run:
swift-ide-test -code-completion -source-filename=self.swift -code-completion-token=SELF1
swift-ide-test -code-completion -source-filename=self.swift -code-completion-token=SELF2

Note that self is missing from the both of the Code Completion Results.

@AnthonyLatsis
Copy link
Collaborator

PR – #16534

@AnthonyLatsis
Copy link
Collaborator

Completions for both dot and postfix expressions.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added the source tooling Area: IDE support, SourceKit, and other source tooling label Feb 6, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. code completion Area → source tooling: code completion source tooling Area: IDE support, SourceKit, and other source tooling
Projects
None yet
Development

No branches or pull requests

2 participants