MCPcopy Create free account
hub / github.com/nsf/gocode / parse_func_body

Method parse_func_body

package_text.go:570–580  ·  view source on GitHub ↗

FuncBody = "{" ... "}" .

()

Source from the content-addressed store, hash-verified

568
569// FuncBody = "{" ... "}" .
570func (p *gc_parser) parse_func_body() {
571 p.expect('{')
572 for i := 1; i > 0; p.next() {
573 switch p.tok {
574 case '{':
575 i++
576 case '}':
577 i--
578 }
579 }
580}
581
582// FuncDecl = "func" ExportedName Signature [ FuncBody ] .
583func (p *gc_parser) parse_func_decl() (string, *ast.FuncDecl) {

Callers 2

parse_func_declMethod · 0.95
parse_method_declMethod · 0.95

Calls 2

expectMethod · 0.95
nextMethod · 0.95

Tested by

no test coverage detected