Skip to main content
Version: Next 🚧

[I] PositionDetail

owner node and other related information according to the position

Properties

PropertyModifierTypeDescription
charreadonlynumber-
getPositionDetailAfterTriviareadonly() => PositionDetailget the PositionDetail of positionAfterTrivia
getPositionDetailBeforeTriviareadonly() => PositionDetailget the PositionDetail of positionBeforeTrivia
inTriviareadonlyboolean-
nextCharreadonlynumber-
nodereadonlyundefined | Node-
positionreadonlynumber-
preCharreadonlynumber-
triviaEndPositionreadonlynumberif the position is in a trivia, return the end position (exclude as other 'end' means) of the trivia containing the position if the position is not a trivia, return the end position (exclude as other 'end' means) of the trivia after the node containing the position Please be aware that this may not be the next node in the tree because some non-trivia char is ignored in the tree but will considered here also comments are considered as trivia
triviaStartPositionreadonlynumberif the position is in a trivia, return the start position of the trivia containing the position if the position is not a trivia, return the start position of the trivia before the text(identifier code) containing the position Please be aware that this may not be the pre node in the tree because some non-trivia char is ignored in the tree but will counted here also comments are considered as trivia