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

Members added to extension of nested type show up in the parent #333

Closed
pcantrell opened this issue Oct 30, 2015 · 5 comments
Closed

Members added to extension of nested type show up in the parent #333

pcantrell opened this issue Oct 30, 2015 · 5 comments

Comments

@pcantrell
Copy link
Collaborator

Realm adds a description extension to the nested type Realm.Configuration:

https://github.com/realm/realm-cocoa/blob/master/RealmSwift-swift2.0/RealmConfiguration.swift#L168-L173

…but Jazzy puts it on Realm:

https://github.com/realm/jazzy-integration-specs/blob/c14d4041795d0ab886977729e81afd92372b4e6b/document_realm_swift/after/docs/Extensions/Realm.html#L235-L264

@pigeondotdev
Copy link
Contributor

Completed with #343.

@jpsim
Copy link
Collaborator

jpsim commented Nov 26, 2016

@pigeondotdev
Copy link
Contributor

I see, sorry about that!

@johnfairh
Copy link
Collaborator

Was hoping this would be fixed by latest sourcekitten - is not, problem seems to be that SourceKit is pretty sure that the extension is of Realm rather than Realm.Configuration. More digging.

@maximkhatskevich
Copy link

The problem persists for me as well, see this repo:
https://github.com/XCEssentials/State/tree/2.6.2

In particular, type State has nested type Pending, which is declared in extension of State, but member function onUpdate that belongs to Pending appears in State members list, not in Pending.

maximkhatskevich added a commit to XCEssentials/FunctionalState that referenced this issue Jun 19, 2017
Decided not to use Jazzy-generated docs for this project due to the issue with nested types realm/jazzy#333
@jpsim jpsim closed this as completed in #847 Jul 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants