Skip to content

Commit

Permalink
fix(compiler): Implement Token#toString for Operator
Browse files Browse the repository at this point in the history
Include a case for `TokenType.Operator`.

Closes angular#4049
  • Loading branch information
Tim Blasi committed Sep 8, 2015
1 parent a8bdb69 commit 3b9c086
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/angular2/src/core/change_detection/parser/lexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@ export class Token {
toString(): string {
switch (this.type) {
case TokenType.Character:
case TokenType.String:
case TokenType.Identifier:
case TokenType.Keyword:
case TokenType.Operator:
case TokenType.String:
return this.strValue;
case TokenType.Number:
return this.numValue.toString();
Expand Down

0 comments on commit 3b9c086

Please sign in to comment.