未验证 提交 8f6fd1ac 编写于 作者: P Phodal HUANG

fix: thinkingg in typetype

上级 8f50fa83
......@@ -3,6 +3,7 @@ package call
import (
. "../../language/java"
. "../models"
"fmt"
"github.com/antlr/antlr4/runtime/Go/antlr"
"reflect"
"strings"
......@@ -61,6 +62,9 @@ func (s *JavaCallListener) EnterInterfaceMethodDeclaration(ctx *InterfaceMethodD
name := ctx.IDENTIFIER().GetText()
stopLinePosition := startLinePosition + len(name)
//XXX: find the start position of {, not public
fmt.Println(ctx.TypeTypeOrVoid())
method := &JMethod{name, startLine, startLinePosition, stopLine, stopLinePosition}
methods = append(methods, *method)
......@@ -89,6 +93,10 @@ func (s *JavaCallListener) EnterMethodDeclaration(ctx *MethodDeclarationContext)
name := ctx.IDENTIFIER().GetText()
stopLinePosition := startLinePosition + len(name)
//XXX: find the start position of {, not public
typeType := ctx.TypeTypeOrVoid().GetText()
fmt.Println(typeType)
method := &JMethod{name, startLine, startLinePosition, stopLine, stopLinePosition}
methods = append(methods, *method)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册