mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-01 09:47:56 +08:00
It will be used in a check to enforce license headers DISABLE_THIRD_PARTY_CHECK=Adds recast to node_modules Change-Id: I822a368d9ba22058ac2586ea3638089a2f5b1d18 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2016746 Reviewed-by: Paul Lewis <aerotwist@chromium.org> Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
16 lines
589 B
TypeScript
16 lines
589 B
TypeScript
import { namedTypes } from "ast-types";
|
|
import { Lines } from "./lines";
|
|
declare type Pos = namedTypes.Position;
|
|
declare type Loc = namedTypes.SourceLocation;
|
|
export default class Mapping {
|
|
sourceLines: Lines;
|
|
sourceLoc: Loc;
|
|
targetLoc: Loc;
|
|
constructor(sourceLines: Lines, sourceLoc: Loc, targetLoc?: Loc);
|
|
slice(lines: Lines, start: Pos, end?: Pos): Mapping | null;
|
|
add(line: number, column: number): Mapping;
|
|
subtract(line: number, column: number): Mapping;
|
|
indent(by: number, skipFirstLine?: boolean, noNegativeColumns?: boolean): Mapping;
|
|
}
|
|
export {};
|