未验证 提交 cb510fd9 编写于 作者: P Phodal Huang

fix: fix lost parameter issue

上级 ba200ffe
......@@ -118,6 +118,7 @@ func (s *JavaCallListener) EnterMethodDeclaration(ctx *parser.MethodDeclarationC
if ctx.FormalParameters() != nil {
if ctx.FormalParameters().GetChild(0) == nil || ctx.FormalParameters().GetText() == "()" || ctx.FormalParameters().GetChild(1) == nil {
currentMethod = *method
return
}
......@@ -137,12 +138,10 @@ func (s *JavaCallListener) EnterMethodDeclaration(ctx *parser.MethodDeclarationC
}
currentMethod = *method
//methods = append(methods, *method)
}
func (s *JavaCallListener) ExitMethodDeclaration(ctx *parser.MethodDeclarationContext) {
methods = append(methods, currentMethod)
//fmt.Println(currentMethod)
currentMethod = models.NewJMethod()
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册