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

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

Issue 2220993005: Split js_backend into multiple libraries (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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) 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.namer;
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 10 class MinifyNamer extends Namer
11 with 11 with
12 _MinifiedFieldNamer, 12 _MinifiedFieldNamer,
13 _MinifyConstructorBodyNamer, 13 _MinifyConstructorBodyNamer,
14 _MinifiedOneShotInterceptorNamer { 14 _MinifiedOneShotInterceptorNamer {
15 MinifyNamer(Compiler compiler) : super(compiler) { 15 MinifyNamer(Compiler compiler) : super(compiler) {
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 String prefix = 384 String prefix =
385 selector.isGetter ? r"$get" : selector.isSetter ? r"$set" : ""; 385 selector.isGetter ? r"$get" : selector.isSetter ? r"$set" : "";
386 String callSuffix = selector.isCall 386 String callSuffix = selector.isCall
387 ? callSuffixForStructure(selector.callStructure).join() 387 ? callSuffixForStructure(selector.callStructure).join()
388 : ""; 388 : "";
389 String suffix = suffixForGetInterceptor(classes); 389 String suffix = suffixForGetInterceptor(classes);
390 String fullName = "\$intercepted$prefix\$$root$callSuffix\$$suffix"; 390 String fullName = "\$intercepted$prefix\$$root$callSuffix\$$suffix";
391 return _disambiguateInternalGlobal(fullName); 391 return _disambiguateInternalGlobal(fullName);
392 } 392 }
393 } 393 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/js_backend.dart ('k') | pkg/compiler/lib/src/js_backend/namer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698