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

Unified Diff: pkg/front_end/lib/src/fasta/builder/prefix_builder.dart

Issue 2718113003: Run dartfmt on pkg/front_end/lib. (Closed)
Patch Set: Rerun after merging. 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 side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/lib/src/fasta/builder/prefix_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/builder/prefix_builder.dart b/pkg/front_end/lib/src/fasta/builder/prefix_builder.dart
index 58abbc637470930d9f5ecca6a3f6cf3af5927269..fc9cafdd52fbc04ba8b3c614db5874a84a6919f1 100644
--- a/pkg/front_end/lib/src/fasta/builder/prefix_builder.dart
+++ b/pkg/front_end/lib/src/fasta/builder/prefix_builder.dart
@@ -4,22 +4,15 @@
library fasta.prefix_builder;
-import 'builder.dart' show
- Builder,
- LibraryBuilder,
- MemberBuilder;
+import 'builder.dart' show Builder, LibraryBuilder, MemberBuilder;
-import '../messages.dart' show
- warning;
+import '../messages.dart' show warning;
-import 'package:kernel/ast.dart' show
- Member;
+import 'package:kernel/ast.dart' show Member;
-import '../dill/dill_member_builder.dart' show
- DillMemberBuilder;
+import '../dill/dill_member_builder.dart' show DillMemberBuilder;
-import '../errors.dart' show
- internalError;
+import '../errors.dart' show internalError;
class PrefixBuilder extends Builder {
final String name;
@@ -29,14 +22,15 @@ class PrefixBuilder extends Builder {
final LibraryBuilder parent;
PrefixBuilder(this.name, this.exports, LibraryBuilder parent, int charOffset)
- : parent = parent, super(parent, charOffset, parent.fileUri);
+ : parent = parent,
+ super(parent, charOffset, parent.fileUri);
Member findTopLevelMember(String name) {
// TODO(ahe): Move this to KernelPrefixBuilder.
Builder builder = exports[name];
if (builder == null) {
- warning(parent.fileUri, -1,
- "'${this.name}' has no member named '$name'.");
+ warning(
+ parent.fileUri, -1, "'${this.name}' has no member named '$name'.");
}
if (builder is DillMemberBuilder) {
return builder.member.isInstanceMember
@@ -49,8 +43,8 @@ class PrefixBuilder extends Builder {
}
}
- Builder combineAmbiguousImport(String name, Builder other,
- LibraryBuilder library) {
+ Builder combineAmbiguousImport(
+ String name, Builder other, LibraryBuilder library) {
if (other is PrefixBuilder) {
/// Handles the case where the same prefix is used for different imports.
other.exports.forEach((String name, Builder member) {

Powered by Google App Engine
This is Rietveld 408576698