feat(di): Add the @Injectable annotation to Compiler
Mark `Compiler` and its dependencies as available to the `Injector`.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import {Injectable} from 'angular2/di';
|
||||
import {int, isBlank, isPresent, BaseException, StringWrapper, RegExpWrapper} from 'angular2/src/facade/lang';
|
||||
import {ListWrapper, List} from 'angular2/src/facade/collection';
|
||||
import {Lexer, EOF, Token, $PERIOD, $COLON, $SEMICOLON, $LBRACKET, $RBRACKET,
|
||||
@@ -32,6 +33,7 @@ var _implicitReceiver = new ImplicitReceiver();
|
||||
var INTERPOLATION_REGEXP = RegExpWrapper.create('\\{\\{(.*?)\\}\\}');
|
||||
var QUOTE_REGEXP = RegExpWrapper.create("'");
|
||||
|
||||
@Injectable()
|
||||
export class Parser {
|
||||
_lexer:Lexer;
|
||||
_reflector:Reflector;
|
||||
|
||||
Reference in New Issue
Block a user