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

Side by Side Diff: lib/src/codegen/js_names.dart

Issue 1186683005: dart:mirrors (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Address comments Created 5 years, 6 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 library dev_compiler.src.codegen.js_names; 5 library dev_compiler.src.codegen.js_names;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 import 'package:dev_compiler/src/js/js_ast.dart'; 8 import 'package:dev_compiler/src/js/js_ast.dart';
9 9
10 /// Unique instance for temporary variables. Will be renamed consistently 10 /// Unique instance for temporary variables. Will be renamed consistently
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 case "else": 234 case "else":
235 case "export": 235 case "export":
236 case "extends": 236 case "extends":
237 case "finally": 237 case "finally":
238 case "for": 238 case "for":
239 case "function": 239 case "function":
240 case "if": 240 case "if":
241 case "import": 241 case "import":
242 case "in": 242 case "in":
243 case "instanceof": 243 case "instanceof":
244 case "interface":
244 case "let": 245 case "let":
245 case "new": 246 case "new":
246 case "return": 247 case "return":
247 case "static": 248 case "static":
248 case "super": 249 case "super":
249 case "switch": 250 case "switch":
250 case "this": 251 case "this":
251 case "throw": 252 case "throw":
252 case "try": 253 case "try":
253 case "typeof": 254 case "typeof":
(...skipping 14 matching lines...) Expand all
268 /// In particular, "caller" "callee" and "arguments" cannot be used. 269 /// In particular, "caller" "callee" and "arguments" cannot be used.
269 bool invalidStaticFieldName(String name) { 270 bool invalidStaticFieldName(String name) {
270 switch (name) { 271 switch (name) {
271 case "arguments": 272 case "arguments":
272 case "caller": 273 case "caller":
273 case "callee": 274 case "callee":
274 return true; 275 return true;
275 } 276 }
276 return false; 277 return false;
277 } 278 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698