[SyntaxParse] Parse generic parameter clause and generic where clause

This commit is contained in:
Rintaro Ishizaki
2019-09-18 10:40:46 -07:00
parent b09f87594a
commit f919b2ddd8
33 changed files with 634 additions and 364 deletions

View File

@@ -29,7 +29,7 @@ bool ParsedSyntaxRecorder::formExactLayoutFor(syntax::SyntaxKind Kind,
MutableArrayRef<ParsedRawSyntaxNode> Elements,
function_ref<void(syntax::SyntaxKind, MutableArrayRef<ParsedRawSyntaxNode>)> receiver) {
switch (Kind) {
% for node in SYNTAX_NODES:
% for node in SYNTAX_NODES + SILONLY_NODES:
case SyntaxKind::${node.syntax_kind}: {
% if node.children:
% child_count = len(node.children)
@@ -77,7 +77,7 @@ bool ParsedSyntaxRecorder::formExactLayoutFor(syntax::SyntaxKind Kind,
}
}
% for node in SYNTAX_NODES:
% for node in SYNTAX_NODES + SILONLY_NODES:
% if node.children:
% child_params = []
% child_move_args = []