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

Unified Diff: frog/leg/compiler.dart

Issue 9699033: Introduce FieldParameterElement. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix typo. Created 8 years, 9 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: frog/leg/compiler.dart
diff --git a/frog/leg/compiler.dart b/frog/leg/compiler.dart
index 5ad972a6278efe19a9690bacaeb3ca169da3c23a..7751b8b997d240d79899e348624a182b5587c12f 100644
--- a/frog/leg/compiler.dart
+++ b/frog/leg/compiler.dart
@@ -268,7 +268,8 @@ class Compiler implements DiagnosticListener {
String codegen(WorkItem work) {
String code;
if (work.element.kind == ElementKind.FIELD
- || work.element.kind == ElementKind.PARAMETER) {
+ || work.element.kind == ElementKind.PARAMETER
+ || work.element.kind == ElementKind.FIELD_PARAMETER) {
constantHandler.compileWorkItem(work);
return null;
} else {

Powered by Google App Engine
This is Rietveld 408576698