(isMethod bool, line int)
| 531 | } |
| 532 | |
| 533 | func (p *parser) body(isMethod bool, line int) exprDesc { |
| 534 | p.function.OpenFunction(line) |
| 535 | p.checkNext('(') |
| 536 | if isMethod { |
| 537 | p.function.MakeLocalVariable("self") |
| 538 | p.function.AdjustLocalVariables(1) |
| 539 | } |
| 540 | p.parameterList() |
| 541 | p.checkNext(')') |
| 542 | p.statementList() |
| 543 | p.function.f.lastLineDefined = p.lineNumber |
| 544 | p.checkMatch(tkEnd, tkFunction, line) |
| 545 | return p.function.CloseFunction() |
| 546 | } |
| 547 | |
| 548 | func (p *parser) functionName() (e exprDesc, isMethod bool) { |
| 549 | for e = p.singleVariable(); p.t == '.'; e = p.fieldSelector(e) { |
no test coverage detected