kotlin-node/karakum/src/jsMain/kotlin/node/karakum/nameResolvers/resolveInterfacePropertyNullableUnionName.kt [21:42]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ?.let { if (isParenthesizedTypeNode(it)) { typeScriptService.getParent(it) } else it } ) ensure(isUnionTypeNode(union)) ensure(union.types.asArray().size == 2) ensure(union.types.asArray()[1].kind == SyntaxKind.UndefinedKeyword) val property = ensureNotNull(typeScriptService.getParent(union)) 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() }}" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - kotlin-node/karakum/src/jsMain/kotlin/node/karakum/nameResolvers/resolveInterfacePropertyNullableUnionNullableUnionName.kt [33:54]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ?.let { if (isParenthesizedTypeNode(it)) { typeScriptService.getParent(it) } else it } ) ensure(isUnionTypeNode(union)) ensure(union.types.asArray().size == 2) ensure(union.types.asArray()[1].kind == SyntaxKind.UndefinedKeyword) val property = ensureNotNull(typeScriptService.getParent(union)) 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() }}" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -