| import type { BlockStatement, File, Function as BabelFunction, Statement } from '@babel/types'; | |
| import type { namedTypes } from 'ast-types'; | |
| import { type SourceEdit } from './source-edits'; | |
| export type FunctionNode = BabelFunction; | |
| export type FunctionSourceSnapshot = { | |
| body: FunctionNode['body']; | |
| functionNode: FunctionNode; | |
| statements: Statement[] | null; | |
| }; | |
| export declare const captureFunctionSourceSnapshots: (ast: File) => FunctionSourceSnapshot[]; | |
| export declare const getFunctionSourceEditsForPrependedStatements: ({ indentationUnit, input, printNode, reprintBlockBodies, snapshots, }: { | |
| indentationUnit: string; | |
| input: string; | |
| printNode: (node: namedTypes.Node) => string; | |
| reprintBlockBodies: ReadonlySet<BlockStatement>; | |
| snapshots: FunctionSourceSnapshot[]; | |
| }) => { | |
| coveredRanges: { | |
| end: number; | |
| start: number; | |
| }[]; | |
| edits: SourceEdit[]; | |
| }; | |
Xet Storage Details
- Size:
- 912 Bytes
- Xet hash:
- 77323e3632cea8406b502a52a5c8cccaf7a692e26d128d3f74fbe73d84453fa9
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.