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

Unified Diff: pkg/compiler/lib/src/resolution/typedefs.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/resolution/type_resolver.dart ('k') | pkg/compiler/lib/src/resolution/variables.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/resolution/typedefs.dart
diff --git a/pkg/compiler/lib/src/resolution/typedefs.dart b/pkg/compiler/lib/src/resolution/typedefs.dart
index 87acbd600d6c5331503eef947f3561b082a4474f..ed6f741a9bab98de1161658db18681c15fdbc709 100644
--- a/pkg/compiler/lib/src/resolution/typedefs.dart
+++ b/pkg/compiler/lib/src/resolution/typedefs.dart
@@ -5,36 +5,24 @@
library dart2js.resolution.typedefs;
import '../common.dart';
-import '../compiler.dart' show
- Compiler;
+import '../compiler.dart' show Compiler;
import '../dart_types.dart';
-import '../elements/elements.dart' show
- FunctionSignature,
- TypedefElement,
- TypeVariableElement;
-import '../elements/modelx.dart' show
- ErroneousElementX,
- TypedefElementX;
+import '../elements/elements.dart'
+ show FunctionSignature, TypedefElement, TypeVariableElement;
+import '../elements/modelx.dart' show ErroneousElementX, TypedefElementX;
import '../tree/tree.dart';
-import '../util/util.dart' show
- Link;
-
-import 'class_hierarchy.dart' show
- TypeDefinitionVisitor;
-import 'registry.dart' show
- ResolutionRegistry;
-import 'scope.dart' show
- MethodScope,
- TypeDeclarationScope;
-import 'signatures.dart' show
- SignatureResolver;
+import '../util/util.dart' show Link;
+
+import 'class_hierarchy.dart' show TypeDefinitionVisitor;
+import 'registry.dart' show ResolutionRegistry;
+import 'scope.dart' show MethodScope, TypeDeclarationScope;
+import 'signatures.dart' show SignatureResolver;
class TypedefResolverVisitor extends TypeDefinitionVisitor {
TypedefElementX get element => enclosingElement;
- TypedefResolverVisitor(Compiler compiler,
- TypedefElement typedefElement,
- ResolutionRegistry registry)
+ TypedefResolverVisitor(Compiler compiler, TypedefElement typedefElement,
+ ResolutionRegistry registry)
: super(compiler, typedefElement, registry);
visitTypedef(Typedef node) {
@@ -88,33 +76,31 @@ class TypedefCyclicVisitor extends BaseDartTypeVisitor {
hasCyclicReference = true;
if (seenTypedefsCount == 1) {
// Direct cyclicity.
- reporter.reportErrorMessage(
- element,
- MessageKind.CYCLIC_TYPEDEF,
+ reporter.reportErrorMessage(element, MessageKind.CYCLIC_TYPEDEF,
{'typedefName': element.name});
} else if (seenTypedefsCount == 2) {
// Cyclicity through one other typedef.
- reporter.reportErrorMessage(
- element,
- MessageKind.CYCLIC_TYPEDEF_ONE,
- {'typedefName': element.name,
- 'otherTypedefName': seenTypedefs.head.name});
+ reporter.reportErrorMessage(element, MessageKind.CYCLIC_TYPEDEF_ONE, {
+ 'typedefName': element.name,
+ 'otherTypedefName': seenTypedefs.head.name
+ });
} else {
// Cyclicity through more than one other typedef.
for (TypedefElement cycle in seenTypedefs) {
if (!identical(typedefElement, cycle)) {
reporter.reportErrorMessage(
- element,
- MessageKind.CYCLIC_TYPEDEF_ONE,
- {'typedefName': element.name,
- 'otherTypedefName': cycle.name});
+ element, MessageKind.CYCLIC_TYPEDEF_ONE, {
+ 'typedefName': element.name,
+ 'otherTypedefName': cycle.name
+ });
}
}
}
ErroneousElementX erroneousElement = new ErroneousElementX(
- MessageKind.CYCLIC_TYPEDEF,
- {'typedefName': element.name},
- element.name, element);
+ MessageKind.CYCLIC_TYPEDEF,
+ {'typedefName': element.name},
+ element.name,
+ element);
element.aliasCache =
new MalformedType(erroneousElement, typedefElement.aliasCache);
element.hasBeenCheckedForCycles = true;
« no previous file with comments | « pkg/compiler/lib/src/resolution/type_resolver.dart ('k') | pkg/compiler/lib/src/resolution/variables.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698