Implement function-parameter-list and friends in lib/Syntax

Implements the following grammar productions:

- function-parameter-list
- function-parameter

This is mostly reusable for other flavors of function declarations,
such as initializers and whatnot, but those will have separate
top-level syntax nodes.

https://bugs.swift.org/browse/SR-4067
This commit is contained in:
David Farler
2017-02-28 17:27:30 -08:00
parent f4e478e93f
commit cac51bd69b
8 changed files with 882 additions and 183 deletions

View File

@@ -51,6 +51,7 @@ public:
};
class ExprSyntax : public Syntax {
friend class FunctionParameterSyntax;
public:
using DataType = ExprSyntaxData;