Skip to content

Commit

Permalink
Rename func
Browse files Browse the repository at this point in the history
  • Loading branch information
DQNEO committed May 25, 2020
1 parent ee33eec commit bd9dfe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -1669,7 +1669,7 @@ func (p *parser) parseFuncSignature() (*Token, []*ExprVariable, []*Gtype) {
return fnameToken, params, rettypes
}

func (p *parser) parseFuncDef() *DeclFunc {
func (p *parser) parseFuncDecl() *DeclFunc {
p.traceIn(__func__)
defer p.traceOut(__func__)
ptok := p.expectKeyword("func")
Expand Down Expand Up @@ -1970,7 +1970,7 @@ func (p *parser) parseTopLevelDecl(nextToken *Token) *TopLevelDecl {
sval := string(nextToken.sval)
switch sval {
case "func":
funcdecl := p.parseFuncDef()
funcdecl := p.parseFuncDecl()
return &TopLevelDecl{funcdecl: funcdecl}
case "var":
vardecl := p.parseVarDecl()
Expand Down

0 comments on commit bd9dfe2

Please sign in to comment.