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

Function createSimpleExpression

packages/compiler-core/src/ast.ts:685–698  ·  view source on GitHub ↗
(
  content: SimpleExpressionNode['content'],
  isStatic: SimpleExpressionNode['isStatic'] = false,
  loc: SourceLocation = locStub,
  constType: ConstantTypes = ConstantTypes.NOT_CONSTANT,
)

Source from the content-addressed store, hash-verified

683}
684
685export function createSimpleExpression(
686 content: SimpleExpressionNode['content'],
687 isStatic: SimpleExpressionNode['isStatic'] = false,
688 loc: SourceLocation = locStub,
689 constType: ConstantTypes = ConstantTypes.NOT_CONSTANT,
690): SimpleExpressionNode {
691 return {
692 type: NodeTypes.SIMPLE_EXPRESSION,
693 loc,
694 content,
695 isStatic,
696 constType: isStatic ? ConstantTypes.CAN_STRINGIFY : constType,
697 }
698}
699
700export function createInterpolation(
701 content: InterpolationNode['content'] | string,

Callers 15

transformVTextFunction · 0.90
transformClickFunction · 0.90
transformOnFunction · 0.90
transformStyleFunction · 0.90
parseInlineCSSFunction · 0.90
transformVHtmlFunction · 0.90
transformAssetUrlFunction · 0.90
resolveOrRegisterImportFunction · 0.90
getImportsExpressionExpFunction · 0.90
transformSrcsetFunction · 0.90
ondirnameFunction · 0.90

Calls

no outgoing calls

Tested by 2

createRootFunction · 0.72
fnFunction · 0.72