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

Side by Side Diff: pkg/front_end/lib/src/fasta/dill/dill_target.dart

Issue 2788913002: Prepare for separate setter scope. (Closed)
Patch Set: Address comments. Created 3 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 fasta.dill_target; 5 library fasta.dill_target;
6 6
7 import 'dart:async' show Future; 7 import 'dart:async' show Future;
8 8
9 import 'package:kernel/ast.dart' show Class; 9 import 'package:kernel/ast.dart' show Class;
10 10
11 import 'dill_loader.dart' show DillLoader; 11 import 'dill_loader.dart' show DillLoader;
12 12
13 import '../errors.dart' show inputError, internalError; 13 import '../errors.dart' show inputError, internalError;
14 14
15 import '../target_implementation.dart' show TargetImplementation; 15 import '../target_implementation.dart' show TargetImplementation;
16 16
17 import '../ticker.dart' show Ticker; 17 import '../ticker.dart' show Ticker;
18 18
19 import '../translate_uri.dart' show TranslateUri; 19 import '../translate_uri.dart' show TranslateUri;
20 20
21 import '../kernel/kernel_builder.dart' show ClassBuilder, KernelClassBuilder; 21 import '../kernel/kernel_builder.dart' show ClassBuilder;
22 22
23 import 'dill_library_builder.dart' show DillLibraryBuilder; 23 import 'dill_library_builder.dart' show DillLibraryBuilder;
24 24
25 class DillTarget extends TargetImplementation { 25 class DillTarget extends TargetImplementation {
26 bool isLoaded = false; 26 bool isLoaded = false;
27 DillLoader loader; 27 DillLoader loader;
28 28
29 DillTarget(Ticker ticker, TranslateUri uriTranslator) 29 DillTarget(Ticker ticker, TranslateUri uriTranslator)
30 : super(ticker, uriTranslator) { 30 : super(ticker, uriTranslator) {
31 loader = new DillLoader(this); 31 loader = new DillLoader(this);
(...skipping 28 matching lines...) Expand all
60 } 60 }
61 61
62 void addDirectSupertype(ClassBuilder cls, Set<ClassBuilder> set) {} 62 void addDirectSupertype(ClassBuilder cls, Set<ClassBuilder> set) {}
63 63
64 List<ClassBuilder> collectAllClasses() { 64 List<ClassBuilder> collectAllClasses() {
65 return null; 65 return null;
66 } 66 }
67 67
68 void breakCycle(ClassBuilder cls) {} 68 void breakCycle(ClassBuilder cls) {}
69 69
70 Class get objectClass { 70 Class get objectClass => loader.coreLibrary["Object"].target;
71 KernelClassBuilder builder = loader.coreLibrary.exports["Object"];
72 return builder.cls;
73 }
74 } 71 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/dill/dill_class_builder.dart ('k') | pkg/front_end/lib/src/fasta/kernel/body_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698