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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart

Issue 14168003: Implement implicit constructors in mixin applications. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 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
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 830fddf27d7be635f11c09feab8da0654a7710cd..2c5e9fa6c6d5b5b2a796e44ac7ac4823c40e1768 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
@@ -280,7 +280,9 @@ class DartBackend extends Backend {
// field names used as named optionals into [fixedMemberNames].
for (final element in resolvedElements.keys) {
if (!element.isConstructor()) continue;
- for (final optional in element.functionSignature.optionalParameters) {
+ Link<Element> optionalParameters =
+ element.functionSignature.optionalParameters;
+ for (final optional in optionalParameters) {
if (optional.kind != ElementKind.FIELD_PARAMETER) continue;
fixedMemberNames.add(optional.name.slowToString());
}

Powered by Google App Engine
This is Rietveld 408576698