Lines Matching defs:interval
45 * Return the text of all tokens within the specified `interval`.
52 * for ($i = $interval->a; $i <= $interval->b; $i++) {
56 * @param Interval $interval The interval of tokens within this stream
59 * @return string The text of all tokens within the specified interval
62 public function getTextByInterval(Interval $interval) : string;
78 * Return the text of all tokens in the source interval of the specified context.
83 * If `ctx.getSourceInterval()` does not return a valid interval of tokens
89 * @param RuleContext $context The context providing the source interval
92 * @return string The text of all tokens within the source interval of `context`.
115 * @param Token $start The first token in the interval to get text for.
116 * @param Token $stop The last token in the interval to get text for (inclusive).