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

Unified Diff: runtime/vm/parser.cc

Issue 24019007: Fix reparsing of function parameters that include type parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 | « no previous file | tests/lib/mirrors/parameter_test.dart » ('j') | tests/lib/mirrors/parameter_test.dart » ('J')
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 5fd5fe097ceb1777d7e6cf3d8b757809d110e5b0..ef62f81b5aa3fac5b2acdec1442dee2a9189ed36 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -775,9 +775,9 @@ RawObject* Parser::ParseFunctionParameters(const Function& func) {
const Script& script = Script::Handle(isolate, func.script());
const Class& owner = Class::Handle(isolate, func.Owner());
ASSERT(!owner.IsNull());
- const Library& lib = Library::Handle(isolate, owner.library());
- Parser parser(script, lib, func.token_pos());
- parser.set_current_class(owner);
+ ParsedFunction* parsed_function = new ParsedFunction(
+ Function::ZoneHandle(func.raw()));
+ Parser parser(script, parsed_function, func.token_pos());
parser.SkipFunctionPreamble();
ParamList params;
parser.ParseFormalParameterList(true, true, &params);
« no previous file with comments | « no previous file | tests/lib/mirrors/parameter_test.dart » ('j') | tests/lib/mirrors/parameter_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698