| 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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 } | 445 } |
| 446 int kind = getIdentifierKind(); | 446 int kind = getIdentifierKind(); |
| 447 if (kind == TokenKind.IDENTIFIER) { | 447 if (kind == TokenKind.IDENTIFIER) { |
| 448 return _finishToken(TokenKind.IDENTIFIER); | 448 return _finishToken(TokenKind.IDENTIFIER); |
| 449 } else { | 449 } else { |
| 450 return _finishToken(kind); | 450 return _finishToken(kind); |
| 451 } | 451 } |
| 452 } | 452 } |
| 453 } | 453 } |
| 454 | 454 |
| OLD | NEW |