MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / atomText

Function atomText

src/extraction/languages/erlang.ts:27–29  ·  view source on GitHub ↗

Text of an atom with quoted-atom quotes stripped (`'EXIT'` → `EXIT`).

(node: SyntaxNode, source: string)

Source from the content-addressed store, hash-verified

25
26/** Text of an atom with quoted-atom quotes stripped (`'EXIT'` → `EXIT`). */
27function atomText(node: SyntaxNode, source: string): string {
28 return getNodeText(node, source).replace(/^'([\s\S]*)'$/, '$1');
29}
30
31function collapseWs(text: string): string {
32 return text.replace(/\s+/g, ' ').trim();

Callers 9

moduleExportsFunction · 0.85
precedingSpecFunction · 0.85
handleFunDeclFunction · 0.85
handleRecordDeclFunction · 0.85
handleTypeAliasFunction · 0.85
handleBehaviourFunction · 0.85
refFunction · 0.85
handleAppResourceTupleFunction · 0.85
erlang.tsFile · 0.85

Calls 1

getNodeTextFunction · 0.90

Tested by

no test coverage detected