未验证 提交 41b2f1fe 编写于 作者: P Phodal HUANG

fix: fix lambda call issue

上级 57790747
......@@ -115,6 +115,7 @@ func (s *JavaCallListener) EnterMethodCall(ctx *MethodCallContext) {
func (s *JavaCallListener) EnterExpression(ctx *ExpressionContext) {
if ctx.COLONCOLON() != nil {
text := ctx.Expression(0).GetText()
methodName := ctx.IDENTIFIER().GetText()
targetType := parseTargetType(text)
fullType := warpTargetFullType(targetType)
......@@ -124,7 +125,7 @@ func (s *JavaCallListener) EnterExpression(ctx *ExpressionContext) {
stopLine := ctx.GetStop().GetLine()
stopLinePosition := startLinePosition + len(text)
jMethodCall := &JMethodCall{removeTarget(fullType), targetType, text, startLine, startLinePosition, stopLine, stopLinePosition}
jMethodCall := &JMethodCall{removeTarget(fullType), targetType, methodName, startLine, startLinePosition, stopLine, stopLinePosition}
methodCalls = append(methodCalls, *jMethodCall)
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册