From 63e94038020830d9494ea5f0bc0b7f0631a3c11d Mon Sep 17 00:00:00 2001 From: Aymeric Wibo Date: Mon, 9 Sep 2024 14:45:48 +0200 Subject: [PATCH] test/class: Update with parameter parsing test --- test/corpus/class_declaration.txt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/test/corpus/class_declaration.txt b/test/corpus/class_declaration.txt index 4ded66c..94bc0d9 100644 --- a/test/corpus/class_declaration.txt +++ b/test/corpus/class_declaration.txt @@ -21,6 +21,11 @@ class SingleFunction fn a { print "in single function a" } +# Parameters. + +class WithParameters(x: int, y) { +} + --- (source_file @@ -89,4 +94,28 @@ class SingleFunction fn a { ) ) ) + (statement + (comment) + ) + (statement + (class_declaration + (identifier) + (param_list + (param + (identifier) + (type + (type_name + (identifier + (primitive_type) + ) + ) + ) + ) + (param + (identifier) + ) + ) + (block) + ) + ) )