| 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 | 4 |
| 5 part of scanner; | |
| 6 | |
| 7 /** | 5 /** |
| 8 * A keyword in the Dart programming language. | 6 * A keyword in the Dart programming language. |
| 9 */ | 7 */ |
| 10 class Keyword implements SourceString { | 8 class Keyword implements SourceString { |
| 11 static const List<Keyword> values = const <Keyword> [ | 9 static const List<Keyword> values = const <Keyword> [ |
| 12 const Keyword("assert"), | 10 const Keyword("assert"), |
| 13 const Keyword("break"), | 11 const Keyword("break"), |
| 14 const Keyword("case"), | 12 const Keyword("case"), |
| 15 const Keyword("catch"), | 13 const Keyword("catch"), |
| 16 const Keyword("class"), | 14 const Keyword("class"), |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 final Keyword keyword; | 222 final Keyword keyword; |
| 225 | 223 |
| 226 LeafKeywordState(String syntax) : keyword = Keyword.keywords[syntax]; | 224 LeafKeywordState(String syntax) : keyword = Keyword.keywords[syntax]; |
| 227 | 225 |
| 228 bool isLeaf() => true; | 226 bool isLeaf() => true; |
| 229 | 227 |
| 230 KeywordState next(int c) => null; | 228 KeywordState next(int c) => null; |
| 231 | 229 |
| 232 String toString() => keyword.syntax; | 230 String toString() => keyword.syntax; |
| 233 } | 231 } |
| OLD | NEW |