kotlin-node/karakum/src/jsMain/kotlin/node/karakum/nameResolvers/resolveClassPropertyItemPropertyName.kt [16:38]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - val typeScriptService = ensureNotNull(context.lookupService(typeScriptServiceKey)) val subProperty = ensureNotNull(typeScriptService.getParent(node)) ensure(isPropertySignature(subProperty)) val subPropertyNameNode = subProperty.name ensure(isIdentifier(subPropertyNameNode)) val subPropertyName = subPropertyNameNode.text val typeLiteral = ensureNotNull(typeScriptService.getParent(subProperty)) ensure(isTypeLiteralNode(typeLiteral)) val typeReference = ensureNotNull(typeScriptService.getParent(typeLiteral)) ensure(isTypeReferenceNode(typeReference)) val typeName = typeReference.typeName ensure(isIdentifier(typeName)) ensure( typeName.text == "Array" || typeName.text == "ReadonlyArray" ) val property = ensureNotNull(typeScriptService.getParent(typeReference)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - kotlin-node/karakum/src/jsMain/kotlin/node/karakum/nameResolvers/resolveInterfacePropertyItemPropertyName.kt [15:37]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - val typeScriptService = ensureNotNull(context.lookupService(typeScriptServiceKey)) val subProperty = ensureNotNull(typeScriptService.getParent(node)) ensure(isPropertySignature(subProperty)) val subPropertyNameNode = subProperty.name ensure(isIdentifier(subPropertyNameNode)) val subPropertyName = subPropertyNameNode.text val typeLiteral = ensureNotNull(typeScriptService.getParent(subProperty)) ensure(isTypeLiteralNode(typeLiteral)) val typeReference = ensureNotNull(typeScriptService.getParent(typeLiteral)) ensure(isTypeReferenceNode(typeReference)) val typeName = typeReference.typeName ensure(isIdentifier(typeName)) ensure( typeName.text == "Array" || typeName.text == "ReadonlyArray" ) val property = ensureNotNull(typeScriptService.getParent(typeReference)) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -