chore: replace CONST_EXPR with /*@ts2dart_const*/

This commit is contained in:
Misko Hevery
2016-04-25 21:47:33 -07:00
committed by Martin Probst
parent d2527b504a
commit a02614beaa
99 changed files with 427 additions and 488 deletions

View File

@ -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),

View File

@ -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) {

View File

@ -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),