MCPcopy Create free account
hub / github.com/breck7/scroll / toReadMe

Method toReadMe

external/.scrollLibs.js:19928–19941  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19926 return testBlocks
19927 }
19928 toReadMe() {
19929 const languageName = this.extensionName
19930 const rootParticleDef = this.rootParserDefinition
19931 const atomTypes = this.atomTypeDefinitions
19932 const parserLineage = this.parserLineage
19933 const exampleParticle = rootParticleDef.examples[0]
19934 return `<h3>${languageName} stats</h3>
19935<ul>
19936<li>${languageName} has ${parserLineage.topDownArray.length} parsers.</li>
19937<li>${languageName} has ${Object.keys(atomTypes).length} atom types.</li>
19938<li>The source code for ${languageName} is ${this.topDownArray.length} lines long.</li>
19939</ul>
19940`
19941 }
19942 get atomTypeDefinitions() {
19943 if (this._cache_atomTypes) return this._cache_atomTypes
19944 const types = {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected