MCPcopy Create free account
hub / github.com/denoland/std / #declaration

Method #declaration

toml/stringify.ts:180–186  ·  view source on GitHub ↗
(keys: string[])

Source from the content-addressed store, hash-verified

178 return `[[${joinKeys(keys)}]]`;
179 }
180 #declaration(keys: string[]): string {
181 const title = joinKeys(keys);
182 if (title.length > this.maxPad) {
183 this.maxPad = title.length;
184 }
185 return `${title} = `;
186 }
187 #arrayDeclaration(keys: string[], value: unknown[]): string {
188 return `${this.#declaration(keys)}${JSON.stringify(value)}`;
189 }

Callers 6

#printObjectMethod · 0.95
#arrayDeclarationMethod · 0.95
#strDeclarationMethod · 0.95
#numberDeclarationMethod · 0.95
#boolDeclarationMethod · 0.95
#dateDeclarationMethod · 0.95

Calls 1

joinKeysFunction · 0.85

Tested by

no test coverage detected