overleaf/services/web/frontend/js/features/source-editor/utils/tree-query.ts
Alf Eaton 603ff28df0 Add text formatting commands to the LaTeX grammar (#19607)
GitOrigin-RevId: f69cd323992c80de3f0a458a637fa8f160017076
2024-08-02 08:06:11 +00:00

47 lines
983 B
TypeScript

export { getNestingLevel, nestOutline } from './tree-operations/outline'
export type {
FlatOutline,
FlatOutlineItem,
Outline,
} from './tree-operations/outline'
export {
iterateDescendantsOf,
previousSiblingIs,
nextSiblingIs,
} from './tree-operations/common'
export {
cursorIsAtBeginEnvironment,
cursorIsAtEndEnvironment,
getEnvironmentArguments,
} from './tree-operations/environments'
export {
getAncestorStack,
ancestorNodeOfType,
ancestorOfNodeWithType,
getBibkeyArgumentNode,
descendantsOfNodeWithType,
matchingAncestor,
} from './tree-operations/ancestors'
export {
NormalTextSpan,
getNormalTextSpansFromLine,
} from './tree-operations/text'
export {
ifInType,
isInEmptyArgumentNodeForAutocomplete,
} from './tree-operations/completions'
export { tokenNames, Tokens } from './tree-operations/tokens'
export {
commentIsOpenFold,
commentIsCloseFold,
findClosingFoldComment,
getFoldRange,
} from './tree-operations/comments'