| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 // Generated by scripts/tokenizer_gen.py. | 4 // Generated by scripts/tokenizer_gen.py. |
| 5 | 5 |
| 6 | 6 |
| 7 interface TokenSource { | 7 abstract class TokenSource { |
| 8 Token next(); | 8 Token next(); |
| 9 } | 9 } |
| 10 | 10 |
| 11 class InterpStack { | 11 class InterpStack { |
| 12 InterpStack next, previous; | 12 InterpStack next, previous; |
| 13 final int quote; | 13 final int quote; |
| 14 final bool isMultiline; | 14 final bool isMultiline; |
| 15 int depth; | 15 int depth; |
| 16 | 16 |
| 17 InterpStack(this.previous, this.quote, this.isMultiline): depth = -1; | 17 InterpStack(this.previous, this.quote, this.isMultiline): depth = -1; |
| (...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 } | 456 } |
| 457 int kind = getIdentifierKind(); | 457 int kind = getIdentifierKind(); |
| 458 if (kind == TokenKind.IDENTIFIER) { | 458 if (kind == TokenKind.IDENTIFIER) { |
| 459 return _finishToken(TokenKind.IDENTIFIER); | 459 return _finishToken(TokenKind.IDENTIFIER); |
| 460 } else { | 460 } else { |
| 461 return _finishToken(kind); | 461 return _finishToken(kind); |
| 462 } | 462 } |
| 463 } | 463 } |
| 464 } | 464 } |
| 465 | 465 |
| OLD | NEW |