MCPcopy Create free account
hub / github.com/figma/code-connect / toString

Method toString

cli/src/connect/parser_common.ts:38–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 }
37
38 toString() {
39 let msg = `${highlight(error(this.name))}: ${this.message}\n`
40 if (this.sourceFileName && this.sourceFilePosition) {
41 msg += ` -> ${reset(this.sourceFileName)}:${this.sourceFilePosition.line}:${
42 this.sourceFilePosition.character
43 }\n`
44 }
45 return msg
46 }
47
48 toDebugString() {
49 return this.toString() + `\n ${this.stack}`

Callers 15

toDebugStringMethod · 0.95
convertStorybookFileFunction · 0.80
getFileIfExistsFunction · 0.80
_fcc_renderHtmlValueFunction · 0.80
_fcc_renderHtmlAttributeFunction · 0.80
replaceNewlinesFunction · 0.80
callParserFunction · 0.80
getGitRemoteURLFunction · 0.80
getGitRepoAbsolutePathFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected