Skip to content

Commit 3b9c086

Browse files
author
Tim Blasi
committed
fix(compiler): Implement Token#toString for Operator
Include a case for `TokenType.Operator`. Closes angular#4049
1 parent a8bdb69 commit 3b9c086

File tree

1 file changed

+2
-1
lines changed
  • modules/angular2/src/core/change_detection/parser

1 file changed

+2
-1
lines changed

modules/angular2/src/core/change_detection/parser/lexer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,10 @@ export class Token {
7575
toString(): string {
7676
switch (this.type) {
7777
case TokenType.Character:
78-
case TokenType.String:
7978
case TokenType.Identifier:
8079
case TokenType.Keyword:
80+
case TokenType.Operator:
81+
case TokenType.String:
8182
return this.strValue;
8283
case TokenType.Number:
8384
return this.numValue.toString();

0 commit comments

Comments
 (0)