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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/builder.dart

Issue 409473002: A bit of element model cleanup. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 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
Index: sdk/lib/_internal/compiler/implementation/ssa/builder.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
index 460614d382df5632f89f8d3d79ee5643917cde72..73738058179405ce2d2fe0926de7fc67dae9a20b 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
@@ -56,7 +56,7 @@ class SsaBuilderTask extends CompilerTask {
if (!identical(kind, ElementKind.FIELD)) {
FunctionElement function = element;
FunctionSignature signature = function.functionSignature;
- signature.forEachOptionalParameter((Element parameter) {
+ signature.forEachOptionalParameter((ParameterElement parameter) {
// This ensures the default value will be computed.
Constant constant =
backend.constants.getConstantForVariable(parameter);

Powered by Google App Engine
This is Rietveld 408576698