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

Function cloneLoc

packages/compiler-core/src/parser.ts:926–928  ·  view source on GitHub ↗
(loc: SourceLocation)

Source from the content-addressed store, hash-verified

924}
925
926export function cloneLoc(loc: SourceLocation): SourceLocation {
927 return getLoc(loc.start.offset, loc.end.offset)
928}
929
930function setLocEnd(loc: SourceLocation, end: number) {
931 loc.end = tokenizer.getPos(end)

Callers 1

processIfFunction · 0.90

Calls 1

getLocFunction · 0.85

Tested by

no test coverage detected