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

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

Issue 10990060: Added support for exports and re-exports. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removed redundant check. Created 8 years, 2 months 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 /** 5 /**
6 * A keyword in the Dart programming language. 6 * A keyword in the Dart programming language.
7 */ 7 */
8 class Keyword implements SourceString { 8 class Keyword implements SourceString {
9 static const List<Keyword> values = const <Keyword> [ 9 static const List<Keyword> values = const <Keyword> [
10 const Keyword("break"), 10 const Keyword("break"),
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 const Keyword("external", isBuiltIn: true), 43 const Keyword("external", isBuiltIn: true),
44 const Keyword("factory", isBuiltIn: true), 44 const Keyword("factory", isBuiltIn: true),
45 const Keyword("get", isBuiltIn: true), 45 const Keyword("get", isBuiltIn: true),
46 const Keyword("implements", isBuiltIn: true), 46 const Keyword("implements", isBuiltIn: true),
47 const Keyword("interface", isBuiltIn: true), 47 const Keyword("interface", isBuiltIn: true),
48 const Keyword("operator", isBuiltIn: true), 48 const Keyword("operator", isBuiltIn: true),
49 const Keyword("set", isBuiltIn: true), 49 const Keyword("set", isBuiltIn: true),
50 const Keyword("static", isBuiltIn: true), 50 const Keyword("static", isBuiltIn: true),
51 const Keyword("typedef", isBuiltIn: true), 51 const Keyword("typedef", isBuiltIn: true),
52 52
53 const Keyword("export", isPseudo: true),
53 const Keyword("hide", isPseudo: true), 54 const Keyword("hide", isPseudo: true),
54 const Keyword("import", isPseudo: true), 55 const Keyword("import", isPseudo: true),
55 const Keyword("library", isPseudo: true), 56 const Keyword("library", isPseudo: true),
56 const Keyword("native", isPseudo: true), 57 const Keyword("native", isPseudo: true),
57 const Keyword("on", isPseudo: true), 58 const Keyword("on", isPseudo: true),
58 const Keyword("part", isPseudo: true), 59 const Keyword("part", isPseudo: true),
59 const Keyword("show", isPseudo: true), 60 const Keyword("show", isPseudo: true),
60 const Keyword("source", isPseudo: true) ]; 61 const Keyword("source", isPseudo: true) ];
61 62
62 static const DYNAMIC = const Keyword("Dynamic", isBuiltIn: true); 63 static const DYNAMIC = const Keyword("Dynamic", isBuiltIn: true);
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 final Keyword keyword; 216 final Keyword keyword;
216 217
217 LeafKeywordState(String syntax) : keyword = Keyword.keywords[syntax]; 218 LeafKeywordState(String syntax) : keyword = Keyword.keywords[syntax];
218 219
219 bool isLeaf() => true; 220 bool isLeaf() => true;
220 221
221 KeywordState next(int c) => null; 222 KeywordState next(int c) => null;
222 223
223 String toString() => keyword.syntax; 224 String toString() => keyword.syntax;
224 } 225 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698