Skip to content

Commit

Permalink
Merge pull request #90 from lmaruvada/method_and_interface
Browse files Browse the repository at this point in the history
Made body optional for method_declaration
  • Loading branch information
Yoann Padioleau authored Oct 11, 2022
2 parents aeb2f33 + 5d13f8c commit 1341814
Show file tree
Hide file tree
Showing 7 changed files with 18,006 additions and 17,394 deletions.
11 changes: 10 additions & 1 deletion corpus/declarations.txt
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ package main

func (self Person) Equals(other Person) bool {}
func (v *Value) ObjxMap(optionalDefault ...(Map)) Map {}
func (p *T1) M1()

--------------------------------------------------------------------------------

Expand Down Expand Up @@ -494,7 +495,15 @@ func (v *Value) ObjxMap(optionalDefault ...(Map)) Map {}
(parenthesized_type
(type_identifier))))
(type_identifier)
(block)))
(block))
(method_declaration
(parameter_list
(parameter_declaration
(identifier)
(pointer_type
(type_identifier))))
(field_identifier)
(parameter_list)))

================================================================================
Type declarations
Expand Down
Loading

0 comments on commit 1341814

Please sign in to comment.