Permalink
Browse files

Added 'Reference' block for enumconstants

  • Loading branch information...
1 parent 48beb22 commit b5ac647f6d37d59ef45551076cfbeab37ec96c6d robvdveer committed Jul 31, 2013
Showing with 12 additions and 2 deletions.
  1. +5 −0 Generating/GBDocSetOutputGenerator.m
  2. +7 −2 Templates/docset/Contents/Resources/tokens-template.xml
@@ -351,6 +351,11 @@ - (void)addTokensXmlModelObjectDataForObject:(GBModelBase *)object toData:(NSMut
}
}
}
+
+ if( [object isKindOfClass:[GBEnumConstantData class]])
+ {
+ [data setObject:_sectionID forKey:@"refid"];
+ }
}
- (void)addTokensXmlModelObjectDataForPropertySetterAndGetter:(GBModelBase *)method withData:(NSDictionary *)data toArray:(NSMutableArray *)members {
@@ -36,7 +36,8 @@
<Declaration>{{declaration}}</Declaration>
{{>Availability}}
{{>DeclaredIn}}
- {{>RelatedTokens}}
+ {{>RelatedTokens}}
+ {{>Reference}}
</Token>
{{/constants}}
</File>
@@ -64,7 +65,11 @@ Section Abstract
EndSection
Section Availability
-<Availability type="html">{{#availability}}{{>GBCommentComponentsList}}{{/availability}}</Availability>
+{{#availability}}<Availability type="html">{{>GBCommentComponentsList}}</Availability>{{/availability}}
+EndSection
+
+Section Reference
+{{#refid}}<NodeRef refid="{{refid}}"/>{{/refid}}
EndSection
Section MethodDeclaration

0 comments on commit b5ac647

Please sign in to comment.