Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 339 Bytes

ii.15-defining-referencing-and-calling-methods.md

File metadata and controls

13 lines (9 loc) · 339 Bytes

II.15 Defining, referencing, and calling methods

Methods can be defined at the global level (outside of any type):

Decl ::= …
| .method MethodHeader '{' MethodBodyItem* '}'

as well as inside a type:

ClassMember ::= …
| .method MethodHeader '{' MethodBodyItem* '}'