chore: replace CONST_EXPR with /*@ts2dart_const*/
This commit is contained in:

committed by
Martin Probst

parent
d2527b504a
commit
a02614beaa
@ -1,8 +1,9 @@
|
||||
import {isBlank, CONST_EXPR} from 'angular2/src/facade/lang';
|
||||
import {isBlank} from 'angular2/src/facade/lang';
|
||||
|
||||
export function iterableChangesAsString(
|
||||
{collection = CONST_EXPR([]), previous = CONST_EXPR([]), additions = CONST_EXPR([]),
|
||||
moves = CONST_EXPR([]), removals = CONST_EXPR([]), identityChanges = CONST_EXPR([])}) {
|
||||
{collection = /*@ts2dart_const*/[], previous = /*@ts2dart_const*/[],
|
||||
additions = /*@ts2dart_const*/[], moves = /*@ts2dart_const*/[],
|
||||
removals = /*@ts2dart_const*/[], identityChanges = /*@ts2dart_const*/[]}) {
|
||||
return "collection: " + collection.join(', ') + "\n" + "previous: " + previous.join(', ') + "\n" +
|
||||
"additions: " + additions.join(', ') + "\n" + "moves: " + moves.join(', ') + "\n" +
|
||||
"removals: " + removals.join(', ') + "\n" + "identityChanges: " +
|
||||
|
@ -17,7 +17,6 @@ import {
|
||||
|
||||
import {
|
||||
IS_DART,
|
||||
CONST_EXPR,
|
||||
Type,
|
||||
isPresent,
|
||||
isBlank,
|
||||
@ -1072,8 +1071,8 @@ export function main() {
|
||||
});
|
||||
}
|
||||
|
||||
const ALL_DIRECTIVES = CONST_EXPR([
|
||||
forwardRef(() => TestDirective),
|
||||
const ALL_DIRECTIVES = /*@ts2dart_const*/ [
|
||||
forwardRef(( => TestDirective),
|
||||
forwardRef(() => TestComponent),
|
||||
forwardRef(() => AnotherComponent),
|
||||
forwardRef(() => TestLocals),
|
||||
@ -1085,8 +1084,8 @@ const ALL_DIRECTIVES = CONST_EXPR([
|
||||
forwardRef(() => OrderCheckDirective1),
|
||||
]);
|
||||
|
||||
const ALL_PIPES = CONST_EXPR([
|
||||
forwardRef(() => CountingPipe),
|
||||
const ALL_PIPES = /*@ts2dart_const*/ [
|
||||
forwardRef(( => CountingPipe),
|
||||
forwardRef(() => CountingImpurePipe),
|
||||
forwardRef(() => MultiArgPipe),
|
||||
forwardRef(() => PipeWithOnDestroy),
|
||||
|
@ -32,7 +32,6 @@ import {
|
||||
stringify,
|
||||
isBlank,
|
||||
CONST,
|
||||
CONST_EXPR,
|
||||
IS_DART
|
||||
} from 'angular2/src/facade/lang';
|
||||
import {BaseException, WrappedException} from 'angular2/src/facade/exceptions';
|
||||
@ -93,7 +92,7 @@ import {TemplateRef_, TemplateRef} from 'angular2/src/core/linker/template_ref';
|
||||
|
||||
import {Renderer} from 'angular2/src/core/render';
|
||||
|
||||
const ANCHOR_ELEMENT = CONST_EXPR(new OpaqueToken('AnchorElement'));
|
||||
const ANCHOR_ELEMENT = /*@ts2dart_const*/ new OpaqueToken('AnchorElement');
|
||||
|
||||
export function main() {
|
||||
if (IS_DART) {
|
||||
|
@ -17,7 +17,7 @@ import {
|
||||
fakeAsync,
|
||||
tick
|
||||
} from 'angular2/testing_internal';
|
||||
import {isBlank, isPresent, stringify, Type, CONST_EXPR} from 'angular2/src/facade/lang';
|
||||
import {isBlank, isPresent, stringify, Type} from 'angular2/src/facade/lang';
|
||||
import {
|
||||
ViewContainerRef,
|
||||
TemplateRef,
|
||||
@ -49,8 +49,8 @@ import {
|
||||
import {NgIf} from 'angular2/common';
|
||||
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
|
||||
|
||||
const ALL_DIRECTIVES = CONST_EXPR([
|
||||
forwardRef(() => SimpleDirective),
|
||||
const ALL_DIRECTIVES = /*@ts2dart_const*/ [
|
||||
forwardRef(( => SimpleDirective),
|
||||
forwardRef(() => CycleDirective),
|
||||
forwardRef(() => SimpleComponent),
|
||||
forwardRef(() => SomeOtherDirective),
|
||||
@ -83,8 +83,8 @@ const ALL_DIRECTIVES = CONST_EXPR([
|
||||
NgIf
|
||||
]);
|
||||
|
||||
const ALL_PIPES = CONST_EXPR([
|
||||
forwardRef(() => PipeNeedsChangeDetectorRef),
|
||||
const ALL_PIPES = /*@ts2dart_const*/ [
|
||||
forwardRef(( => PipeNeedsChangeDetectorRef),
|
||||
forwardRef(() => PipeNeedsService),
|
||||
forwardRef(() => PurePipe),
|
||||
forwardRef(() => ImpurePipe),
|
||||
|
Reference in New Issue
Block a user