Quantumbraid's picture
download
raw
624 Bytes
import {augmentError, initParser, state} from "./traverser/base";
import {parseFile} from "./traverser/index";
export class File {
constructor(tokens, scopes) {
this.tokens = tokens;
this.scopes = scopes;
}
}
export function parse(
input,
isJSXEnabled,
isTypeScriptEnabled,
isFlowEnabled,
) {
if (isFlowEnabled && isTypeScriptEnabled) {
throw new Error("Cannot combine flow and typescript plugins.");
}
initParser(input, isJSXEnabled, isTypeScriptEnabled, isFlowEnabled);
const result = parseFile();
if (state.error) {
throw augmentError(state.error);
}
return result;
}

Xet Storage Details

Size:
624 Bytes
·
Xet hash:
333727b54e3d44e94aaa9c5e1e0b4fb0acabc5c2b2013e74efb335a1a719407a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.