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

Unified Diff: sdk/lib/_internal/compiler/implementation/elements/modelx.dart

Issue 12082045: Add optional and named parameters to FunctionType. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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: sdk/lib/_internal/compiler/implementation/elements/modelx.dart
diff --git a/sdk/lib/_internal/compiler/implementation/elements/modelx.dart b/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
index 8fc8369a25a2596974020dcb7afd4a1d37a79759..f226e0b2c6bd30169c9385ef15db1089d9c63e4c 100644
--- a/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
+++ b/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
@@ -1258,10 +1258,12 @@ class SynthesizedConstructorElementX extends FunctionElementX {
Compiler compiler)
: super(enclosing.name, ElementKind.GENERATIVE_CONSTRUCTOR,
Modifiers.EMPTY, enclosing) {
- type = new FunctionType(
+ type = new FunctionType(this,
compiler.types.voidType,
const Link<DartType>(),
- this);
+ const Link<DartType>(),
+ const Link<SourceString>(),
+ const Link<DartType>());
cachedNode = new FunctionExpression(
new Identifier(enclosing.position()),
new NodeList.empty(),

Powered by Google App Engine
This is Rietveld 408576698