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

fix: add path to dpes info

上级 42204985
......@@ -35,6 +35,7 @@ func (j *JavaCallApp) AnalysisPath(codeDir string) []JClassNode {
antlr.NewParseTreeWalker().Walk(listener, context)
nodeInfo = listener.getNodeInfo()
nodeInfo.Path = file
nodeInfos = append(nodeInfos, *nodeInfo)
}
......
......@@ -31,7 +31,7 @@ type JavaCallListener struct {
}
func (s *JavaCallListener) getNodeInfo() *JClassNode {
return &JClassNode{currentPkg, currentClz, currentType, methods, methodCalls}
return &JClassNode{currentPkg, currentClz, currentType, "", methods, methodCalls}
}
func (s *JavaCallListener) EnterPackageDeclaration(ctx *PackageDeclarationContext) {
......
......@@ -4,6 +4,7 @@ type JClassNode struct {
Package string
Class string
Type string
Path string
Methods []JMethod
MethodCalls []JMethodCall
}
......@@ -16,7 +17,7 @@ type JsonIdentifier struct {
}
func NewClassNode() *JClassNode {
return &JClassNode{"", "", "", nil, nil}
return &JClassNode{"", "", "", "", nil, nil}
}
func NewJsonIdentifier() *JsonIdentifier {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册