kotlin-electron/karakum/src/jsMain/kotlin/electron/karakum/nameResolvers/resolveInterfaceArrayFieldName.kt [25:46]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - val typeScriptService = ensureNotNull(context.lookupService(typeScriptServiceKey)) val typeReference = ensureNotNull(typeScriptService.getParent(node)) ensure(isTypeReferenceNode(typeReference)) val typeName = typeReference.typeName ensure(isIdentifier(typeName)) ensure( typeName.text == "Array" || typeName.text == "ReadonlyArray" ) val property = ensureNotNull(typeScriptService.getParent(typeReference)) ensure(isPropertySignature(property)) val propertyNameNode = property.name ensure(isIdentifier(propertyNameNode)) val propertyName = propertyNameNode.text val interfaceNode = ensureNotNull(typeScriptService.getParent(property)) ensure(isInterfaceDeclaration(interfaceNode)) val parentName = interfaceNode.name.text - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - kotlin-node/karakum/src/jsMain/kotlin/node/karakum/nameResolvers/resolveInterfacePropertyItemName.kt [14:35]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - val typeScriptService = ensureNotNull(context.lookupService(typeScriptServiceKey)) val typeReference = ensureNotNull(typeScriptService.getParent(node)) ensure(isTypeReferenceNode(typeReference)) val typeName = typeReference.typeName ensure(isIdentifier(typeName)) ensure( typeName.text == "Array" || typeName.text == "ReadonlyArray" ) val property = ensureNotNull(typeScriptService.getParent(typeReference)) ensure(isPropertySignature(property)) val propertyNameNode = property.name ensure(isIdentifier(propertyNameNode)) val propertyName = propertyNameNode.text val interfaceNode = ensureNotNull(typeScriptService.getParent(property)) ensure(isInterfaceDeclaration(interfaceNode)) val parentName = interfaceNode.name.text - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -