Files
memecoin-botV2/.pnpm-store/v10/files/24/395c4c403037db826edfbdc8bb64a67363ed68e4c5727d71a6e07746616e54a03a83fa6d08f1e34e37900d0dedde8ed4cb83d4e3a1e5878ebd92f33cb20065

19 lines
1.1 KiB
Plaintext

import type { Node, SourceFile } from "./ast.ts";
export declare function getTokenAtPosition(sourceFile: SourceFile, position: number): Node;
export declare function getTouchingPropertyName(sourceFile: SourceFile, position: number): Node;
export declare function getTouchingToken(sourceFile: SourceFile, position: number): Node;
/**
* Finds the token that starts immediately after `previousToken` ends, searching
* within `parent`. Returns `undefined` if no such token exists.
*/
export declare function findNextToken(previousToken: Node, parent: Node, sourceFile: SourceFile): Node | undefined;
/**
* Finds the leftmost token satisfying `position < token.end`.
* If the position is in the trivia of that leftmost token, or the token is invalid,
* returns the rightmost valid token with `token.end <= position`.
* Excludes `JsxText` tokens containing only whitespace.
*/
export declare function findPrecedingToken(sourceFile: SourceFile, position: number): Node | undefined;
/** @internal */
export declare function getTokenPosOfNode(node: Node, sourceFile: SourceFile, includeJSDoc?: boolean): number;
//# sourceMappingURL=astnav.d.ts.map