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

Function createAliasExpression

packages/compiler-core/src/parser.ts:506–520  ·  view source on GitHub ↗
(
    content: string,
    offset: number,
    asParam = false,
  )

Source from the content-addressed store, hash-verified

504 const [, LHS, RHS] = inMatch
505
506 const createAliasExpression = (
507 content: string,
508 offset: number,
509 asParam = false,
510 ) => {
511 const start = loc.start.offset + offset
512 const end = start + content.length
513 return createExp(
514 content,
515 false,
516 getLoc(start, end),
517 ConstantTypes.NOT_CONSTANT,
518 asParam ? ExpParseMode.Params : ExpParseMode.Normal,
519 )
520 }
521
522 const result: ForParseResult = {
523 source: createAliasExpression(RHS.trim(), exp.indexOf(RHS, LHS.length)),

Callers 1

parseForExpressionFunction · 0.85

Calls 2

createExpFunction · 0.85
getLocFunction · 0.85

Tested by

no test coverage detected