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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart_backend/backend.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/dart_backend/backend.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
index 9c4077ddcd1f4eb3d0b8e06519887c0fd8350a85..9f297992e43f387b0f7d13d08f82ee0319ec3ac9 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
@@ -387,8 +387,11 @@ class DartBackend extends Backend {
SynthesizedConstructorElementX constructor =
new SynthesizedConstructorElementX(classElement);
constructor.type = new FunctionType(
+ constructor,
compiler.types.voidType, const Link<DartType>(),
karlklose 2013/01/29 13:13:29 Could you either put each argument on its own line
Johnni Winther 2013/01/29 13:53:59 Done.
- constructor);
+ const Link<DartType>(),
+ const Link<SourceString>(), const Link<DartType>()
+ );
constructor.cachedNode = new FunctionExpression(
new Send(classNode.name, synthesizedIdentifier),
new NodeList(new StringToken(OPEN_PAREN_INFO, '(', -1),

Powered by Google App Engine
This is Rietveld 408576698