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

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

Issue 2697523002: Add accessor for getting target-specific constructor. (Closed)
Patch Set: Created 3 years, 10 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.loader; 5 library fasta.loader;
6 6
7 import 'dart:async' show 7 import 'dart:async' show
8 Future; 8 Future;
9 9
10 import 'dart:collection' show 10 import 'dart:collection' show
11 Queue; 11 Queue;
12 12
13 import 'ast_kind.dart' show 13 import 'ast_kind.dart' show
14 AstKind; 14 AstKind;
15 15
16 import 'builder/builder.dart' show 16 import 'builder/builder.dart' show
17 Builder,
17 LibraryBuilder; 18 LibraryBuilder;
18 19
19 import 'errors.dart' show 20 import 'errors.dart' show
20 InputError, 21 InputError,
21 firstSourceUri; 22 firstSourceUri;
22 23
23 import 'target_implementation.dart' show 24 import 'target_implementation.dart' show
24 TargetImplementation; 25 TargetImplementation;
25 26
26 import 'ticker.dart' show 27 import 'ticker.dart' show
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 141
141 List<InputError> collectCompileTimeErrors() { 142 List<InputError> collectCompileTimeErrors() {
142 List<InputError> errors = <InputError>[]; 143 List<InputError> errors = <InputError>[];
143 for (LibraryBuilder library in builders.values) { 144 for (LibraryBuilder library in builders.values) {
144 if (library.loader == this) { 145 if (library.loader == this) {
145 errors.addAll(library.compileTimeErrors); 146 errors.addAll(library.compileTimeErrors);
146 } 147 }
147 } 148 }
148 return errors; 149 return errors;
149 } 150 }
151
152 Builder getCompileTimeError() => target.getCompileTimeError(this);
150 } 153 }
151 154
152 String format(double d, int fractionDigits, int width) { 155 String format(double d, int fractionDigits, int width) {
153 return d.toStringAsFixed(fractionDigits).padLeft(width); 156 return d.toStringAsFixed(fractionDigits).padLeft(width);
154 } 157 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/body_builder.dart ('k') | pkg/front_end/lib/src/fasta/target_implementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698