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 {