Skip to content

Commit

Permalink
test/class: Update with parameter parsing test
Browse files Browse the repository at this point in the history
  • Loading branch information
obiwac committed Sep 9, 2024
1 parent 21f83e0 commit 63e9403
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions test/corpus/class_declaration.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ class SingleFunction fn a {
print "in single function a"
}

# Parameters.

class WithParameters(x: int, y) {
}

---

(source_file
Expand Down Expand Up @@ -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)
)
)
)

0 comments on commit 63e9403

Please sign in to comment.