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

Unified Diff: runtime/vm/parser.cc

Issue 1311613005: Add ParameterMirror.isInitializingFormal to dart:mirrors Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 | « runtime/vm/parser.h ('k') | sdk/lib/_internal/js_runtime/lib/js_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index dc05474ac7d5f774af4b2d1820f7a8b5c1735c0a..ac00c0e9438c2994d7e61f2e71411ea1b58b7d23 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -861,6 +861,9 @@ RawObject* Parser::ParseFunctionParameters(const Function& func) {
param_descriptor.SetAt(j + kParameterMetadataOffset,
(param[i].metadata == NULL) ? Object::null_instance() :
*(param[i].metadata));
+ param_descriptor.SetAt(j + kParameterIsFieldInitializorOffset,
+ param[i].is_field_initializer ? Bool::True() :
+ Bool::False());
}
return param_descriptor.raw();
} else {
« no previous file with comments | « runtime/vm/parser.h ('k') | sdk/lib/_internal/js_runtime/lib/js_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698