mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-09 16:10:00 +08:00
fix(goctl)/new parser (#3834)
Co-authored-by: keson <keson@kesondeMacBook-Pro.local>
This commit is contained in:
@@ -385,6 +385,9 @@ func (p *Parser) parsePathExpr() *ast.PathExpr {
|
||||
}
|
||||
|
||||
values = append(values, p.curTok)
|
||||
if p.peekTokenIs(token.LPAREN, token.Returns, token.AT_DOC, token.AT_HANDLER, token.SEMICOLON, token.RBRACE){
|
||||
break
|
||||
}
|
||||
if p.notExpectPeekTokenGotComment(p.curTokenNode().PeekFirstLeadingComment(), token.COLON, token.IDENT, token.INT) {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user