| 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 library dart2js.tokens.keywords; | 5 library dart2js.tokens.keywords; |
| 6 | 6 |
| 7 import '../util/characters.dart' as Characters show $a; | 7 import '../util/characters.dart' as Characters show $a; |
| 8 | |
| 9 import 'precedence.dart' show PrecedenceInfo; | 8 import 'precedence.dart' show PrecedenceInfo; |
| 10 import 'precedence_constants.dart' as Precedence | 9 import 'precedence_constants.dart' as Precedence |
| 11 show AS_INFO, IS_INFO, KEYWORD_INFO; | 10 show AS_INFO, IS_INFO, KEYWORD_INFO; |
| 12 | 11 |
| 13 /** | 12 /** |
| 14 * A keyword in the Dart programming language. | 13 * A keyword in the Dart programming language. |
| 15 */ | 14 */ |
| 16 class Keyword { | 15 class Keyword { |
| 17 static const List<Keyword> values = const <Keyword>[ | 16 static const List<Keyword> values = const <Keyword>[ |
| 18 const Keyword("assert"), | 17 const Keyword("assert"), |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 /** | 205 /** |
| 207 * A state that has no outgoing transitions. | 206 * A state that has no outgoing transitions. |
| 208 */ | 207 */ |
| 209 class LeafKeywordState extends KeywordState { | 208 class LeafKeywordState extends KeywordState { |
| 210 LeafKeywordState(String syntax) : super(Keyword.keywords[syntax]); | 209 LeafKeywordState(String syntax) : super(Keyword.keywords[syntax]); |
| 211 | 210 |
| 212 KeywordState next(int c) => null; | 211 KeywordState next(int c) => null; |
| 213 | 212 |
| 214 String toString() => keyword.syntax; | 213 String toString() => keyword.syntax; |
| 215 } | 214 } |
| OLD | NEW |