mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-10 06:41:59 -06:00
Use push.apply to push multiple elements.
This commit is contained in:
parent
be373647d0
commit
2c99556b31
@ -31,9 +31,7 @@ module ts {
|
||||
childNodes.push(node);
|
||||
}
|
||||
else if (node.kind === SyntaxKind.VariableStatement) {
|
||||
forEach((<VariableStatement>node).declarations, declaration => {
|
||||
childNodes.push(declaration);
|
||||
});
|
||||
childNodes.push.apply(childNodes, (<VariableStatement>node).declarations);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user