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

Unified Diff: pkg/compiler/lib/src/ordered_typeset.dart

Issue 1859343004: dartfmt pkg/compiler (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/old_to_new_api.dart ('k') | pkg/compiler/lib/src/parser/class_element_parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ordered_typeset.dart
diff --git a/pkg/compiler/lib/src/ordered_typeset.dart b/pkg/compiler/lib/src/ordered_typeset.dart
index 1afc0e06f82d46fde5f233ebb96dca5df6846d3b..e3cffb59409fc552b19cac2fae112a7895bd4351 100644
--- a/pkg/compiler/lib/src/ordered_typeset.dart
+++ b/pkg/compiler/lib/src/ordered_typeset.dart
@@ -6,15 +6,10 @@ library ordered_typeset;
import 'common.dart';
import 'dart_types.dart';
-import 'diagnostics/diagnostic_listener.dart' show
- DiagnosticReporter;
-import 'elements/elements.dart' show
- ClassElement;
-import 'util/util.dart' show
- Link,
- LinkBuilder;
-import 'util/util_implementation.dart' show
- LinkEntry;
+import 'diagnostics/diagnostic_listener.dart' show DiagnosticReporter;
+import 'elements/elements.dart' show ClassElement;
+import 'util/util.dart' show Link, LinkBuilder;
+import 'util/util_implementation.dart' show LinkEntry;
/**
* An ordered set of the supertypes of a class. The supertypes of a class are
@@ -39,8 +34,7 @@ class OrderedTypeSet {
final Link<DartType> _supertypes;
OrderedTypeSet.internal(List<Link<DartType>> this._levels,
- Link<DartType> this.types,
- Link<DartType> this._supertypes);
+ Link<DartType> this.types, Link<DartType> this._supertypes);
factory OrderedTypeSet.singleton(DartType type) {
Link<DartType> types =
@@ -56,9 +50,8 @@ class OrderedTypeSet {
OrderedTypeSet extendClass(InterfaceType type) {
assert(invariant(type.element, types.head.treatAsRaw,
message: 'Cannot extend generic class ${types.head} using '
- 'OrderedTypeSet.extendClass'));
- Link<DartType> extendedTypes =
- new LinkEntry<DartType>(type, types);
+ 'OrderedTypeSet.extendClass'));
+ Link<DartType> extendedTypes = new LinkEntry<DartType>(type, types);
List<Link<DartType>> list = new List<Link<DartType>>(levels + 1);
for (int i = 0; i < levels; i++) {
list[i] = _levels[i];
@@ -161,9 +154,7 @@ class OrderedTypeSetBuilder {
: this._objectType = objectType;
OrderedTypeSet createOrderedTypeSet(
- InterfaceType supertype,
- Link<DartType> interfaces) {
-
+ InterfaceType supertype, Link<DartType> interfaces) {
if (_objectType == null) {
// Find `Object` through in hierarchy. This is used for serialization
// where it is assumed that the hierarchy is valid.
@@ -197,7 +188,7 @@ class OrderedTypeSetBuilder {
Link<DartType> supertypes = classElement.allSupertypes;
assert(invariant(cls, supertypes != null,
message: "Supertypes not computed on $classElement "
- "during resolution of $cls"));
+ "during resolution of $cls"));
while (!supertypes.isEmpty) {
DartType supertype = supertypes.head;
add(supertype.substByContext(type));
@@ -227,12 +218,11 @@ class OrderedTypeSetBuilder {
if (existingType == type) return;
if (existingType.element == type.element) {
if (reporter != null) {
- reporter.reportErrorMessage(
- cls,
- MessageKind.MULTI_INHERITANCE,
- {'thisType': cls.thisType,
- 'firstType': existingType,
- 'secondType': type});
+ reporter.reportErrorMessage(cls, MessageKind.MULTI_INHERITANCE, {
+ 'thisType': cls.thisType,
+ 'firstType': existingType,
+ 'secondType': type
+ });
} else {
assert(invariant(cls, false,
message: 'Invalid ordered typeset for $cls'));
« no previous file with comments | « pkg/compiler/lib/src/old_to_new_api.dart ('k') | pkg/compiler/lib/src/parser/class_element_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698