refactor(core): remove ListWrapper from i18n
This commit is contained in:
parent
05beffe0d0
commit
c60ba7a72f
|
@ -6,7 +6,6 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {ListWrapper} from '../../facade/collection';
|
|
||||||
import * as ml from '../../ml_parser/ast';
|
import * as ml from '../../ml_parser/ast';
|
||||||
import {HtmlParser} from '../../ml_parser/html_parser';
|
import {HtmlParser} from '../../ml_parser/html_parser';
|
||||||
import {InterpolationConfig} from '../../ml_parser/interpolation_config';
|
import {InterpolationConfig} from '../../ml_parser/interpolation_config';
|
||||||
|
@ -164,7 +163,7 @@ class _WriteVisitor implements i18n.Visitor {
|
||||||
|
|
||||||
serialize(nodes: i18n.Node[]): xml.Node[] {
|
serialize(nodes: i18n.Node[]): xml.Node[] {
|
||||||
this._isInIcu = false;
|
this._isInIcu = false;
|
||||||
return ListWrapper.flatten(nodes.map(node => node.visit(this)));
|
return [].concat(...nodes.map(node => node.visit(this)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
* found in the LICENSE file at https://angular.io/license
|
* found in the LICENSE file at https://angular.io/license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {ListWrapper} from '../../facade/collection';
|
|
||||||
import * as html from '../../ml_parser/ast';
|
import * as html from '../../ml_parser/ast';
|
||||||
import {decimalDigest} from '../digest';
|
import {decimalDigest} from '../digest';
|
||||||
import * as i18n from '../i18n_ast';
|
import * as i18n from '../i18n_ast';
|
||||||
|
@ -123,7 +122,7 @@ class _Visitor implements i18n.Visitor {
|
||||||
}
|
}
|
||||||
|
|
||||||
serialize(nodes: i18n.Node[]): xml.Node[] {
|
serialize(nodes: i18n.Node[]): xml.Node[] {
|
||||||
return ListWrapper.flatten(nodes.map(node => node.visit(this)));
|
return [].concat(...nodes.map(node => node.visit(this)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue