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

Unified Diff: runtime/vm/kernel_binary_flowgraph.cc

Issue 2990783002: Serialize typedef parameters (including function typed ones) to Kernel and use it to resynthesize t… (Closed)
Patch Set: Test for named parameters. Created 3 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 | « pkg/kernel/lib/verifier.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/kernel_binary_flowgraph.cc
diff --git a/runtime/vm/kernel_binary_flowgraph.cc b/runtime/vm/kernel_binary_flowgraph.cc
index 34a20248b9bb9d8047dbf2d32c18c374395226b6..cb33786cc5581da1b412bb3aa3c971d67b7e5896 100644
--- a/runtime/vm/kernel_binary_flowgraph.cc
+++ b/runtime/vm/kernel_binary_flowgraph.cc
@@ -4225,6 +4225,18 @@ void StreamingFlowGraphBuilder::SkipLibraryTypedef() {
SkipStringReference(); // read name index.
ReadUInt(); // read source_uri_index.
SkipTypeParametersList(); // read type parameters.
+ ReadUInt(); // read required parameter count
+
+ intptr_t positional_count = ReadListLength();
+ for (intptr_t i = 0; i < positional_count; i++) {
+ SkipVariableDeclaration();
+ }
+
+ intptr_t named_count = ReadListLength();
+ for (intptr_t i = 0; i < named_count; i++) {
+ SkipVariableDeclaration();
+ }
+
SkipDartType(); // read type.
}
« no previous file with comments | « pkg/kernel/lib/verifier.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698