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

Side by Side Diff: pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart

Issue 2301953003: Rerun formatter on dartjs except kernel and shared_messages (Closed)
Patch Set: Created 4 years, 3 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 dart2js.js_emitter.full_emitter; 5 library dart2js.js_emitter.full_emitter;
6 6
7 import 'dart:collection' show HashMap; 7 import 'dart:collection' show HashMap;
8 import 'dart:convert'; 8 import 'dart:convert';
9 9
10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; 10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames;
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after
1099 LibraryElement library, Fragment fragment) { 1099 LibraryElement library, Fragment fragment) {
1100 var uri = ""; 1100 var uri = "";
1101 if (!compiler.options.enableMinification || backend.mustPreserveUris) { 1101 if (!compiler.options.enableMinification || backend.mustPreserveUris) {
1102 uri = library.canonicalUri; 1102 uri = library.canonicalUri;
1103 if (uri.scheme == 'file' && compiler.options.outputUri != null) { 1103 if (uri.scheme == 'file' && compiler.options.outputUri != null) {
1104 uri = 1104 uri =
1105 relativize(compiler.options.outputUri, library.canonicalUri, false); 1105 relativize(compiler.options.outputUri, library.canonicalUri, false);
1106 } 1106 }
1107 } 1107 }
1108 1108
1109 String libraryName = (!compiler.options.enableMinification || 1109 String libraryName =
1110 backend.mustRetainLibraryNames) ? library.libraryName : ""; 1110 (!compiler.options.enableMinification || backend.mustRetainLibraryNames)
1111 ? library.libraryName
1112 : "";
1111 1113
1112 jsAst.Fun metadata = task.metadataCollector.buildMetadataFunction(library); 1114 jsAst.Fun metadata = task.metadataCollector.buildMetadataFunction(library);
1113 1115
1114 ClassBuilder descriptor = elementDescriptors[fragment][library]; 1116 ClassBuilder descriptor = elementDescriptors[fragment][library];
1115 1117
1116 jsAst.ObjectInitializer initializer; 1118 jsAst.ObjectInitializer initializer;
1117 if (descriptor == null) { 1119 if (descriptor == null) {
1118 // Nothing of the library was emitted. 1120 // Nothing of the library was emitted.
1119 // TODO(floitsch): this should not happen. We currently have an example 1121 // TODO(floitsch): this should not happen. We currently have an example
1120 // with language/prefix6_negative_test.dart where we have an instance 1122 // with language/prefix6_negative_test.dart where we have an instance
(...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after
2150 if (cachedElements.isEmpty) return; 2152 if (cachedElements.isEmpty) return;
2151 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) { 2153 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) {
2152 if (element.isInstanceMember) { 2154 if (element.isInstanceMember) {
2153 cachedClassBuilders.remove(element.enclosingClass); 2155 cachedClassBuilders.remove(element.enclosingClass);
2154 2156
2155 nativeEmitter.cachedBuilders.remove(element.enclosingClass); 2157 nativeEmitter.cachedBuilders.remove(element.enclosingClass);
2156 } 2158 }
2157 } 2159 }
2158 } 2160 }
2159 } 2161 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/constant_emitter.dart ('k') | pkg/compiler/lib/src/js_emitter/full_emitter/nsm_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698