get-first-component-child.ts — vue Source File
Architecture documentation for get-first-component-child.ts, a typescript file in the vue codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 6f1eb452_db8c_d8eb_6413_b06818fd50ff["get-first-component-child.ts"] a13b4a2c_7af7_bcfd_03a9_13286f908ca0["vnode.ts"] 6f1eb452_db8c_d8eb_6413_b06818fd50ff --> a13b4a2c_7af7_bcfd_03a9_13286f908ca0 6a05321e_c7cd_43ad_21be_69c7e5fd4488["VNode"] 6f1eb452_db8c_d8eb_6413_b06818fd50ff --> 6a05321e_c7cd_43ad_21be_69c7e5fd4488 22dbd5d8_751a_f3d4_c38c_61927e291141["is-async-placeholder.ts"] 6f1eb452_db8c_d8eb_6413_b06818fd50ff --> 22dbd5d8_751a_f3d4_c38c_61927e291141 9cbf4a42_c945_bb3f_b3f1_5fa606986612["isAsyncPlaceholder"] 6f1eb452_db8c_d8eb_6413_b06818fd50ff --> 9cbf4a42_c945_bb3f_b3f1_5fa606986612 156bf2e1_8a13_f22d_5437_54f14bcef8fa["util"] 6f1eb452_db8c_d8eb_6413_b06818fd50ff --> 156bf2e1_8a13_f22d_5437_54f14bcef8fa style 6f1eb452_db8c_d8eb_6413_b06818fd50ff fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { isDef, isArray } from 'shared/util'
import VNode from '../vnode'
import { isAsyncPlaceholder } from './is-async-placeholder'
export function getFirstComponentChild(
children?: Array<VNode>
): VNode | undefined {
if (isArray(children)) {
for (let i = 0; i < children.length; i++) {
const c = children[i]
if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
return c
}
}
}
}
Domain
Subdomains
Functions
Dependencies
Source
Frequently Asked Questions
What does get-first-component-child.ts do?
get-first-component-child.ts is a source file in the vue codebase, written in typescript. It belongs to the CoreRuntime domain, Instance subdomain.
What functions are defined in get-first-component-child.ts?
get-first-component-child.ts defines 1 function(s): getFirstComponentChild.
What does get-first-component-child.ts depend on?
get-first-component-child.ts imports 5 module(s): VNode, is-async-placeholder.ts, isAsyncPlaceholder, util, vnode.ts.
Where is get-first-component-child.ts in the architecture?
get-first-component-child.ts is located at src/core/vdom/helpers/get-first-component-child.ts (domain: CoreRuntime, subdomain: Instance, directory: src/core/vdom/helpers).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free