refactor(size): Use abstract keyword where possible to decrease file size. (#14112)

This commit is contained in:
Misko Hevery
2017-01-25 22:36:38 -08:00
committed by Miško Hevery
parent f7fba74c58
commit 670b680b0a
3 changed files with 15 additions and 18 deletions

View File

@ -204,10 +204,9 @@ export abstract class PlatformRef {
* ```
* @stable
*/
bootstrapModule<M>(moduleType: Type<M>, compilerOptions: CompilerOptions|CompilerOptions[] = []):
Promise<NgModuleRef<M>> {
throw unimplemented();
}
abstract bootstrapModule<M>(
moduleType: Type<M>,
compilerOptions?: CompilerOptions|CompilerOptions[]): Promise<NgModuleRef<M>>;
/**
* Register a listener to be called when the platform is disposed.

View File

@ -523,9 +523,7 @@ export abstract class ReflectiveInjector implements Injector {
* expect(child.get(ParentProvider)).toBe(parent.get(ParentProvider));
* ```
*/
createChildFromResolved(providers: ResolvedReflectiveProvider[]): ReflectiveInjector {
return unimplemented();
}
abstract createChildFromResolved(providers: ResolvedReflectiveProvider[]): ReflectiveInjector;
/**
* Resolves a provider and instantiates an object in the context of the injector.