MCPcopy Create free account
hub / github.com/box/Anemometer / extractSourceSpans

Function extractSourceSpans

js/prettify.js:519–565  ·  view source on GitHub ↗

* Split markup into a string of source code and an array mapping ranges in * that string to the text nodes in which they appear. * * * The HTML DOM structure: * * (Element "p" * (Element "b" * (Text "print ")) ; #1 * (Text "'Hello '")

(node, isPreformatted)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

applyDecoratorFunction · 0.85

Calls 2

walkFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected