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

[WIP] Consolidate Declaration types. #2

Open
wants to merge 1 commit into
base: typed-declarations
Choose a base branch
from

Conversation

paulyoung
Copy link
Owner

This follows on from jpsim#112 and is inspired by #1 (comment).

cc @jpsim

return nil

var isProperty: Bool {
guard let objCKind = kind as? ObjCDeclarationKind? where objCKind == .Property else {
Copy link

Choose a reason for hiding this comment

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

precondition(language == .ObjC)?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Good call ☎️

@jpsim
Copy link

jpsim commented Dec 10, 2015

This is an awesome step in the right direction IMO. The fixme's will obviously have to be addressed. Do you need help with any of them?

@paulyoung
Copy link
Owner Author

Do you need help with any of them?

All of them I think!

@jpsim
Copy link

jpsim commented Dec 10, 2015

All of them I think!

lol, ok, will revisit later.

kind = cursor.objCKind()
extent = cursor.extent()
name = cursor.name()
//typeName = cursor. // FIXME: no cursor.typeName()
Copy link
Owner Author

Choose a reason for hiding this comment

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

I'm just not sure how to get this information.

@paulyoung
Copy link
Owner Author

I left some comments explaining where I got stuck.

Help me, @jpsim​-kenobi. You're my only hope.

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