@tbela99/css-parser
    Preparing search index...

    Interface Context<Type>

    interface Context<Type> {
        index: number;
        length: number;
        clone<Type>(): Context<Type>;
        consume<Type>(token: Type, howMany?: number): boolean;
        consume<Type>(token: Type, howMany?: number): boolean;
        current<Type>(): null | Type;
        done(): boolean;
        next<Type>(): null | Type;
        peek<Type>(): null | Type;
        slice<Type>(): Type[];
        update<Type>(context: Context<Type>): void;
    }

    Type Parameters

    • Type
    Index

    Methods

    Properties

    index: number
    length: number

    The length of the context tokens to be consumed