refactor: rename to JField

上级 14775204
......@@ -7,7 +7,7 @@ type JClassNode struct {
Class string
Type string
Path string
Fields []JAppField
Fields []JField
Methods []JMethod
MethodCalls []JMethodCall
Extend string
......@@ -17,7 +17,7 @@ type JClassNode struct {
Imports []JImport
}
type JAppField struct {
type JField struct {
Type string
Value string
}
......
......@@ -14,7 +14,7 @@ var imports []string
var clzs []string
var currentPkg string
var currentClz string
var fields []domain.JAppField
var fields []domain.JField
var methodCalls []domain.JMethodCall
var currentType string
......@@ -241,7 +241,7 @@ func (s *JavaFullListener) EnterFieldDeclaration(ctx *parser.FieldDeclarationCon
typeTypeText := typeCtx.IDENTIFIER(0).GetText()
value := declarator.(*parser.VariableDeclaratorContext).VariableDeclaratorId().(*parser.VariableDeclaratorIdContext).IDENTIFIER().GetText()
mapFields[value] = typeTypeText
fields = append(fields, domain.JAppField{Type: typeTypeText, Value: value})
fields = append(fields, domain.JField{Type: typeTypeText, Value: value})
buildFieldCall(typeTypeText, ctx)
}
......
......@@ -96,7 +96,7 @@ func BuildInterfacePropertySignature(signatureCtx *parser.PropertySignatureConte
classNode.Methods = append(classNode.Methods, method)
} else {
field := &domain.JAppField{
field := &domain.JField{
Type: typeType,
Value: typeValue,
}
......@@ -148,7 +148,7 @@ func handlePropertyMember(elementChild antlr.Tree) {
propertyMemberCtx := elementChild.(*parser.PropertyMemberDeclarationContext)
callSignaturePos := 3
if propertyMemberCtx.PropertyName() != nil {
field := domain.JAppField{
field := domain.JField{
Type: "",
Value: "",
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册