📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-02 18:38:08
📂
/ (Root)
/
home
/
orkouolp
/
web
/
testing.orkobd
/
laravel
/
node_modules
/
sucrase
/
dist
/
esm
/
parser
📍 /home/orkouolp/web/testing.orkobd/laravel/node_modules/sucrase/dist/esm/parser
🔄 Refresh
✏️
Editing: index.js
Writable
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; }
💾 Save Changes
❌ Cancel