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

Unified Diff: lib/compiler/implementation/universe.dart

Issue 10825140: Add check for duplicate field initialization (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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 | « no previous file | runtime/vm/parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/universe.dart
===================================================================
--- lib/compiler/implementation/universe.dart (revision 10144)
+++ lib/compiler/implementation/universe.dart (working copy)
@@ -86,11 +86,13 @@
// The numbers of arguments of the selector. Includes named arguments.
final int argumentCount;
final SelectorKind kind;
- final List<SourceString> namedArguments = const <SourceString>[];
- final List<SourceString> orderedNamedArguments = const <SourceString>[];
+ final List<SourceString> namedArguments;
+ final List<SourceString> orderedNamedArguments;
// The const constructor.
- const Selector.constant(this.kind, this.argumentCount);
+ const Selector.constant(this.kind, this.argumentCount)
+ : this.namedArguments = const <SourceString>[],
+ this.orderedNamedArguments = const <SourceString>[];
Selector(
this.kind,
« no previous file with comments | « no previous file | runtime/vm/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698