Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Side by Side Diff: lib/compiler/implementation/scanner/keyword.dart

Issue 11262032: Add 'part of' in dart2js code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
5 /** 7 /**
6 * A keyword in the Dart programming language. 8 * A keyword in the Dart programming language.
7 */ 9 */
8 class Keyword implements SourceString { 10 class Keyword implements SourceString {
9 static const List<Keyword> values = const <Keyword> [ 11 static const List<Keyword> values = const <Keyword> [
10 const Keyword("assert"), 12 const Keyword("assert"),
11 const Keyword("break"), 13 const Keyword("break"),
12 const Keyword("case"), 14 const Keyword("case"),
13 const Keyword("catch"), 15 const Keyword("catch"),
14 const Keyword("class"), 16 const Keyword("class"),
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 final Keyword keyword; 224 final Keyword keyword;
223 225
224 LeafKeywordState(String syntax) : keyword = Keyword.keywords[syntax]; 226 LeafKeywordState(String syntax) : keyword = Keyword.keywords[syntax];
225 227
226 bool isLeaf() => true; 228 bool isLeaf() => true;
227 229
228 KeywordState next(int c) => null; 230 KeywordState next(int c) => null;
229 231
230 String toString() => keyword.syntax; 232 String toString() => keyword.syntax;
231 } 233 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/scanner/class_element_parser.dart ('k') | lib/compiler/implementation/scanner/listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698