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

Method buildCodeFrameError

packages/babel-traverse/src/path/index.ts:161–166  ·  view source on GitHub ↗
(
    msg: string,
    Error: new () => Error = SyntaxError,
  )

Source from the content-addressed store, hash-verified

159 }
160
161 buildCodeFrameError(
162 msg: string,
163 Error: new () => Error = SyntaxError,
164 ): Error {
165 return this.hub.buildError(this.node!, msg, Error);
166 }
167
168 traverse<S, T extends object>(
169 this: NodePath_Final,

Callers 15

MemberExpressionFunction · 0.45
ReferencedIdentifierFunction · 0.45
CallExpressionFunction · 0.45
exitFunction · 0.45
applyTargetDecoratorsFunction · 0.45
PrivateNameFunction · 0.45
ClassFunction · 0.45
assertFieldTransformedFunction · 0.45
shouldTransformFunction · 0.45
destructureSetFunction · 0.45
ProgramFunction · 0.45
importToPlatformApiFunction · 0.45

Calls 1

buildErrorMethod · 0.65

Tested by

no test coverage detected