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

Side by Side Diff: pkg/compiler/lib/src/js_backend/minify_namer.dart

Issue 1235593002: dart2js: Fix checked mode error in nameForGetOneShotInterceptor. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 MinifyNamer extends Namer with _MinifiedFieldNamer, 10 class MinifyNamer extends Namer with _MinifiedFieldNamer,
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 @override 336 @override
337 jsAst.Name nameForGetOneShotInterceptor(Selector selector, 337 jsAst.Name nameForGetOneShotInterceptor(Selector selector,
338 Iterable<ClassElement> classes) { 338 Iterable<ClassElement> classes) {
339 String root = selector.isOperator 339 String root = selector.isOperator
340 ? operatorNameToIdentifier(selector.name) 340 ? operatorNameToIdentifier(selector.name)
341 : privateName(selector.memberName); 341 : privateName(selector.memberName);
342 String prefix = selector.isGetter 342 String prefix = selector.isGetter
343 ? r"$get" 343 ? r"$get"
344 : selector.isSetter ? r"$set" : ""; 344 : selector.isSetter ? r"$set" : "";
345 String callSuffix = 345 String callSuffix =
346 selector.isCall ? callSuffixForStructure(selector.callStructure) : ""; 346 selector.isCall ? callSuffixForStructure(selector.callStructure).join()
347 : "";
347 String suffix = suffixForGetInterceptor(classes); 348 String suffix = suffixForGetInterceptor(classes);
348 String fullName = "\$intercepted$prefix\$$root$callSuffix\$$suffix"; 349 String fullName = "\$intercepted$prefix\$$root$callSuffix\$$suffix";
349 return _disambiguateInternalGlobal(fullName); 350 return _disambiguateInternalGlobal(fullName);
350 } 351 }
351 } 352 }
352 353
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698