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

Unified Diff: runtime/vm/parser.cc

Issue 2907423003: Allow 'void' as a type argument (fixes #28945). (Closed)
Patch Set: work in progress Created 3 years, 7 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/object.cc ('k') | no next file » | 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 7309990bcb0eae5e79b48a8ca6f0442027079bb5..f96c1a3ec17e9fb14636824aff397baba1ee81ab 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -5530,7 +5530,7 @@ void Parser::SkipTypeArguments() {
if (CurrentToken() == Token::kLT) {
do {
ConsumeToken();
- SkipTypeOrFunctionType(false);
+ SkipTypeOrFunctionType(true);
} while (CurrentToken() == Token::kCOMMA);
Token::Kind token = CurrentToken();
if ((token == Token::kGT) || (token == Token::kSHR)) {
@@ -5685,7 +5685,7 @@ RawTypeArguments* Parser::ParseTypeArguments(
AbstractType& type = AbstractType::Handle(Z);
do {
ConsumeToken();
- type = ParseTypeOrFunctionType(false, finalization);
+ type = ParseTypeOrFunctionType(true, finalization);
// Map a malformed type argument to dynamic.
if (type.IsMalformed()) {
type = Type::DynamicType();
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698