chore: replace @CONST() with /*@ts2dart_const*/

This commit is contained in:
Misko Hevery
2016-04-25 21:58:48 -07:00
committed by Martin Probst
parent a02614beaa
commit 3aa322a9c6
55 changed files with 240 additions and 246 deletions

View File

@ -1072,7 +1072,7 @@ export function main() {
}
const ALL_DIRECTIVES = /*@ts2dart_const*/ [
forwardRef(( => TestDirective),
forwardRef(() => TestDirective),
forwardRef(() => TestComponent),
forwardRef(() => AnotherComponent),
forwardRef(() => TestLocals),
@ -1082,17 +1082,17 @@ const ALL_DIRECTIVES = /*@ts2dart_const*/ [
forwardRef(() => OrderCheckDirective2),
forwardRef(() => OrderCheckDirective0),
forwardRef(() => OrderCheckDirective1),
]);
];
const ALL_PIPES = /*@ts2dart_const*/ [
forwardRef(( => CountingPipe),
forwardRef(() => CountingPipe),
forwardRef(() => CountingImpurePipe),
forwardRef(() => MultiArgPipe),
forwardRef(() => PipeWithOnDestroy),
forwardRef(() => IdentityPipe),
forwardRef(() => WrappedPipe),
AsyncPipe
]);
];
@Injectable()
class RenderLog {

View File

@ -31,7 +31,6 @@ import {
global,
stringify,
isBlank,
CONST,
IS_DART
} from 'angular2/src/facade/lang';
import {BaseException, WrappedException} from 'angular2/src/facade/exceptions';
@ -2408,7 +2407,7 @@ class DirectiveConsumingInjectableUnbounded {
}
@CONST()
/* @ts2dart_const */
class EventBus {
parentEventBus: EventBus;
name: string;

View File

@ -50,7 +50,7 @@ import {NgIf} from 'angular2/common';
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
const ALL_DIRECTIVES = /*@ts2dart_const*/ [
forwardRef(( => SimpleDirective),
forwardRef(() => SimpleDirective),
forwardRef(() => CycleDirective),
forwardRef(() => SimpleComponent),
forwardRef(() => SomeOtherDirective),
@ -81,16 +81,16 @@ const ALL_DIRECTIVES = /*@ts2dart_const*/ [
forwardRef(() => PushComponentNeedsChangeDetectorRef),
forwardRef(() => NeedsHostAppService),
NgIf
]);
];
const ALL_PIPES = /*@ts2dart_const*/ [
forwardRef(( => PipeNeedsChangeDetectorRef),
forwardRef(() => PipeNeedsChangeDetectorRef),
forwardRef(() => PipeNeedsService),
forwardRef(() => PurePipe),
forwardRef(() => ImpurePipe),
forwardRef(() => DuplicatePipe1),
forwardRef(() => DuplicatePipe2),
]);
];
@Directive({selector: '[simpleDirective]'})
class SimpleDirective {

View File

@ -17,7 +17,6 @@ import {
ComponentFixtureNoNgZone
} from 'angular2/testing_internal';
import {CONST_EXPR} from 'angular2/src/facade/lang';
import {Injectable, provide} from 'angular2/core';
import {NgIf} from 'angular2/common';
import {Directive, Component, ViewMetadata, Input} from 'angular2/src/core/metadata';
@ -152,7 +151,7 @@ class ListDir1Alt {
class ListDir2 {
}
const LIST_CHILDREN = CONST_EXPR([ListDir1, ListDir2]);
const LIST_CHILDREN = /*@ts2dart_const*/[ListDir1, ListDir2];
@Component(
{selector: 'directive-list-comp', template: `(<li1></li1>)(<li2></li2>)`, directives: [LIST_CHILDREN]})