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

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

Issue 10697096: Add "external" prefix to methods and constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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 final Keyword BREAK = const Keyword("break"); 9 static final Keyword BREAK = const Keyword("break");
10 static final Keyword CASE = const Keyword("case"); 10 static final Keyword CASE = const Keyword("case");
(...skipping 22 matching lines...) Expand all
33 static final Keyword TRUE = const Keyword("true"); 33 static final Keyword TRUE = const Keyword("true");
34 static final Keyword TRY = const Keyword("try"); 34 static final Keyword TRY = const Keyword("try");
35 static final Keyword VAR = const Keyword("var"); 35 static final Keyword VAR = const Keyword("var");
36 static final Keyword VOID = const Keyword("void"); 36 static final Keyword VOID = const Keyword("void");
37 static final Keyword WHILE = const Keyword("while"); 37 static final Keyword WHILE = const Keyword("while");
38 38
39 // Pseudo keywords: 39 // Pseudo keywords:
40 static final Keyword ABSTRACT = const Keyword("abstract", isPseudo: true); 40 static final Keyword ABSTRACT = const Keyword("abstract", isPseudo: true);
41 static final Keyword AS = const Keyword("as", info: AS_INFO, isPseudo: true); 41 static final Keyword AS = const Keyword("as", info: AS_INFO, isPseudo: true);
42 static final Keyword ASSERT = const Keyword("assert", isPseudo: true); 42 static final Keyword ASSERT = const Keyword("assert", isPseudo: true);
43 static final Keyword EXTERNAL = const Keyword("external", isPseudo: true);
43 static final Keyword FACTORY = const Keyword("factory", isPseudo: true); 44 static final Keyword FACTORY = const Keyword("factory", isPseudo: true);
44 static final Keyword GET = const Keyword("get", isPseudo: true); 45 static final Keyword GET = const Keyword("get", isPseudo: true);
45 static final Keyword IMPLEMENTS = const Keyword("implements", isPseudo: true); 46 static final Keyword IMPLEMENTS = const Keyword("implements", isPseudo: true);
46 static final Keyword IMPORT = const Keyword("import", isPseudo: true); 47 static final Keyword IMPORT = const Keyword("import", isPseudo: true);
47 static final Keyword INTERFACE = const Keyword("interface", isPseudo: true); 48 static final Keyword INTERFACE = const Keyword("interface", isPseudo: true);
48 static final Keyword LIBRARY = const Keyword("library", isPseudo: true); 49 static final Keyword LIBRARY = const Keyword("library", isPseudo: true);
49 static final Keyword NATIVE = const Keyword("native", isPseudo: true); 50 static final Keyword NATIVE = const Keyword("native", isPseudo: true);
50 static final Keyword NEGATE = const Keyword("negate", isPseudo: true); 51 static final Keyword NEGATE = const Keyword("negate", isPseudo: true);
51 static final Keyword OPERATOR = const Keyword("operator", isPseudo: true); 52 static final Keyword OPERATOR = const Keyword("operator", isPseudo: true);
52 static final Keyword SET = const Keyword("set", isPseudo: true); 53 static final Keyword SET = const Keyword("set", isPseudo: true);
(...skipping 27 matching lines...) Expand all
80 THROW, 81 THROW,
81 TRUE, 82 TRUE,
82 TRY, 83 TRY,
83 VAR, 84 VAR,
84 VOID, 85 VOID,
85 WHILE, 86 WHILE,
86 ABSTRACT, 87 ABSTRACT,
87 ASSERT, 88 ASSERT,
88 CLASS, 89 CLASS,
89 EXTENDS, 90 EXTENDS,
91 EXTERNAL,
90 FACTORY, 92 FACTORY,
91 GET, 93 GET,
92 IMPLEMENTS, 94 IMPLEMENTS,
93 IMPORT, 95 IMPORT,
94 INTERFACE, 96 INTERFACE,
95 LIBRARY, 97 LIBRARY,
96 NATIVE, 98 NATIVE,
97 NEGATE, 99 NEGATE,
98 OPERATOR, 100 OPERATOR,
99 SET, 101 SET,
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 final Keyword keyword; 255 final Keyword keyword;
254 256
255 LeafKeywordState(String syntax) : keyword = Keyword.keywords[syntax]; 257 LeafKeywordState(String syntax) : keyword = Keyword.keywords[syntax];
256 258
257 bool isLeaf() => true; 259 bool isLeaf() => true;
258 260
259 KeywordState next(int c) => null; 261 KeywordState next(int c) => null;
260 262
261 String toString() => keyword.syntax; 263 String toString() => keyword.syntax;
262 } 264 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698