mirror of
https://github.com/atom/atom.git
synced 2026-02-17 18:11:29 -05:00
Remove debugger, test focus, and lint fixes.
This commit is contained in:
@@ -4,7 +4,7 @@ const {isSubset} = require('underscore-plus')
|
||||
|
||||
// Private: Parse a selector into parts.
|
||||
// If already parsed, returns the selector unmodified.
|
||||
//
|
||||
//
|
||||
// * `selector` a {String|Array<String>} specifying what to match
|
||||
// Returns selector parts, an {Array<String>}.
|
||||
function parse (selector) {
|
||||
|
||||
@@ -363,14 +363,13 @@ class TreeSitterLanguageMode {
|
||||
|
||||
let smallestNode
|
||||
this._forEachTreeWithRange(range, tree => {
|
||||
if (typeof selector === 'function') debugger
|
||||
let node = tree.rootNode.descendantForIndex(startIndex, searchEndIndex)
|
||||
while (node) {
|
||||
if (nodeContainsIndices(node, startIndex, endIndex) && where(node)) {
|
||||
if (nodeIsSmaller(node, smallestNode)) smallestNode = node
|
||||
break
|
||||
}
|
||||
node = node.parent
|
||||
node = node.parent
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user