getNormalizationType() — vue Function Reference
Architecture documentation for the getNormalizationType() function in index.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD c26cde0d_15b4_508c_b0f9_b186617461f4["getNormalizationType()"] 54260741_ae9d_a025_86de_47c513f5f82d["index.ts"] c26cde0d_15b4_508c_b0f9_b186617461f4 -->|defined in| 54260741_ae9d_a025_86de_47c513f5f82d 9fb6810f_0f8d_c3be_a848_4600c5dd2c8d["genChildren()"] 9fb6810f_0f8d_c3be_a848_4600c5dd2c8d -->|calls| c26cde0d_15b4_508c_b0f9_b186617461f4 34849e2d_5416_802a_d060_89759d7a24ad["needsNormalization()"] c26cde0d_15b4_508c_b0f9_b186617461f4 -->|calls| 34849e2d_5416_802a_d060_89759d7a24ad style c26cde0d_15b4_508c_b0f9_b186617461f4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/compiler/codegen/index.ts lines 551–577
function getNormalizationType(
children: Array<ASTNode>,
maybeComponent: (el: ASTElement) => boolean
): number {
let res = 0
for (let i = 0; i < children.length; i++) {
const el: ASTNode = children[i]
if (el.type !== 1) {
continue
}
if (
needsNormalization(el) ||
(el.ifConditions &&
el.ifConditions.some(c => needsNormalization(c.block)))
) {
res = 2
break
}
if (
maybeComponent(el) ||
(el.ifConditions && el.ifConditions.some(c => maybeComponent(c.block)))
) {
res = 1
}
}
return res
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does getNormalizationType() do?
getNormalizationType() is a function in the vue codebase, defined in src/compiler/codegen/index.ts.
Where is getNormalizationType() defined?
getNormalizationType() is defined in src/compiler/codegen/index.ts at line 551.
What does getNormalizationType() call?
getNormalizationType() calls 1 function(s): needsNormalization.
What calls getNormalizationType()?
getNormalizationType() is called by 1 function(s): genChildren.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free