Pretty closing type parameters.
Fixes: 171946195
Test: aidl_unittests
Change-Id: I60fb8b66b7c0f0451c180fd833a99aba97d840eb
diff --git a/parser.h b/parser.h
index db39f61..726922d 100644
--- a/parser.h
+++ b/parser.h
@@ -72,6 +72,15 @@
const std::string& FileName() const { return filename_; }
void* Scanner() const { return scanner_; }
+ // This restricts the grammar to something more reasonable. One alternative
+ // would be to support multiple sets of type specifiers in our AST, but then a
+ // lot of later code would have to deal with this more complicated type. So,
+ // in order to keep the AST simpler, restricting the grammar here.
+ //
+ // Takes ownership of type_args, modifies type.
+ void SetTypeParameters(AidlTypeSpecifier* type,
+ std::vector<std::unique_ptr<AidlTypeSpecifier>>* type_args);
+
void SetPackage(const std::string& package) { package_ = package; }
const std::string& Package() const { return package_; }