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