MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getChildHostContext

Function getChildHostContext

src/ink/reconciler.ts:316–329  ·  view source on GitHub ↗
(
    parentHostContext: HostContext,
    type: ElementNames,
  )

Source from the content-addressed store, hash-verified

314 }
315 },
316 getChildHostContext(
317 parentHostContext: HostContext,
318 type: ElementNames,
319 ): HostContext {
320 const previousIsInsideText = parentHostContext.isInsideText
321 const isInsideText =
322 type === 'ink-text' || type === 'ink-virtual-text' || type === 'ink-link'
323
324 if (previousIsInsideText === isInsideText) {
325 return parentHostContext
326 }
327
328 return { isInsideText }
329 },
330 shouldSetTextContent: () => false,
331 createInstance(
332 originalType: ElementNames,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected