File tree 4 files changed +19
-3
lines changed
4 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -2044,7 +2044,7 @@ var TypeDoc;
2044
2044
var parent = state . parentState . reflection ;
2045
2045
var reflection = new TypeDoc . Models . DeclarationReflection ( ) ;
2046
2046
reflection . name = state . getReflectionName ( ) ;
2047
- reflection . originalName = state . declaration . name ;
2047
+ reflection . originalName = state . getName ( ) ;
2048
2048
reflection . parent = parent ;
2049
2049
2050
2050
state . reflection = reflection ;
@@ -2746,6 +2746,9 @@ var TypeDoc;
2746
2746
var name = '' ;
2747
2747
var target = reflection . parent ;
2748
2748
push ( reflection ) ;
2749
+ if ( name == '' ) {
2750
+ return ;
2751
+ }
2749
2752
2750
2753
while ( target instanceof TypeDoc . Models . DeclarationReflection ) {
2751
2754
if ( target . comment ) {
Original file line number Diff line number Diff line change @@ -122,11 +122,21 @@ export class BaseClass implements INameInterface
122
122
}
123
123
124
124
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
+
125
136
/**
126
137
* This is a private function.
127
138
*/
128
139
private checkName ( ) {
129
-
130
140
}
131
141
132
142
Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ module TypeDoc.Factories
285
285
var parent = < Models . DeclarationReflection > state . parentState . reflection ;
286
286
var reflection = new Models . DeclarationReflection ( ) ;
287
287
reflection . name = state . getReflectionName ( ) ;
288
- reflection . originalName = state . declaration . name ;
288
+ reflection . originalName = state . getName ( ) ;
289
289
reflection . parent = parent ;
290
290
291
291
state . reflection = reflection ;
Original file line number Diff line number Diff line change @@ -42,6 +42,9 @@ module TypeDoc.Factories
42
42
var name = '' ;
43
43
var target = < Models . DeclarationReflection > reflection . parent ;
44
44
push ( reflection ) ;
45
+ if ( name == '' ) {
46
+ return ;
47
+ }
45
48
46
49
while ( target instanceof Models . DeclarationReflection ) {
47
50
if ( target . comment ) {
You can’t perform that action at this time.
0 commit comments