Rename all the things

This commit is contained in:
Linus Eriksson
2018-10-18 17:48:54 +02:00
parent 67fd0e6349
commit 0e2501d6e4
4 changed files with 10 additions and 10 deletions

View File

@@ -3865,10 +3865,10 @@ class TextEditor {
// * `bufferPosition` A {Point} or {Array} of `[row, column]`.
//
// Returns a {ScopeDescriptor}.
syntaxTreeForBufferPosition (bufferPosition) {
syntaxTreeScopeDescriptorForBufferPosition (bufferPosition) {
const languageMode = this.buffer.getLanguageMode()
return languageMode.syntaxTreeForPosition
? languageMode.syntaxTreeForPosition(bufferPosition)
return languageMode.syntaxTreeScopeDescriptorForPosition
? languageMode.syntaxTreeScopeDescriptorForPosition(bufferPosition)
: this.scopeDescriptorForBufferPosition(bufferPosition)
}
@@ -3904,8 +3904,8 @@ class TextEditor {
}
// Get the syntax nodes at the cursor.
getSyntaxTree () {
return this.getLastCursor().getSyntaxTree()
getCursorSyntaxTreeScope () {
return this.getLastCursor().getSyntaxTreeScopeDescriptor()
}
tokenForBufferPosition (bufferPosition) {