diff --git a/modules/angular2/angular2.dart b/modules/angular2/angular2.dart index 374a2c6f4d..155fe6295c 100644 --- a/modules/angular2/angular2.dart +++ b/modules/angular2/angular2.dart @@ -8,6 +8,5 @@ library angular2; export 'package:angular2/core.dart' hide forwardRef, resolveForwardRef, ForwardRefFn; export 'package:angular2/profile.dart'; export 'package:angular2/lifecycle_hooks.dart'; -export 'package:angular2/src/core/application_ref.dart'; export 'package:angular2/src/core/application_tokens.dart' hide APP_COMPONENT_REF_PROMISE, APP_ID_RANDOM_BINDING; export 'package:angular2/src/core/render/dom/dom_tokens.dart'; diff --git a/modules/angular2/core.dart b/modules/angular2/core.dart index 78077c0131..6313ee6851 100644 --- a/modules/angular2/core.dart +++ b/modules/angular2/core.dart @@ -8,7 +8,7 @@ export 'package:angular2/src/core/pipes.dart'; export 'package:angular2/src/core/facade.dart'; // Do not export application for dart. Must import from angular2/bootstrap //export 'package:angular2/src/core/application.dart'; -export 'package:angular2/src/core/application_ref.dart'; +export 'package:angular2/src/core/application_ref.dart' hide ApplicationRef_, PlatformRef_; export 'package:angular2/src/core/services.dart'; export 'package:angular2/src/core/linker.dart'; export 'package:angular2/src/core/lifecycle.dart'; diff --git a/modules/angular2/src/core/application_ref.ts b/modules/angular2/src/core/application_ref.ts index 0220af1ff3..0c3f00f1f6 100644 --- a/modules/angular2/src/core/application_ref.ts +++ b/modules/angular2/src/core/application_ref.ts @@ -1,4 +1,4 @@ -import {NgZone, NgZone_} from 'angular2/src/core/zone/ng_zone'; +import {NgZone} from 'angular2/src/core/zone/ng_zone'; import {Type, isBlank, isPresent, assertionsEnabled} from 'angular2/src/core/facade/lang'; import {bind, Binding, Injector, OpaqueToken} from 'angular2/src/core/di'; import { @@ -112,7 +112,7 @@ export function applicationCommonBindings(): Array { * Create an Angular zone. */ export function createNgZone(): NgZone { - return new NgZone_({enableLongStackTrace: assertionsEnabled()}); + return new NgZone({enableLongStackTrace: assertionsEnabled()}); } var _platform: PlatformRef; @@ -240,7 +240,7 @@ export class PlatformRef_ extends PlatformRef { try { injector = this.injector.resolveAndCreateChild(bindings); exceptionHandler = injector.get(ExceptionHandler); - (zone).overrideOnErrorHandler((e, s) => exceptionHandler.call(e, s)); + zone.overrideOnErrorHandler((e, s) => exceptionHandler.call(e, s)); } catch (e) { if (isPresent(exceptionHandler)) { exceptionHandler.call(e, e.stack); diff --git a/modules/angular2/src/core/life_cycle/life_cycle.ts b/modules/angular2/src/core/life_cycle/life_cycle.ts index 99c5b0137a..e956e1ddd2 100644 --- a/modules/angular2/src/core/life_cycle/life_cycle.ts +++ b/modules/angular2/src/core/life_cycle/life_cycle.ts @@ -4,7 +4,6 @@ import {NgZone} from 'angular2/src/core/zone/ng_zone'; import {isPresent} from 'angular2/src/core/facade/lang'; import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions'; import {wtfLeave, wtfCreateScope, WtfScopeFn} from '../profile/profile'; -import {NgZone_} from "../zone/ng_zone"; /** * Provides access to explicitly trigger change detection in an application. @@ -72,7 +71,7 @@ export class LifeCycle_ extends LifeCycle { if (isPresent(changeDetector)) { this._changeDetectors.push(changeDetector); } - (zone).overrideOnTurnDone(() => this.tick()); + zone.overrideOnTurnDone(() => this.tick()); } tick() { diff --git a/modules/angular2/src/core/linker/element_ref.ts b/modules/angular2/src/core/linker/element_ref.ts index 2a0bd36bbe..0bc3f113cd 100644 --- a/modules/angular2/src/core/linker/element_ref.ts +++ b/modules/angular2/src/core/linker/element_ref.ts @@ -66,8 +66,6 @@ export class ElementRef_ extends ElementRef { } get renderView(): RenderViewRef { return (this.parentView).render; } - set renderView(value) { - unimplemented(); - } + set renderView(value) { unimplemented(); } get nativeElement(): any { return this._renderer.getNativeElementSync(this); } } diff --git a/modules/angular2/src/core/testability/testability.ts b/modules/angular2/src/core/testability/testability.ts index 4b4b9b4f8e..5fe76ea364 100644 --- a/modules/angular2/src/core/testability/testability.ts +++ b/modules/angular2/src/core/testability/testability.ts @@ -3,7 +3,7 @@ import {DOM} from 'angular2/src/core/dom/dom_adapter'; import {Map, MapWrapper, ListWrapper} from 'angular2/src/core/facade/collection'; import {CONST, CONST_EXPR} from 'angular2/src/core/facade/lang'; import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions'; -import {NgZone, NgZone_} from '../zone/ng_zone'; +import {NgZone} from '../zone/ng_zone'; import {PromiseWrapper} from 'angular2/src/core/facade/async'; @@ -21,12 +21,11 @@ export class Testability { constructor(public _ngZone: NgZone) { this._watchAngularEvents(_ngZone); } _watchAngularEvents(_ngZone: NgZone): void { - (_ngZone).overrideOnTurnStart(() => { this._isAngularEventPending = true; }); - (_ngZone) - .overrideOnEventDone(() => { - this._isAngularEventPending = false; - this._runCallbacksIfReady(); - }, true); + _ngZone.overrideOnTurnStart(() => { this._isAngularEventPending = true; }); + _ngZone.overrideOnEventDone(() => { + this._isAngularEventPending = false; + this._runCallbacksIfReady(); + }, true); } increasePendingRequestCount(): number { diff --git a/modules/angular2/src/core/zone/ng_zone.dart b/modules/angular2/src/core/zone/ng_zone.dart index 38a1e09252..5ffbe7985e 100644 --- a/modules/angular2/src/core/zone/ng_zone.dart +++ b/modules/angular2/src/core/zone/ng_zone.dart @@ -293,7 +293,3 @@ class NgZone { zoneValues: {'_innerZone': true}); } } - -class NgZone_ extends NgZone { - NgZone_({bool enableLongStackTrace}) : super(enableLongStackTrace: enableLongStackTrace); -} diff --git a/modules/angular2/src/core/zone/ng_zone.ts b/modules/angular2/src/core/zone/ng_zone.ts index dbf775d720..debdf91216 100644 --- a/modules/angular2/src/core/zone/ng_zone.ts +++ b/modules/angular2/src/core/zone/ng_zone.ts @@ -77,35 +77,7 @@ export interface NgZoneZone extends Zone { _innerZone: boolean; } * } * ``` */ -export abstract class NgZone { - /** - * Executes the `fn` function synchronously within the Angular zone and returns value returned by - * the function. - * - * Running functions via `run` allows you to reenter Angular zone from a task that was executed - * outside of the Angular zone (typically started via {@link #runOutsideAngular}). - * - * Any future tasks or microtasks scheduled from within this function will continue executing from - * within the Angular zone. - */ - abstract run(fn: () => any): any; - - /** - * Executes the `fn` function synchronously in Angular's parent zone and returns value returned by - * the function. - * - * Running functions via `runOutsideAngular` allows you to escape Angular's zone and do work that - * doesn't trigger Angular change-detection or is subject to Angular's error handling. - * - * Any future tasks or microtasks scheduled from within this function will continue executing from - * outside of the Angular zone. - * - * Use {@link #run} to reenter the Angular zone and do work that updates the application model. - */ - abstract runOutsideAngular(fn: () => any): any; -} - -export class NgZone_ extends NgZone { +export class NgZone { _runScope: WtfScopeFn = wtfCreateScope(`NgZone#run()`); _microtaskScope: WtfScopeFn = wtfCreateScope(`NgZone#microtask()`); @@ -143,7 +115,6 @@ export class NgZone_ extends NgZone { * enabled in development mode as they significantly impact perf. */ constructor({enableLongStackTrace}) { - super(); this._onTurnStart = null; this._onTurnDone = null; this._onEventDone = null; @@ -222,6 +193,16 @@ export class NgZone_ extends NgZone { this._onErrorHandler = normalizeBlank(errorHandler); } + /** + * Executes the `fn` function synchronously within the Angular zone and returns value returned by + * the function. + * + * Running functions via `run` allows you to reenter Angular zone from a task that was executed + * outside of the Angular zone (typically started via {@link #runOutsideAngular}). + * + * Any future tasks or microtasks scheduled from within this function will continue executing from + * within the Angular zone. + */ run(fn: () => any): any { if (this._disabled) { return fn(); @@ -235,6 +216,18 @@ export class NgZone_ extends NgZone { } } + /** + * Executes the `fn` function synchronously in Angular's parent zone and returns value returned by + * the function. + * + * Running functions via `runOutsideAngular` allows you to escape Angular's zone and do work that + * doesn't trigger Angular change-detection or is subject to Angular's error handling. + * + * Any future tasks or microtasks scheduled from within this function will continue executing from + * outside of the Angular zone. + * + * Use {@link #run} to reenter the Angular zone and do work that updates the application model. + */ runOutsideAngular(fn: () => any): any { if (this._disabled) { return fn(); diff --git a/modules/angular2/src/mock/ng_zone_mock.ts b/modules/angular2/src/mock/ng_zone_mock.ts index 2fe4b1ae57..57a868e964 100644 --- a/modules/angular2/src/mock/ng_zone_mock.ts +++ b/modules/angular2/src/mock/ng_zone_mock.ts @@ -1,6 +1,6 @@ -import {NgZone_} from 'angular2/src/core/zone/ng_zone'; +import {NgZone} from 'angular2/src/core/zone/ng_zone'; -export class MockNgZone extends NgZone_ { +export class MockNgZone extends NgZone { _onEventDone: () => void; constructor() { super({enableLongStackTrace: false}); } diff --git a/modules/angular2/src/web_workers/shared/post_message_bus.ts b/modules/angular2/src/web_workers/shared/post_message_bus.ts index 211e043b99..1c2c404b70 100644 --- a/modules/angular2/src/web_workers/shared/post_message_bus.ts +++ b/modules/angular2/src/web_workers/shared/post_message_bus.ts @@ -7,7 +7,7 @@ import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptio import {EventEmitter} from 'angular2/src/core/facade/async'; import {StringMapWrapper} from 'angular2/src/core/facade/collection'; import {Injectable} from "angular2/src/core/di"; -import {NgZone, NgZone_} from 'angular2/src/core/zone/ng_zone'; +import {NgZone} from 'angular2/src/core/zone/ng_zone'; /** * A TypeScript implementation of {@link MessageBus} for communicating via JavaScript's @@ -41,7 +41,7 @@ export class PostMessageBusSink implements MessageBusSink { attachToZone(zone: NgZone): void { this._zone = zone; - (this._zone).overrideOnEventDone(() => this._handleOnEventDone(), false); + this._zone.overrideOnEventDone(() => this._handleOnEventDone(), false); } initChannel(channel: string, runInZone: boolean = true): void { diff --git a/modules/angular2/test/core/render/dom/events/event_manager_spec.ts b/modules/angular2/test/core/render/dom/events/event_manager_spec.ts index 7b2458476f..59853be3c3 100644 --- a/modules/angular2/test/core/render/dom/events/event_manager_spec.ts +++ b/modules/angular2/test/core/render/dom/events/event_manager_spec.ts @@ -14,7 +14,7 @@ import { EventManagerPlugin, DomEventsPlugin } from 'angular2/src/core/render/dom/events/event_manager'; -import {NgZone, NgZone_} from 'angular2/src/core/zone/ng_zone'; +import {NgZone} from 'angular2/src/core/zone/ng_zone'; import {ListWrapper, Map, MapWrapper} from 'angular2/src/core/facade/collection'; import {DOM} from 'angular2/src/core/dom/dom_adapter'; @@ -106,7 +106,7 @@ class FakeEventManagerPlugin extends EventManagerPlugin { } } -class FakeNgZone extends NgZone_ { +class FakeNgZone extends NgZone { constructor() { super({enableLongStackTrace: false}); } run(fn) { fn(); } diff --git a/modules/angular2/test/core/testability/testability_spec.ts b/modules/angular2/test/core/testability/testability_spec.ts index 39ccb6d9c0..0b34d96276 100644 --- a/modules/angular2/test/core/testability/testability_spec.ts +++ b/modules/angular2/test/core/testability/testability_spec.ts @@ -12,7 +12,7 @@ import { SpyObject } from 'angular2/test_lib'; import {Testability} from 'angular2/src/core/testability/testability'; -import {NgZone, NgZone_} from 'angular2/src/core/zone/ng_zone'; +import {NgZone} from 'angular2/src/core/zone/ng_zone'; import {normalizeBlank} from 'angular2/src/core/facade/lang'; import {PromiseWrapper} from 'angular2/src/core/facade/async'; @@ -21,7 +21,7 @@ function microTask(fn: Function): void { PromiseWrapper.resolve(null).then((_) => { fn(); }); } -class MockNgZone extends NgZone_ { +class MockNgZone extends NgZone { _onTurnStart: () => void; _onEventDone: () => void; diff --git a/modules/angular2/test/core/zone/ng_zone_spec.ts b/modules/angular2/test/core/zone/ng_zone_spec.ts index 419ec4d285..abc63a29fb 100644 --- a/modules/angular2/test/core/zone/ng_zone_spec.ts +++ b/modules/angular2/test/core/zone/ng_zone_spec.ts @@ -17,7 +17,7 @@ import { import {PromiseCompleter, PromiseWrapper, TimerWrapper} from 'angular2/src/core/facade/async'; import {BaseException} from 'angular2/src/core/facade/exceptions'; -import {NgZone, NgZone_} from 'angular2/src/core/zone/ng_zone'; +import {NgZone} from 'angular2/src/core/zone/ng_zone'; var needsLongerTimers = browserDetection.isSlow || browserDetection.isEdge; var resultTimer = 1000; @@ -47,7 +47,7 @@ export function main() { describe("NgZone", () => { function createZone(enableLongStackTrace) { - var zone = new NgZone_({enableLongStackTrace: enableLongStackTrace}); + var zone = new NgZone({enableLongStackTrace: enableLongStackTrace}); zone.overrideOnTurnStart(_log.fn('onTurnStart')); zone.overrideOnTurnDone(_log.fn('onTurnDone')); return zone; diff --git a/modules/angular2/test/public_api_spec.ts b/modules/angular2/test/public_api_spec.ts index 39beb838f3..1f8db59850 100644 --- a/modules/angular2/test/public_api_spec.ts +++ b/modules/angular2/test/public_api_spec.ts @@ -72,7 +72,8 @@ var NG_API = [ 'AppRootUrl', 'AppRootUrl.value', 'AppRootUrl.value=', - 'AppViewManager', + 'AppViewManager:js', + 'AppViewManager.getHostElement():js', /* Abstract methods 'AppViewManager.attachViewInContainer()', @@ -83,18 +84,17 @@ var NG_API = [ 'AppViewManager.destroyViewInContainer()', 'AppViewManager.detachViewInContainer()', 'AppViewManager.getComponent()', - 'AppViewManager.getHostElement()', 'AppViewManager.getNamedElementInComponentView()', 'AppViewManager.getViewContainer()', */ - 'ApplicationRef', + 'ApplicationRef:js', + 'ApplicationRef.injector:js', + 'ApplicationRef.zone:js', /* Abstract methods 'ApplicationRef.bootstrap()', 'ApplicationRef.dispose()', - 'ApplicationRef.injector', 'ApplicationRef.registerBootstrapListener()', - 'ApplicationRef.zone', */ 'AsyncPipe', 'AsyncPipe.onDestroy()', @@ -158,7 +158,7 @@ var NG_API = [ 'CheckboxControlValueAccessor.registerOnTouched()', 'CheckboxControlValueAccessor.writeValue()', 'Class:js', - 'Compiler', + 'Compiler:js', /* Abstract methods 'Compiler.compileInHost()', @@ -207,19 +207,20 @@ var NG_API = [ 'ComponentRef', 'ComponentRef.componentType', 'ComponentRef.componentType=', - /* - Abstract method - 'ComponentRef.dispose()', - */ - 'ComponentRef.hostComponent', - 'ComponentRef.hostComponentType', - 'ComponentRef.hostView', + 'ComponentRef.hostComponent:js', + 'ComponentRef.hostView:js', 'ComponentRef.injector', 'ComponentRef.injector=', 'ComponentRef.instance', 'ComponentRef.instance=', 'ComponentRef.location', 'ComponentRef.location=', + /* + Abstract method + 'ComponentRef.dispose()', + 'ComponentRef.hostComponentType', + */ + 'ContentChild', 'ContentChild.descendants', 'ContentChild.first', @@ -440,7 +441,6 @@ var NG_API = [ 'ElementRef.parentView', 'ElementRef.parentView=', 'ElementRef.renderView', - 'ElementRef.renderView=', 'Output', 'Output.bindingPropertyName', 'EventEmitter', @@ -533,10 +533,7 @@ var NG_API = [ 'Injector.resolveAndCreateChild()', 'Injector.resolveAndInstantiate()', 'InstantiationError', - /* - Abstract method 'InstantiationError.addKey()', - */ 'InstantiationError.causeKey', 'InstantiationError.context', 'InstantiationError.injectors', @@ -570,11 +567,11 @@ var NG_API = [ 'KeyValueDiffers.factories', 'KeyValueDiffers.find()', 'LifeCycle', // TODO: replace with ApplicationRef - /* - Abstract methods - 'LifeCycle.registerWith()', - 'LifeCycle.tick()', - */ + /* + Abstract methods + 'LifeCycle.registerWith()', + 'LifeCycle.tick()', + */ 'LowerCasePipe', 'LowerCasePipe.transform()', 'NG_VALIDATORS', @@ -769,15 +766,12 @@ var NG_API = [ 'NgSwitchWhen', 'NgSwitchWhen.ngSwitchWhen=', 'NgZone', - /* - Abstract methods 'NgZone.overrideOnErrorHandler()', 'NgZone.overrideOnEventDone()', 'NgZone.overrideOnTurnDone()', 'NgZone.overrideOnTurnStart()', 'NgZone.run()', 'NgZone.runOutsideAngular()', - */ 'NoAnnotationError', 'NoAnnotationError.message', 'NoAnnotationError.stackTrace', @@ -916,14 +910,13 @@ var NG_API = [ 'Renderer.setEventDispatcher()', 'Renderer.setText()', */ - 'ResolvedBinding', - 'ResolvedBinding.key', - 'ResolvedBinding.key=', - 'ResolvedBinding.multiBinding', - 'ResolvedBinding.multiBinding=', - 'ResolvedBinding.resolvedFactories', - 'ResolvedBinding.resolvedFactories=', - 'ResolvedBinding.resolvedFactory', + 'ResolvedBinding:dart', + 'ResolvedBinding.key:dart', + 'ResolvedBinding.key=:dart', + 'ResolvedBinding.multiBinding:dart', + 'ResolvedBinding.multiBinding=:dart', + 'ResolvedBinding.resolvedFactories:dart', + 'ResolvedBinding.resolvedFactories=:dart', 'ResolvedFactory', 'ResolvedFactory.dependencies', 'ResolvedFactory.dependencies=', @@ -963,7 +956,6 @@ var NG_API = [ Abstract method 'TemplateRef.hasLocal()', */ - 'TemplateRef.protoViewRef', 'Type:js', 'Title', 'Title.getTitle()', @@ -1036,8 +1028,6 @@ var NG_API = [ 'ViewContainerRef.insert()', */ 'ViewContainerRef.length', - 'ViewContainerRef.viewManager', - 'ViewContainerRef.viewManager=', 'ViewEncapsulation#Emulated', 'ViewEncapsulation#Native', 'ViewEncapsulation#None', @@ -1071,8 +1061,6 @@ var NG_API = [ 'ViewRef', 'ViewRef.changeDetectorRef', 'ViewRef.changeDetectorRef=', - 'ViewRef.render', - 'ViewRef.renderFragment', /* Abstract method 'ViewRef.setLocal()', @@ -1107,100 +1095,97 @@ var NG_API = [ 'wtfLeave:dart', 'wtfStartTimeRange():js', 'wtfStartTimeRange:dart', - '{AfterContentChecked}', - '{AfterContentInit}', - '{AfterViewChecked}', - '{AfterViewInit}', - '{ControlValueAccessor}', - '{DoCheck}', - '{Form}', - '{HostViewRef}', - '{HostViewRef}.changeDetectorRef', - '{HostViewRef}.changeDetectorRef=', - '{IterableDifferFactory}', - '{IterableDiffer}', - '{KeyValueDifferFactory}', - '{KeyValueDiffer}', - '{OnChanges}', - '{OnDestroy}', - '{OnInit}', - '{PipeOnDestroy}', - '{PipeTransform}', - '{RenderBeginCmd}', - '{RenderBeginCmd}.isBound', - '{RenderBeginCmd}.isBound=', - '{RenderBeginCmd}.ngContentIndex', - '{RenderBeginCmd}.ngContentIndex=', - '{RenderBeginComponentCmd}', - '{RenderBeginComponentCmd}.nativeShadow', - '{RenderBeginComponentCmd}.nativeShadow=', - '{RenderBeginComponentCmd}.templateId', - '{RenderBeginComponentCmd}.templateId=', - '{RenderBeginElementCmd}', - '{RenderBeginElementCmd}.attrNameAndValues', - '{RenderBeginElementCmd}.attrNameAndValues=', - '{RenderBeginElementCmd}.eventTargetAndNames', - '{RenderBeginElementCmd}.eventTargetAndNames=', - '{RenderBeginElementCmd}.name', - '{RenderBeginElementCmd}.name=', - '{RenderCommandVisitor}', - '{RenderEmbeddedTemplateCmd}', - '{RenderEmbeddedTemplateCmd}.children', - '{RenderEmbeddedTemplateCmd}.children=', - '{RenderEmbeddedTemplateCmd}.isMerged', - '{RenderEmbeddedTemplateCmd}.isMerged=', - '{RenderNgContentCmd}', - '{RenderNgContentCmd}.index', - '{RenderNgContentCmd}.index=', - '{RenderNgContentCmd}.ngContentIndex', - '{RenderNgContentCmd}.ngContentIndex=', - '{RenderTemplateCmd}', - '{RenderTextCmd}', - '{RenderTextCmd}.value', - '{RenderTextCmd}.value=', - '{RenderElementRef}', - '{RenderElementRef}.boundElementIndex', - '{RenderElementRef}.boundElementIndex=', - '{RenderElementRef}.renderView', - '{RenderElementRef}.renderView=', - '{RenderEventDispatcher}', - '{Stream}', - '{Stream}.any()', - '{Stream}.asBroadcastStream()', - '{Stream}.asyncExpand()', - '{Stream}.asyncMap()', - '{Stream}.contains()', - '{Stream}.distinct()', - '{Stream}.drain()', - '{Stream}.elementAt()', - '{Stream}.every()', - '{Stream}.expand()', - '{Stream}.first', - '{Stream}.firstWhere()', - '{Stream}.fold()', - '{Stream}.forEach()', - '{Stream}.handleError()', - '{Stream}.isBroadcast', - '{Stream}.isEmpty', - '{Stream}.join()', - '{Stream}.last', - '{Stream}.lastWhere()', - '{Stream}.length', - '{Stream}.map()', - '{Stream}.pipe()', - '{Stream}.reduce()', - '{Stream}.single', - '{Stream}.singleWhere()', - '{Stream}.skip()', - '{Stream}.skipWhile()', - '{Stream}.take()', - '{Stream}.takeWhile()', - '{Stream}.timeout()', - '{Stream}.toList()', - '{Stream}.toSet()', - '{Stream}.transform()', - '{Stream}.where()', - '{Type}' + 'AfterContentChecked:dart', + 'AfterContentInit:dart', + 'AfterViewChecked:dart', + 'AfterViewInit:dart', + 'ControlValueAccessor:dart', + 'DoCheck:dart', + 'Form:dart', + 'HostViewRef:dart', + 'HostViewRef.changeDetectorRef', + 'HostViewRef.changeDetectorRef=', + 'IterableDifferFactory:dart', + 'IterableDiffer:dart', + 'KeyValueDifferFactory:dart', + 'KeyValueDiffer:dart', + 'OnChanges:dart', + 'OnDestroy:dart', + 'OnInit:dart', + 'PipeOnDestroy:dart', + 'PipeTransform:dart', + 'RenderBeginCmd:dart', + 'RenderBeginCmd.isBound', + 'RenderBeginCmd.isBound=', + 'RenderBeginCmd.ngContentIndex', + 'RenderBeginCmd.ngContentIndex=', + 'RenderBeginComponentCmd:dart', + 'RenderBeginComponentCmd.nativeShadow', + 'RenderBeginComponentCmd.nativeShadow=', + 'RenderBeginComponentCmd.templateId', + 'RenderBeginComponentCmd.templateId=', + 'RenderBeginElementCmd:dart', + 'RenderBeginElementCmd.attrNameAndValues', + 'RenderBeginElementCmd.attrNameAndValues=', + 'RenderBeginElementCmd.eventTargetAndNames', + 'RenderBeginElementCmd.eventTargetAndNames=', + 'RenderBeginElementCmd.name', + 'RenderBeginElementCmd.name=', + 'RenderCommandVisitor:dart', + 'RenderEmbeddedTemplateCmd:dart', + 'RenderEmbeddedTemplateCmd.children', + 'RenderEmbeddedTemplateCmd.children=', + 'RenderEmbeddedTemplateCmd.isMerged', + 'RenderEmbeddedTemplateCmd.isMerged=', + 'RenderNgContentCmd:dart', + 'RenderNgContentCmd.ngContentIndex', + 'RenderNgContentCmd.ngContentIndex=', + 'RenderTemplateCmd:dart', + 'RenderTextCmd:dart', + 'RenderTextCmd.value', + 'RenderTextCmd.value=', + 'RenderElementRef:dart', + 'RenderElementRef.boundElementIndex', + 'RenderElementRef.boundElementIndex=', + 'RenderElementRef.renderView', + 'RenderElementRef.renderView=', + 'RenderEventDispatcher:dart', + 'Stream:dart', + 'Stream.any():dart', + 'Stream.asBroadcastStream():dart', + 'Stream.asyncExpand():dart', + 'Stream.asyncMap():dart', + 'Stream.contains():dart', + 'Stream.distinct():dart', + 'Stream.drain():dart', + 'Stream.elementAt():dart', + 'Stream.every():dart', + 'Stream.expand():dart', + 'Stream.first:dart', + 'Stream.firstWhere():dart', + 'Stream.fold():dart', + 'Stream.forEach():dart', + 'Stream.handleError():dart', + 'Stream.isBroadcast:dart', + 'Stream.isEmpty:dart', + 'Stream.join():dart', + 'Stream.last:dart', + 'Stream.lastWhere():dart', + 'Stream.length:dart', + 'Stream.map():dart', + 'Stream.pipe():dart', + 'Stream.reduce():dart', + 'Stream.single:dart', + 'Stream.singleWhere():dart', + 'Stream.skip():dart', + 'Stream.skipWhile():dart', + 'Stream.take():dart', + 'Stream.takeWhile():dart', + 'Stream.timeout():dart', + 'Stream.toList():dart', + 'Stream.toSet():dart', + 'Stream.transform():dart', + 'Stream.where():dart', ]; export function main() { @@ -1208,7 +1193,7 @@ export function main() { var x = getSymbolsFromLibrary('ng'); x.sort(); var parts = []; - x.forEach((i) => parts.push(`'${i}'`)); + x.forEach((i) => parts.push(`'${i'`)); print(`[ ${parts.join(', ')} ]`); */ diff --git a/modules/angular2/test/symbol_inspector/symbol_inspector.dart b/modules/angular2/test/symbol_inspector/symbol_inspector.dart index db235459e5..2404c5fdec 100644 --- a/modules/angular2/test/symbol_inspector/symbol_inspector.dart +++ b/modules/angular2/test/symbol_inspector/symbol_inspector.dart @@ -52,7 +52,7 @@ class ExportedSymbol { names.add('$name()'); } else if (declaration is ClassMirror) { var classMirror = declaration as ClassMirror; - if (classMirror.isAbstract) name = '{$name}'; + if (classMirror.isAbstract) name = '$name'; names.add(name); classMirror.staticMembers.forEach(members('$name#', names)); classMirror.instanceMembers.forEach(members('$name.', names)); diff --git a/modules/angular2/test/symbol_inspector/symbol_inspector_spec.ts b/modules/angular2/test/symbol_inspector/symbol_inspector_spec.ts index 2c668bd0ed..515a27c97a 100644 --- a/modules/angular2/test/symbol_inspector/symbol_inspector_spec.ts +++ b/modules/angular2/test/symbol_inspector/symbol_inspector_spec.ts @@ -42,7 +42,7 @@ export function main() { 'StaticFieldType', 'TypedefParam', 'TypedefReturnType', - '{SomeInterface}', + 'SomeInterface:dart', ]) .errors) .toEqual([]); diff --git a/modules/upgrade/src/upgrade_module.ts b/modules/upgrade/src/upgrade_module.ts index 101216f0f1..3f9abb433f 100644 --- a/modules/upgrade/src/upgrade_module.ts +++ b/modules/upgrade/src/upgrade_module.ts @@ -34,7 +34,6 @@ import { } from './constants'; import {Ng2ComponentFacade} from './ng2_facade'; import {ExportedNg1Component} from './ng1_facade'; -import {NgZone_} from "angular2/src/core/zone/ng_zone"; var moduleCount: number = 0; @@ -116,7 +115,7 @@ export class UpgradeModule { '$rootScope', (injector: angular.auto.IInjectorService, rootScope: angular.IRootScopeService) => { ng1Injector = injector; - (ngZone).overrideOnTurnDone(() => rootScope.$apply()); + ngZone.overrideOnTurnDone(() => rootScope.$apply()); ExportedNg1Component.resolve(this.exportedNg1Components, injector); } ]);