Skip to content
This repository has been archived by the owner on Aug 14, 2021. It is now read-only.

Commit

Permalink
feat: Support for reflection references
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Dec 29, 2019
1 parent eb04120 commit 2bdac8e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/default/partials/member.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
{{> member.signatures}}
{{else}}{{#if hasGetterOrSetter}}
{{> member.getterSetter}}
{{else}}{{#if tryGetTargetReflectionDeep}}
{{> member.reference}}
{{else}}
{{> member.declaration}}
{{/if}}{{/if}}
{{/if}}{{/if}}{{/if}}

{{#each groups}}
{{#each children}}
Expand Down
9 changes: 9 additions & 0 deletions src/default/partials/member.reference.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{{#with getTargetReflectionDeep}}
{{#ifCond ../name '===' name}}
Re-exports <a href="{{relativeURL url}}">{{name}}</a>
{{else if flags.isExported}}
Renames and re-exports <a href="{{relativeURL url}}">{{name}}</a>
{{else}}
Renames and exports <a href="{{relativeURL url}}">{{name}}</a>
{{/ifCond}}
{{/with}}
2 changes: 1 addition & 1 deletion src/default/templates/reflection.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@
{{#with model}}
{{> index}}
{{> members}}
{{/with}}
{{/with}}
4 changes: 3 additions & 1 deletion src/minimal/partials/member.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
{{> member.signatures}}
{{else}}{{#if hasGetterOrSetter}}
{{> member.getterSetter}}
{{else}}{{#if tryGetTargetReflectionDeep}}
{{> member.reference}}
{{else}}
{{> member.declaration}}
{{/if}}{{/if}}
{{/if}}{{/if}}{{/if}}

{{#unless isContainer}}
{{#each groups}}
Expand Down

0 comments on commit 2bdac8e

Please sign in to comment.