kotlin-node/karakum/src/jsMain/kotlin/node/karakum/nameResolvers/resolveInterfacePropertyIntersectionPropertyName.kt [14:41]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - fun resolveInterfacePropertyIntersectionPropertyName(node: Node, context: Context) = nullable { 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 intersection = ensureNotNull(typeScriptService.getParent(typeLiteral)) ensure(isIntersectionTypeNode(intersection)) val property = ensureNotNull(typeScriptService.getParent(intersection)) 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 "${parentName.replaceFirstChar { it.titlecase() }}${propertyName.replaceFirstChar { it.titlecase() }}${subPropertyName.replaceFirstChar { it.titlecase() }}" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - kotlin-typescript/karakum/src/jsMain/kotlin/typescript/karakum/nameResolvers/resolveInterfacePropertyIntersectionPropertyName.kt [14:41]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - fun resolveInterfacePropertyIntersectionPropertyName(node: Node, context: Context) = nullable { 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 intersection = ensureNotNull(typeScriptService.getParent(typeLiteral)) ensure(isIntersectionTypeNode(intersection)) val property = ensureNotNull(typeScriptService.getParent(intersection)) 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 "${parentName.replaceFirstChar { it.titlecase() }}${propertyName.replaceFirstChar { it.titlecase() }}${subPropertyName.replaceFirstChar { it.titlecase() }}" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -