HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/design.system/node_modules/@microsoft/tsdoc/lib/parser/TokenSequence.d.ts
import type { ParserContext } from './ParserContext';
import type { Token } from './Token';
import { TextRange } from './TextRange';
/**
 * Constructor parameters for {@link TokenSequence}
 */
export interface ITokenSequenceParameters {
    parserContext: ParserContext;
    startIndex: number;
    endIndex: number;
}
/**
 * Represents a sequence of tokens extracted from `ParserContext.tokens`.
 * This sequence is defined by a starting index and ending index into that array.
 */
export declare class TokenSequence {
    /**
     * The associated parser context that the tokens come from.
     */
    readonly parserContext: ParserContext;
    private _startIndex;
    private _endIndex;
    constructor(parameters: ITokenSequenceParameters);
    /**
     * Constructs a TokenSequence object with no tokens.
     */
    static createEmpty(parserContext: ParserContext): TokenSequence;
    /**
     * The starting index into the associated `ParserContext.tokens` list.
     */
    get startIndex(): number;
    /**
     * The (non-inclusive) ending index into the associated `ParserContext.tokens` list.
     */
    get endIndex(): number;
    get tokens(): ReadonlyArray<Token>;
    /**
     * Constructs a TokenSequence that corresponds to a different range of tokens,
     * e.g. a subrange.
     */
    getNewSequence(startIndex: number, endIndex: number): TokenSequence;
    /**
     * Returns a TextRange that includes all tokens in the sequence (including any additional
     * characters between doc comment lines).
     */
    getContainingTextRange(): TextRange;
    isEmpty(): boolean;
    /**
     * Returns the concatenated text of all the tokens.
     */
    toString(): string;
    private _validateBounds;
}
//# sourceMappingURL=TokenSequence.d.ts.map