chore: Remove AngularEntrypoint from TS

Closes #8158
This commit is contained in:
Misko Hevery 2016-04-20 11:27:19 -07:00 committed by Miško Hevery
parent 67d05eb65f
commit 0b6865d6c6
7 changed files with 28 additions and 28 deletions

View File

@ -1,4 +1,4 @@
export {AngularEntrypoint} from 'angular2/src/core/angular_entrypoint';
export * from 'angular2/src/core/angular_entrypoint';
export {
BROWSER_PROVIDERS,
CACHED_TEMPLATE_PROVIDER,

View File

@ -1,4 +1,4 @@
export {AngularEntrypoint} from 'angular2/src/core/angular_entrypoint';
export * from 'angular2/src/core/angular_entrypoint';
export {
BROWSER_PROVIDERS,
ELEMENT_PROBE_PROVIDERS,

View File

@ -33,7 +33,6 @@ export {
} from 'angular2/src/web_workers/shared/service_message_broker';
export {PRIMITIVE} from 'angular2/src/web_workers/shared/serializer';
export * from 'angular2/src/web_workers/shared/message_bus';
export {AngularEntrypoint} from 'angular2/src/core/angular_entrypoint';
export {WORKER_APP_ROUTER} from 'angular2/src/web_workers/worker/router_providers';
export function workerAppPlatform(): PlatformRef {

View File

@ -0,0 +1,23 @@
library angular2.src.core.angular_entrypoint;
/**
* Marks a function or method as an Angular 2 entrypoint. Only necessary in Dart code.
*
* The optional `name` parameter will be reflected in logs when the entry point is processed.
*
* See [the wiki][] for detailed documentation.
* [the wiki]: https://github.com/angular/angular/wiki/Angular-2-Dart-Transformer#entry_points
*
* ## Example
*
* ```
* @AngularEntrypoint("name-for-debug")
* void main() {
* bootstrap(MyComponent);
* }
* ```
*/
class AngularEntrypoint {
final String name;
const AngularEntrypoint([this.name]);
}

View File

@ -1,23 +1,3 @@
import {CONST} from 'angular2/src/facade/lang';
import 'angular2/src/facade/lang'; // kept so that Tools know this is an ES6 file
/**
* Marks a function or method as an Angular 2 entrypoint. Only necessary in Dart code.
*
* The optional `name` parameter will be reflected in logs when the entry point is processed.
*
* See [the wiki][] for detailed documentation.
* [the wiki]: https://github.com/angular/angular/wiki/Angular-2-Dart-Transformer#entry_points
*
* ## Example
*
* ```
* @AngularEntrypoint("name-for-debug")
* void main() {
* bootstrap(MyComponent);
* }
* ```
*/
@CONST()
export class AngularEntrypoint {
constructor(public name?: String) {}
}
// TS does not have AngularEntrypoint

View File

@ -299,7 +299,7 @@ var NG_INSTRUMENTATION =
['wtfCreateScope', 'wtfEndTimeRange', 'wtfLeave', 'WtfScopeFn:dart', 'wtfStartTimeRange'];
var NG_PLATFORM_BROWSER = [
'AngularEntrypoint',
'AngularEntrypoint:dart',
'BROWSER_APP_PROVIDERS',
'BROWSER_PROVIDERS',
'BrowserDomAdapter',

View File

@ -1091,8 +1091,6 @@ const UPGRADE = [
];
const BROWSER = [
'AngularEntrypoint',
'AngularEntrypoint.constructor(name:String)',
'BrowserDomAdapter',
'BrowserDomAdapter.addClass(element:any, className:string):any',
'BrowserDomAdapter.adoptNode(node:Node):any',