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

Side by Side Diff: dart/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart

Issue 24493006: Implement named arguments in InstanceMirror.invoke. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Tweaked test to get a little test coverage Created 7 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 part of js_backend; 5 part of js_backend;
6 6
7 /** 7 /**
8 * Assigns JavaScript identifiers to Dart variables, class-names and members. 8 * Assigns JavaScript identifiers to Dart variables, class-names and members.
9 */ 9 */
10 class Namer implements ClosureNamer { 10 class Namer implements ClosureNamer {
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 } 212 }
213 213
214 final String CURRENT_ISOLATE; 214 final String CURRENT_ISOLATE;
215 String get GLOBAL_OBJECT => CURRENT_ISOLATE; 215 String get GLOBAL_OBJECT => CURRENT_ISOLATE;
216 216
217 final String getterPrefix = r'get$'; 217 final String getterPrefix = r'get$';
218 final String setterPrefix = r'set$'; 218 final String setterPrefix = r'set$';
219 final String metadataField = '@'; 219 final String metadataField = '@';
220 final String callCatchAllName = r'call$catchAll'; 220 final String callCatchAllName = r'call$catchAll';
221 final String reflectableField = r'$reflectable'; 221 final String reflectableField = r'$reflectable';
222 final String defaultValuesField = r'$defaultValues';
223 final String methodsWithOptionalArgumentsField =
224 r'$methodsWithOptionalArguments';
222 225
223 /** 226 /**
224 * Map from top-level or static elements to their unique identifiers provided 227 * Map from top-level or static elements to their unique identifiers provided
225 * by [getName]. 228 * by [getName].
226 * 229 *
227 * Invariant: Keys must be declaration elements. 230 * Invariant: Keys must be declaration elements.
228 */ 231 */
229 final Compiler compiler; 232 final Compiler compiler;
230 final Map<Element, String> globals; 233 final Map<Element, String> globals;
231 final Map<String, LibraryElement> shortPrivateNameOwners; 234 final Map<String, LibraryElement> shortPrivateNameOwners;
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after
1373 if (!first) { 1376 if (!first) {
1374 sb.write('_'); 1377 sb.write('_');
1375 } 1378 }
1376 sb.write('_'); 1379 sb.write('_');
1377 visit(link.head); 1380 visit(link.head);
1378 first = true; 1381 first = true;
1379 } 1382 }
1380 } 1383 }
1381 } 1384 }
1382 } 1385 }
OLDNEW
« no previous file with comments | « dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart ('k') | dart/sdk/lib/_internal/lib/js_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698