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

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

Issue 854543003: dart2js: remove spurious semicolon. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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
« 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) 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 part of dart2js.js_emitter; 5 part of dart2js.js_emitter;
6 6
7 7
8 class OldEmitter implements Emitter { 8 class OldEmitter implements Emitter {
9 final Compiler compiler; 9 final Compiler compiler;
10 final CodeEmitterTask task; 10 final CodeEmitterTask task;
(...skipping 1455 matching lines...) Expand 10 before | Expand all | Expand 10 after
1466 1466
1467 emitStaticFunctions(task.outputStaticLists[mainOutputUnit]); 1467 emitStaticFunctions(task.outputStaticLists[mainOutputUnit]);
1468 1468
1469 List<ClassElement> classes = task.outputClassLists[mainOutputUnit]; 1469 List<ClassElement> classes = task.outputClassLists[mainOutputUnit];
1470 if (classes != null) { 1470 if (classes != null) {
1471 for (ClassElement element in classes) { 1471 for (ClassElement element in classes) {
1472 generateClass(element, getElementDescriptor(element)); 1472 generateClass(element, getElementDescriptor(element));
1473 } 1473 }
1474 } 1474 }
1475 1475
1476 if (compiler.enableMinification) {
1477 mainOutput.add(';');
1478 }
1479
1480 Iterable<LibraryElement> libraries = 1476 Iterable<LibraryElement> libraries =
1481 task.outputLibraryLists[mainOutputUnit]; 1477 task.outputLibraryLists[mainOutputUnit];
1482 if (libraries == null) libraries = []; 1478 if (libraries == null) libraries = [];
1483 emitLibraries(libraries); 1479 emitLibraries(libraries);
1484 emitTypedefs(); 1480 emitTypedefs();
1485 emitMangledNames(mainOutput); 1481 emitMangledNames(mainOutput);
1486 1482
1487 checkEverythingEmitted(elementDescriptors.keys); 1483 checkEverythingEmitted(elementDescriptors.keys);
1488 1484
1489 CodeBuffer libraryBuffer = new CodeBuffer(); 1485 CodeBuffer libraryBuffer = new CodeBuffer();
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
2097 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) { 2093 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) {
2098 if (element.isInstanceMember) { 2094 if (element.isInstanceMember) {
2099 cachedClassBuilders.remove(element.enclosingClass); 2095 cachedClassBuilders.remove(element.enclosingClass);
2100 2096
2101 nativeEmitter.cachedBuilders.remove(element.enclosingClass); 2097 nativeEmitter.cachedBuilders.remove(element.enclosingClass);
2102 2098
2103 } 2099 }
2104 } 2100 }
2105 } 2101 }
2106 } 2102 }
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