MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / fileName

Method fileName

packages/core/src/document/document.ts:69–71  ·  view source on GitHub ↗

对应 document 的 path

()

Source from the content-addressed store, hash-verified

67
68 /** 对应 document 的 path */
69 get fileName(): string {
70 return this.rootNode?.getExtraProp('fileName', false)?.getAsString() || this.id
71 }
72
73 set fileName(fileName: string) {
74 this.rootNode?.getExtraProp('fileName', true)?.setValue(fileName)

Callers

nothing calls this directly

Calls 3

getAsStringMethod · 0.80
getExtraPropMethod · 0.80
setValueMethod · 0.45

Tested by

no test coverage detected