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

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

Issue 2893563003: Rename buildOutline() and separate 'build' and 'writeProgram()'. (Closed)
Patch Set: Created 3 years, 7 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
(...skipping 16 matching lines...) Expand all
27 27
28 void addSourceInformation( 28 void addSourceInformation(
29 Uri uri, List<int> lineStarts, List<int> sourceCode) { 29 Uri uri, List<int> lineStarts, List<int> sourceCode) {
30 internalError("Unsupported operation."); 30 internalError("Unsupported operation.");
31 } 31 }
32 32
33 void read(Uri uri) { 33 void read(Uri uri) {
34 internalError("Unsupported operation."); 34 internalError("Unsupported operation.");
35 } 35 }
36 36
37 Future<Null> writeProgram(Uri uri) { 37 @override
38 Future<Null> buildProgram() {
38 return internalError("not implemented."); 39 return internalError("not implemented.");
39 } 40 }
40 41
41 @override 42 @override
42 Future<Null> computeOutline() async { 43 Future<Null> buildOutlines() async {
43 if (loader.libraries.isEmpty) return null; 44 if (loader.libraries.isNotEmpty) {
44 await loader.buildOutlines(); 45 await loader.buildOutlines();
46 }
45 isLoaded = true; 47 isLoaded = true;
46 return null;
47 } 48 }
48 49
49 DillLibraryBuilder createLibraryBuilder(Uri uri, Uri fileUri) { 50 DillLibraryBuilder createLibraryBuilder(Uri uri, Uri fileUri) {
50 return new DillLibraryBuilder(uri, loader); 51 return new DillLibraryBuilder(uri, loader);
51 } 52 }
52 53
53 void addDirectSupertype(ClassBuilder cls, Set<ClassBuilder> set) {} 54 void addDirectSupertype(ClassBuilder cls, Set<ClassBuilder> set) {}
54 55
55 List<ClassBuilder> collectAllClasses() { 56 List<ClassBuilder> collectAllClasses() {
56 return null; 57 return null;
57 } 58 }
58 59
59 void breakCycle(ClassBuilder cls) {} 60 void breakCycle(ClassBuilder cls) {}
60 61
61 Class get objectClass => loader.coreLibrary["Object"].target; 62 Class get objectClass => loader.coreLibrary["Object"].target;
62 } 63 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/compile_platform.dart ('k') | pkg/front_end/lib/src/fasta/fasta.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698