Sha256: dd335fada63f35a929ed953fef8279155efe85a2da43217070cc3f5c1fb1396f

Contents?: true

Size: 863 Bytes

Versions: 26

Compression:

Stored size: 863 Bytes

Contents

import type { AST } from "eslint";
import type { SourceLocation } from "./ast";
export type MaybeNodeOrToken = {
    range?: [number, number];
    loc?: SourceLocation | null;
};
export declare class TokenStore {
    readonly tokens: AST.Token[];
    constructor(tokens: AST.Token[]);
    add(token: AST.Token): void;
    private findIndexByOffset;
    findTokenByOffset(offset: number): AST.Token | null;
    getFirstToken(nodeOrToken: MaybeNodeOrToken): AST.Token;
    getLastToken(nodeOrToken: MaybeNodeOrToken): AST.Token;
    getTokenBefore(nodeOrToken: MaybeNodeOrToken, filter?: (token: AST.Token) => boolean): AST.Token | null;
    getTokenAfter(nodeOrToken: MaybeNodeOrToken, filter?: (token: AST.Token) => boolean): AST.Token | null;
}
export declare function isComma(token: AST.Token): token is AST.Token & {
    type: "Punctuator";
    value: ",";
};

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
immosquare-cleaner-0.1.32 node_modules/jsonc-eslint-parser/lib/parser/token-store.d.ts
immosquare-cleaner-0.1.31 node_modules/jsonc-eslint-parser/lib/parser/token-store.d.ts
immosquare-cleaner-0.1.30 node_modules/jsonc-eslint-parser/lib/parser/token-store.d.ts
immosquare-cleaner-0.1.29 node_modules/jsonc-eslint-parser/lib/parser/token-store.d.ts
immosquare-cleaner-0.1.28 node_modules/jsonc-eslint-parser/lib/parser/token-store.d.ts
immosquare-cleaner-0.1.27 node_modules/jsonc-eslint-parser/lib/parser/token-store.d.ts
immosquare-cleaner-0.1.26 node_modules/jsonc-eslint-parser/lib/parser/token-store.d.ts
immosquare-cleaner-0.1.25 node_modules/jsonc-eslint-parser/lib/parser/token-store.d.ts
immosquare-cleaner-0.1.24 node_modules/jsonc-eslint-parser/lib/parser/token-store.d.ts
immosquare-cleaner-0.1.23 node_modules/jsonc-eslint-parser/lib/parser/token-store.d.ts
immosquare-cleaner-0.1.22 node_modules/jsonc-eslint-parser/lib/parser/token-store.d.ts
immosquare-cleaner-0.1.21 node_modules/jsonc-eslint-parser/lib/parser/token-store.d.ts
immosquare-cleaner-0.1.20 node_modules/jsonc-eslint-parser/lib/parser/token-store.d.ts
immosquare-cleaner-0.1.19 node_modules/jsonc-eslint-parser/lib/parser/token-store.d.ts
immosquare-cleaner-0.1.18 node_modules/jsonc-eslint-parser/lib/parser/token-store.d.ts
immosquare-cleaner-0.1.17 node_modules/jsonc-eslint-parser/lib/parser/token-store.d.ts
immosquare-cleaner-0.1.16 node_modules/jsonc-eslint-parser/lib/parser/token-store.d.ts
immosquare-cleaner-0.1.14 node_modules/jsonc-eslint-parser/lib/parser/token-store.d.ts
immosquare-cleaner-0.1.13 node_modules/jsonc-eslint-parser/lib/parser/token-store.d.ts
immosquare-cleaner-0.1.12 node_modules/jsonc-eslint-parser/lib/parser/token-store.d.ts