MCPcopy Create free account
hub / github.com/babel/babel / get

Function get

packages/babel-parser/src/parse-error.ts:118–122  ·  view source on GitHub ↗
(this: ParseErrorGeneric<ErrorDetails>)

Source from the content-addressed store, hash-verified

116 Object.defineProperty(error, "message", {
117 configurable: true,
118 get(this: ParseErrorGeneric<ErrorDetails>): string {
119 const message = `${toMessage(details)} (${loc.line}:${loc.column})`;
120 this.message = message;
121 return message;
122 },
123 set(value: string) {
124 Object.defineProperty(this, "message", { value, writable: true });
125 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected