Sha256: 7de1fded1eec080831e2addf821f136f2334e9ee5e87fb5f454514acef7223cf

Contents?: true

Size: 870 Bytes

Versions: 1

Compression:

Stored size: 870 Bytes

Contents

import * as t from '@babel/types';
export interface Token {
    type: TokenType;
    value: string;
    start: number;
    end: number;
    loc: t.SourceLocation;
}
export interface TokenType {
    label: string;
    keyword?: string;
    beforeExpr: boolean;
    startsExpr: boolean;
    rightAssociative: boolean;
    isLoop: boolean;
    isAssign: boolean;
    prefix: boolean;
    postfix: boolean;
    binop: number | null;
    updateContext: Function | null;
}
export interface Insertion {
    index: number;
    content: string;
}
export interface Removal {
    start: number;
    end: number;
}
export interface Changes {
    insertions: Array<Insertion>;
    removals: Array<Removal>;
}
/**
 * Process a source code string and its AST to produce source code insertions
 * and removals.
 */
export declare function process(source: string, ast: t.File): Changes;

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wice_grid-7.1.0 node_modules/automatic-semicolon-insertion/build/index.d.ts