File tree Expand file tree Collapse file tree 4 files changed +19
-3
lines changed Expand file tree Collapse file tree 4 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -2044,7 +2044,7 @@ var TypeDoc;
20442044 var parent = state . parentState . reflection ;
20452045 var reflection = new TypeDoc . Models . DeclarationReflection ( ) ;
20462046 reflection . name = state . getReflectionName ( ) ;
2047- reflection . originalName = state . declaration . name ;
2047+ reflection . originalName = state . getName ( ) ;
20482048 reflection . parent = parent ;
20492049
20502050 state . reflection = reflection ;
@@ -2746,6 +2746,9 @@ var TypeDoc;
27462746 var name = '' ;
27472747 var target = reflection . parent ;
27482748 push ( reflection ) ;
2749+ if ( name == '' ) {
2750+ return ;
2751+ }
27492752
27502753 while ( target instanceof TypeDoc . Models . DeclarationReflection ) {
27512754 if ( target . comment ) {
Original file line number Diff line number Diff line change @@ -122,11 +122,21 @@ export class BaseClass implements INameInterface
122122 }
123123
124124
125+ /**
126+ * This is a simple fat arrow function.
127+ *
128+ * @param param1 The first parameter needed by this function.
129+ * @param param2 The second parameter needed by this function.
130+ * @see https://github.com/sebastian-lenz/typedoc/issues/37
131+ */
132+ public arrowFunction = ( param1 : string , param2 : number ) : void => {
133+ } ;
134+
135+
125136 /**
126137 * This is a private function.
127138 */
128139 private checkName ( ) {
129-
130140 }
131141
132142
Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ module TypeDoc.Factories
285285 var parent = < Models . DeclarationReflection > state . parentState . reflection ;
286286 var reflection = new Models . DeclarationReflection ( ) ;
287287 reflection . name = state . getReflectionName ( ) ;
288- reflection . originalName = state . declaration . name ;
288+ reflection . originalName = state . getName ( ) ;
289289 reflection . parent = parent ;
290290
291291 state . reflection = reflection ;
Original file line number Diff line number Diff line change @@ -42,6 +42,9 @@ module TypeDoc.Factories
4242 var name = '' ;
4343 var target = < Models . DeclarationReflection > reflection . parent ;
4444 push ( reflection ) ;
45+ if ( name == '' ) {
46+ return ;
47+ }
4548
4649 while ( target instanceof Models . DeclarationReflection ) {
4750 if ( target . comment ) {
You can’t perform that action at this time.
0 commit comments