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

fix: fix error handler

上级 093fbe48
......@@ -152,7 +152,9 @@ func (s *JavaCallListener) EnterMethodDeclaration(ctx *parser.MethodDeclarationC
}
func (s *JavaCallListener) ExitMethodDeclaration(ctx *parser.MethodDeclarationContext) {
methodQueue = methodQueue[0 : len(methodQueue)-1]
if len(methodQueue) > 1 {
methodQueue = methodQueue[0 : len(methodQueue)-1]
}
currentMethod = models.NewJMethod()
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册