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

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

Issue 11233061: Revert "Parts must start with 'part of'" and "Attempt to fix VM build" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698