feat(di): Add the @Injectable annotation to Compiler

Mark `Compiler` and its dependencies as available to the `Injector`.
This commit is contained in:
Tim Blasi
2015-03-16 14:44:14 -07:00
committed by Misko Hevery
parent b656f63430
commit 57723e1354
18 changed files with 40 additions and 1 deletions

View File

@ -1,3 +1,4 @@
import {Injectable} from 'angular2/di';
import {Type, isBlank, isPresent, BaseException, normalizeBlank, stringify} from 'angular2/src/facade/lang';
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
import {List, ListWrapper, Map, MapWrapper} from 'angular2/src/facade/collection';
@ -23,6 +24,7 @@ import {CssProcessor} from './css_processor';
* Used to prevent duplicate work and resolve cyclic dependencies.
* @publicModule angular2/angular2
*/
@Injectable()
export class CompilerCache {
_cache:Map;
constructor() {
@ -49,6 +51,7 @@ export class CompilerCache {
* the CompilePipeline and the CompileSteps.
* @publicModule angular2/angular2
*/
@Injectable()
export class Compiler {
_reader: DirectiveMetadataReader;
_parser:Parser;