File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -209,6 +209,10 @@ namespace ts {
209
209
210
210
return child . kind < SyntaxKind . FirstNode ? child : child . getLastToken ( sourceFile ) ;
211
211
}
212
+
213
+ public forEachChild < T > ( cbNode : ( node : Node ) => T , cbNodeArray ?: ( nodes : Node [ ] ) => T ) : T {
214
+ return forEachChild ( this , cbNode , cbNodeArray ) ;
215
+ }
212
216
}
213
217
214
218
class TokenOrIdentifierObject implements Node {
@@ -282,6 +286,10 @@ namespace ts {
282
286
public getLastToken ( ) : Node {
283
287
return undefined ;
284
288
}
289
+
290
+ public forEachChild < T > ( ) : T {
291
+ return undefined ;
292
+ }
285
293
}
286
294
287
295
class SymbolObject implements Symbol {
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ namespace ts {
14
14
getText ( sourceFile ?: SourceFile ) : string ;
15
15
getFirstToken ( sourceFile ?: SourceFile ) : Node ;
16
16
getLastToken ( sourceFile ?: SourceFile ) : Node ;
17
+ // See ts.forEachChild for documentation.
18
+ forEachChild < T > ( cbNode : ( node : Node ) => T , cbNodeArray ?: ( nodes : Node [ ] ) => T ) : T ;
17
19
}
18
20
19
21
export interface Symbol {
You can’t perform that action at this time.
0 commit comments