diff --git a/pkg/domain/jclass_node.go b/pkg/domain/jclass_node.go index 0e0be1347f4c9a16381873b9dec819f84d132011..c39793802e214481003eb260d4f5468037cfecde 100644 --- a/pkg/domain/jclass_node.go +++ b/pkg/domain/jclass_node.go @@ -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 } diff --git a/pkg/infrastructure/ast/full/java_full_listener.go b/pkg/infrastructure/ast/full/java_full_listener.go index ce03c124c917dc8b5d74bc1b3fbe43c29a087c39..77d10dfbe0529829e269fdfcda6deba7cfea0f3b 100644 --- a/pkg/infrastructure/ast/full/java_full_listener.go +++ b/pkg/infrastructure/ast/full/java_full_listener.go @@ -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) } diff --git a/trial/pkg/ast/typescript_ident_listener.go b/trial/pkg/ast/typescript_ident_listener.go index be21c0989adb48d352bb237539cfdeb80eced90a..46d22a6504b99d897bc2bfaba42f7c9246517838 100644 --- a/trial/pkg/ast/typescript_ident_listener.go +++ b/trial/pkg/ast/typescript_ident_listener.go @@ -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: "", }