MCPcopy
hub / github.com/vuejs/core / createConditionalExpression

Function createConditionalExpression

packages/compiler-core/src/ast.ts:758–772  ·  view source on GitHub ↗
(
  test: ConditionalExpression['test'],
  consequent: ConditionalExpression['consequent'],
  alternate: ConditionalExpression['alternate'],
  newline = true,
)

Source from the content-addressed store, hash-verified

756}
757
758export function createConditionalExpression(
759 test: ConditionalExpression['test'],
760 consequent: ConditionalExpression['consequent'],
761 alternate: ConditionalExpression['alternate'],
762 newline = true,
763): ConditionalExpression {
764 return {
765 type: NodeTypes.JS_CONDITIONAL_EXPRESSION,
766 test,
767 consequent,
768 alternate,
769 newline,
770 loc: locStub,
771 }
772}
773
774export function createCacheExpression(
775 index: number,

Callers 7

buildSlotsFunction · 0.90
codegen.spec.tsFile · 0.90
processOptionFunction · 0.85
ssrTransformModelFunction · 0.85
ssrTransformElementFunction · 0.85
ssrTransformShowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected