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

Side by Side Diff: pkg/compiler/lib/src/dart_backend/backend.dart

Issue 1884793002: dart2js: remove references to compiler in ResolvedUriTranslator (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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) 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 part of dart_backend; 5 part of dart_backend;
6 6
7 // TODO(ahe): This class is simply wrong. This backend should use 7 // TODO(ahe): This class is simply wrong. This backend should use
8 // elements when it can, not AST nodes. Perhaps a [Map<Element, 8 // elements when it can, not AST nodes. Perhaps a [Map<Element,
9 // TreeElements>] is what is needed. 9 // TreeElements>] is what is needed.
10 class ElementAst { 10 class ElementAst {
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 if (element.isClass) { 229 if (element.isClass) {
230 ClassElement classElement = element; 230 ClassElement classElement = element;
231 classElement.ensureResolved(resolution); 231 classElement.ensureResolved(resolution);
232 } 232 }
233 }); 233 });
234 } 234 }
235 }); 235 });
236 if (useMirrorHelperLibrary && 236 if (useMirrorHelperLibrary &&
237 loadedLibraries.containsLibrary(Uris.dart_mirrors)) { 237 loadedLibraries.containsLibrary(Uris.dart_mirrors)) {
238 return compiler.libraryLoader 238 return compiler.libraryLoader
239 .loadLibrary(compiler.translateResolvedUri( 239 .loadLibrary(compiler.resolvedUriTranslator.translate(
240 loadedLibraries.getLibrary(Uris.dart_mirrors), 240 loadedLibraries.getLibrary(Uris.dart_mirrors),
241 MirrorRenamerImpl.DART_MIRROR_HELPER, 241 MirrorRenamerImpl.DART_MIRROR_HELPER,
242 null)) 242 null))
243 .then((LibraryElement library) { 243 .then((LibraryElement library) {
244 mirrorRenamer = new MirrorRenamerImpl(compiler, this, library); 244 mirrorRenamer = new MirrorRenamerImpl(compiler, this, library);
245 }); 245 });
246 } 246 }
247 return new Future.value(); 247 return new Future.value();
248 } 248 }
249 249
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 } 531 }
532 532
533 // TODO(johnniwinther): Remove this when values are computed from the 533 // TODO(johnniwinther): Remove this when values are computed from the
534 // expressions. 534 // expressions.
535 @override 535 @override
536 void copyConstantValues(DartConstantTask task) { 536 void copyConstantValues(DartConstantTask task) {
537 constantCompiler.constantValueMap 537 constantCompiler.constantValueMap
538 .addAll(task.constantCompiler.constantValueMap); 538 .addAll(task.constantCompiler.constantValueMap);
539 } 539 }
540 } 540 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698