MCPcopy Create free account
hub / github.com/tree-sitter/tree-sitter-javascript / destroy

Method destroy

examples/text-editor-component.js:3916–3925  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3914 }
3915
3916 destroy () {
3917 const {nodePool, lineComponentsByScreenLineId, screenLine} = this.props
3918
3919 if (lineComponentsByScreenLineId.get(screenLine.id) === this) {
3920 lineComponentsByScreenLineId.delete(screenLine.id)
3921 }
3922
3923 this.element.remove()
3924 nodePool.release(this.element)
3925 }
3926
3927 appendContents () {
3928 const {displayLayer, nodePool, screenLine, textDecorations} = this.props

Callers 7

didMouseDownOnContentMethod · 0.45
destroyMethod · 0.45
destroyMethod · 0.45
updateLinesMethod · 0.45
destroyMethod · 0.45
updateMethod · 0.45
destroyMethod · 0.45

Calls 1

releaseMethod · 0.80

Tested by

no test coverage detected