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

Unified Diff: pkg/compiler/lib/src/elements/modelx.dart

Issue 2710973002: Revert "Add support for the new function-type syntax." (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/elements/elements.dart ('k') | pkg/compiler/lib/src/elements/resolution_types.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/elements/modelx.dart
diff --git a/pkg/compiler/lib/src/elements/modelx.dart b/pkg/compiler/lib/src/elements/modelx.dart
index bf589e1cbac3e78485af13acaca9a847c56183ee..88eee679ebb33ca6c150cf70d7869bad493f2805 100644
--- a/pkg/compiler/lib/src/elements/modelx.dart
+++ b/pkg/compiler/lib/src/elements/modelx.dart
@@ -1334,7 +1334,7 @@ class TypedefElementX extends ElementX
ResolutionTypedefType computeType(Resolution resolution) {
if (thisTypeCache != null) return thisTypeCache;
Typedef node = parseNode(resolution.parsingContext);
- setThisAndRawTypes(createTypeVariables(node.templateParameters));
+ setThisAndRawTypes(createTypeVariables(node.typeParameters));
ensureResolved(resolution);
return thisTypeCache;
}
@@ -1732,15 +1732,6 @@ class FormalElementX extends ElementX
: this.identifier = identifier,
super(identifier.source, elementKind, enclosingElement);
- FormalElementX.unnamed(ElementKind elementKind,
- FunctionTypedElement enclosingElement,
- this.definitions)
- : this.identifier = null,
- super("<unnamed>", elementKind, enclosingElement);
-
- /// Whether this is an unnamed parameter in a Function type.
- bool get isUnnamed => identifier == null;
-
FunctionTypedElement get functionDeclaration => enclosingElement;
Modifiers get modifiers => definitions.modifiers;
« no previous file with comments | « pkg/compiler/lib/src/elements/elements.dart ('k') | pkg/compiler/lib/src/elements/resolution_types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698