mirror of
https://github.com/atom/atom.git
synced 2026-01-28 16:28:09 -05:00
12 lines
260 B
JavaScript
12 lines
260 B
JavaScript
module.exports = {
|
|
fromFirstMateScopeId (firstMateScopeId) {
|
|
let atomScopeId = -firstMateScopeId
|
|
if ((atomScopeId & 1) === 0) atomScopeId--
|
|
return atomScopeId + 256
|
|
},
|
|
|
|
toFirstMateScopeId (atomScopeId) {
|
|
return -(atomScopeId - 256)
|
|
}
|
|
}
|