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 @@ -210,6 +210,10 @@ namespace ts {
210
210
211
211
return child . kind < SyntaxKind . FirstNode ? child : child . getLastToken ( sourceFile ) ;
212
212
}
213
+
214
+ public forEachChild < T > ( cbNode : ( node : Node ) => T , cbNodeArray ?: ( nodes : Node [ ] ) => T ) : T {
215
+ return forEachChild ( this , cbNode , cbNodeArray ) ;
216
+ }
213
217
}
214
218
215
219
class TokenOrIdentifierObject implements Node {
@@ -283,6 +287,10 @@ namespace ts {
283
287
public getLastToken ( ) : Node {
284
288
return undefined ;
285
289
}
290
+
291
+ public forEachChild < T > ( ) : T {
292
+ return undefined ;
293
+ }
286
294
}
287
295
288
296
class SymbolObject implements Symbol {
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ namespace ts {
18
18
getText ( sourceFile ?: SourceFile ) : string ;
19
19
getFirstToken ( sourceFile ?: SourceFile ) : Node ;
20
20
getLastToken ( sourceFile ?: SourceFile ) : Node ;
21
+ // See ts.forEachChild for documentation.
22
+ forEachChild < T > ( cbNode : ( node : Node ) => T , cbNodeArray ?: ( nodes : Node [ ] ) => T ) : T ;
21
23
}
22
24
23
25
export interface Symbol {
You can’t perform that action at this time.
0 commit comments