@@ -176,7 +176,7 @@ class TypeScriptFullIdentListener(node: TSIdentify) : TypeScriptAstListener() {
176176 val heritageCtx = ctx.classHeritage()
177177 if (heritageCtx.classImplementsClause() != null ) {
178178 val typeList = heritageCtx.classImplementsClause().classOrInterfaceTypeList()
179- // currentNode.Implements = buildImplements(typeList)
179+ currentNode.Implements = buildImplements(typeList)
180180 }
181181
182182 if (heritageCtx.classExtendsClause() != null ) {
@@ -323,28 +323,30 @@ class TypeScriptFullIdentListener(node: TSIdentify) : TypeScriptAstListener() {
323323 val typeType = buildTypeAnnotation(annotation)
324324 val typeValue = signCtx.propertyName().text
325325
326- val isArrowFunc = annotation.typeRef() != null
327- if (isArrowFunc) {
328- val codeFunction = CodeFunction (
329- Name = typeValue
330- )
331- val param = CodeProperty (
332- TypeValue = " any" , TypeType = typeType
333- )
334326
335- val returnType = CodeProperty (
336- TypeType = annotation.typeRef().text, TypeValue = " "
337- )
327+ val codeField = CodeField (TypeType = typeType, TypeValue = typeValue)
328+ currentNode.Fields + = codeField
338329
339- codeFunction.Parameters + = param
340- codeFunction.MultipleReturns + = returnType
341-
342- codeFunction.FilePath = filePath
343- currentNode.Functions + = codeFunction
344- } else {
345- val codeField = CodeField (TypeType = typeType, TypeValue = typeValue)
346- currentNode.Fields + = codeField
347- }
330+ // val isArrowFunc = annotation.typeRef() != null
331+ // if (isArrowFunc) {
332+ // val codeFunction = CodeFunction(
333+ // Name = typeValue
334+ // )
335+ // val param = CodeProperty(
336+ // TypeValue = "any", TypeType = typeType
337+ // )
338+ //
339+ // val returnType = CodeProperty(
340+ // TypeType = annotation.typeRef().text, TypeValue = ""
341+ // )
342+ //
343+ // codeFunction.Parameters += param
344+ // codeFunction.MultipleReturns += returnType
345+ //
346+ // codeFunction.FilePath = filePath
347+ // currentNode.Functions += codeFunction
348+ // } else {
349+ // }
348350 }
349351
350352 override fun enterFromBlock (ctx : TypeScriptParser .FromBlockContext ? ) {
@@ -757,13 +759,13 @@ class TypeScriptFullIdentListener(node: TSIdentify) : TypeScriptAstListener() {
757759
758760 CodeProperty (TypeType = " key" , TypeValue = propText, ObjectValue = arrayOf(value))
759761 }
760- //
761- // is TypeScriptParser.PropertyShorthandContext -> {
762- // val short = property.text
763- // val value = CodeProperty(TypeType = "value", TypeValue = short)
764- //
765- // CodeProperty(TypeType = "key", TypeValue = short, ObjectValue = arrayOf(value))
766- // }
762+
763+ is TypeScriptParser .PropertyShorthandContext -> {
764+ val short = property.text
765+ val value = CodeProperty (TypeType = " value" , TypeValue = short)
766+
767+ CodeProperty (TypeType = " key" , TypeValue = short, ObjectValue = arrayOf(value))
768+ }
767769
768770 else -> {
769771 null
@@ -950,7 +952,6 @@ class TypeScriptFullIdentListener(node: TSIdentify) : TypeScriptAstListener() {
950952// }
951953
952954
953-
954955 fun getNodeInfo (): CodeContainer {
955956 for (entry in nodeMap) {
956957 codeContainer.DataStructures + = entry.value
0 commit comments