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

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

Issue 14907008: Remove support for interface in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 7 years, 7 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 part of scanner; 5 part of scanner;
6 6
7 /** 7 /**
8 * A keyword in the Dart programming language. 8 * A keyword in the Dart programming language.
9 */ 9 */
10 class Keyword extends IterableBase<int> implements SourceString { 10 class Keyword extends IterableBase<int> implements SourceString {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 const Keyword("abstract", isBuiltIn: true), 48 const Keyword("abstract", isBuiltIn: true),
49 const Keyword("as", info: AS_INFO, isBuiltIn: true), 49 const Keyword("as", info: AS_INFO, isBuiltIn: true),
50 const Keyword("dynamic", isBuiltIn: true), 50 const Keyword("dynamic", isBuiltIn: true),
51 const Keyword("export", isBuiltIn: true), 51 const Keyword("export", isBuiltIn: true),
52 const Keyword("external", isBuiltIn: true), 52 const Keyword("external", isBuiltIn: true),
53 const Keyword("factory", isBuiltIn: true), 53 const Keyword("factory", isBuiltIn: true),
54 const Keyword("get", isBuiltIn: true), 54 const Keyword("get", isBuiltIn: true),
55 const Keyword("implements", isBuiltIn: true), 55 const Keyword("implements", isBuiltIn: true),
56 const Keyword("import", isBuiltIn: true), 56 const Keyword("import", isBuiltIn: true),
57 const Keyword("interface", isBuiltIn: true),
58 const Keyword("library", isBuiltIn: true), 57 const Keyword("library", isBuiltIn: true),
59 const Keyword("operator", isBuiltIn: true), 58 const Keyword("operator", isBuiltIn: true),
60 const Keyword("part", isBuiltIn: true), 59 const Keyword("part", isBuiltIn: true),
61 const Keyword("set", isBuiltIn: true), 60 const Keyword("set", isBuiltIn: true),
62 const Keyword("static", isBuiltIn: true), 61 const Keyword("static", isBuiltIn: true),
63 const Keyword("typedef", isBuiltIn: true), 62 const Keyword("typedef", isBuiltIn: true),
64 63
65 const Keyword("hide", isPseudo: true), 64 const Keyword("hide", isPseudo: true),
66 const Keyword("native", isPseudo: true), 65 const Keyword("native", isPseudo: true),
67 const Keyword("of", isPseudo: true), 66 const Keyword("of", isPseudo: true),
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 */ 222 */
224 class LeafKeywordState extends KeywordState { 223 class LeafKeywordState extends KeywordState {
225 LeafKeywordState(String syntax) : super(Keyword.keywords[syntax]); 224 LeafKeywordState(String syntax) : super(Keyword.keywords[syntax]);
226 225
227 bool isLeaf() => true; 226 bool isLeaf() => true;
228 227
229 KeywordState next(int c) => null; 228 KeywordState next(int c) => null;
230 229
231 String toString() => keyword.syntax; 230 String toString() => keyword.syntax;
232 } 231 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698