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

Side by Side Diff: dart/lib/compiler/implementation/dart_backend/backend.dart

Issue 10876008: Remove most superfluous getter arguments from dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 class DartBackend extends Backend { 5 class DartBackend extends Backend {
6 final List<CompilerTask> tasks; 6 final List<CompilerTask> tasks;
7 7
8 Map<Element, TreeElements> get resolvedElements() => 8 Map<Element, TreeElements> get resolvedElements =>
9 compiler.enqueuer.resolution.resolvedElements; 9 compiler.enqueuer.resolution.resolvedElements;
10 10
11 DartBackend(Compiler compiler, [bool validateUnparse = false]) 11 DartBackend(Compiler compiler, [bool validateUnparse = false])
12 : tasks = <CompilerTask>[], 12 : tasks = <CompilerTask>[],
13 super(compiler); 13 super(compiler);
14 14
15 void enqueueHelpers(Enqueuer world) { } 15 void enqueueHelpers(Enqueuer world) { }
16 void codegen(WorkItem work) { } 16 void codegen(WorkItem work) { }
17 void processNativeClasses(Enqueuer world, 17 void processNativeClasses(Enqueuer world,
18 Collection<LibraryElement> libraries) { } 18 Collection<LibraryElement> libraries) { }
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 List<Element> sortElements(Collection<Element> elements) { 192 List<Element> sortElements(Collection<Element> elements) {
193 compareElements(e0, e1) { 193 compareElements(e0, e1) {
194 int result = compareBy((e) => e.getLibrary().uri.toString())(e0, e1); 194 int result = compareBy((e) => e.getLibrary().uri.toString())(e0, e1);
195 if (result != 0) return result; 195 if (result != 0) return result;
196 return compareBy((e) => e.position().charOffset)(e0, e1); 196 return compareBy((e) => e.position().charOffset)(e0, e1);
197 } 197 }
198 198
199 return sorted(elements, compareElements); 199 return sorted(elements, compareElements);
200 } 200 }
OLDNEW
« no previous file with comments | « dart/lib/compiler/implementation/compiler.dart ('k') | dart/lib/compiler/implementation/dart_backend/dart_backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698