@oseo/compiler 0.1.0-canary.0 → 0.1.0-canary.368

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/README.md +52 -165
  2. package/dist/agent-programs.d.ts.map +1 -1
  3. package/dist/agent-programs.js.map +1 -1
  4. package/dist/agent-templates.d.ts.map +1 -1
  5. package/dist/agent-templates.js.map +1 -1
  6. package/dist/compile.d.ts.map +1 -1
  7. package/dist/compile.js.map +1 -1
  8. package/dist/fragments.d.ts.map +1 -1
  9. package/dist/fragments.js.map +1 -1
  10. package/dist/hir-build.d.ts.map +1 -1
  11. package/dist/hir-build.js.map +1 -1
  12. package/dist/hir-print.d.ts.map +1 -1
  13. package/dist/hir-print.js.map +1 -1
  14. package/dist/hir.d.ts.map +1 -1
  15. package/dist/hir.js.map +1 -1
  16. package/dist/host-scripts.d.ts.map +1 -1
  17. package/dist/host-scripts.js.map +1 -1
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js.map +1 -1
  20. package/dist/mir-build.d.ts.map +1 -1
  21. package/dist/mir-build.js.map +1 -1
  22. package/dist/mir-print.d.ts.map +1 -1
  23. package/dist/mir-print.js.map +1 -1
  24. package/dist/mir-specialize.d.ts.map +1 -1
  25. package/dist/mir-specialize.js.map +1 -1
  26. package/dist/mir.d.ts.map +1 -1
  27. package/dist/module-builtin.d.ts.map +1 -1
  28. package/dist/module-builtin.js.map +1 -1
  29. package/dist/module-compile.d.ts.map +1 -1
  30. package/dist/module-compile.js.map +1 -1
  31. package/dist/module-json.d.ts.map +1 -1
  32. package/dist/module-json.js.map +1 -1
  33. package/dist/modules.d.ts.map +1 -1
  34. package/dist/modules.js.map +1 -1
  35. package/dist/native-fragments.d.ts.map +1 -1
  36. package/dist/native-fragments.js.map +1 -1
  37. package/dist/native.d.ts.map +1 -1
  38. package/dist/native.js.map +1 -1
  39. package/dist/regexp-execute.d.ts.map +1 -1
  40. package/dist/regexp-execute.js.map +1 -1
  41. package/dist/regexp-matcher.d.ts.map +1 -1
  42. package/dist/regexp-matcher.js.map +1 -1
  43. package/dist/regexp-parse.d.ts.map +1 -1
  44. package/dist/regexp-parse.js.map +1 -1
  45. package/dist/regexp-print.d.ts.map +1 -1
  46. package/dist/regexp-print.js.map +1 -1
  47. package/dist/regexp.d.ts.map +1 -1
  48. package/dist/regexp.js.map +1 -1
  49. package/dist/source.d.ts.map +1 -1
  50. package/dist/source.js.map +1 -1
  51. package/dist/syntax.d.ts.map +1 -1
  52. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"host-scripts.js","names":[],"sources":["../src/host-scripts.ts"],"sourcesContent":["import { buildSeededHir } from \"./hir-build.ts\";\nimport type { HirExpression, HirProgram, HirStatement } from \"./hir.ts\";\nimport { buildMir } from \"./mir-build.ts\";\nimport type {\n CompilerOptions,\n MirFunction,\n MirGlobalBinding,\n MirGlobalObjectBinding,\n MirHostScript,\n} from \"./mir.ts\";\nimport type { SourceRange } from \"./source.ts\";\nimport type { SourceFrontend, SyntaxProgram } from \"./syntax.ts\";\n\nfunction completionBlock(\n body: readonly HirStatement[],\n range: SourceRange,\n): HirStatement {\n return { body, kind: \"block\", range };\n}\n\n/**\n * Record StatementList completion values without changing declaration or\n * expression evaluation. Compound statements supplying UpdateEmpty(undefined)\n * reset the accumulator; a normally completing finally restores the protected\n * completion. Function bodies are separate HIR functions and are untouched.\n */\nfunction withCompletion(\n program: HirProgram,\n allocate: () => number,\n directiveCompletion: SyntaxProgram[\"directiveCompletion\"],\n): HirProgram {\n const id = allocate();\n const range = program.range;\n const read = (bindingId: number): HirExpression => ({\n bindingId,\n kind: \"binding\",\n name: \"*Script completion*\",\n range,\n });\n const set = (value: HirExpression): HirStatement => ({\n kind: \"expression\",\n range,\n expression: {\n bindingId: id,\n kind: \"binding-set\",\n mutable: true,\n name: \"*Script completion*\",\n range,\n value,\n },\n });\n const empty = (): HirStatement => set({ kind: \"undefined\", range });\n const body = (statement: HirStatement): HirStatement =>\n completionBlock(visit(statement), statement.range);\n const list = (items: readonly HirStatement[]): readonly HirStatement[] =>\n items.flatMap(visit);\n const visit = (statement: HirStatement): readonly HirStatement[] => {\n switch (statement.kind) {\n case \"expression\":\n return statement.emptyCompletion === true\n ? [statement]\n : [set(statement.expression)];\n case \"block\":\n return [{ ...statement, body: list(statement.body) }];\n case \"labeled\": {\n const parts = visit(statement.body);\n return [...parts.slice(0, -1), { ...statement, body: parts.at(-1)! }];\n }\n case \"if\":\n return [\n empty(),\n {\n ...statement,\n consequent: body(statement.consequent),\n alternate:\n statement.alternate == null\n ? undefined\n : body(statement.alternate),\n },\n ];\n case \"while\":\n case \"do-while\":\n case \"for\":\n case \"for-in\":\n case \"for-of\":\n case \"with\":\n return [empty(), { ...statement, body: body(statement.body) }];\n case \"switch\":\n return [\n empty(),\n {\n ...statement,\n cases: statement.cases.map((entry) => ({\n ...entry,\n body: list(entry.body),\n })),\n },\n ];\n case \"try\": {\n let finalizer: HirStatement | undefined;\n if (statement.finalizer != null) {\n const saved = allocate();\n finalizer = completionBlock(\n [\n {\n bindingId: saved,\n hint: undefined,\n initializer: read(id),\n kind: \"let\",\n name: \"*saved completion*\",\n range,\n },\n empty(),\n ...visit(statement.finalizer),\n set(read(saved)),\n ],\n statement.finalizer.range,\n );\n }\n return [\n empty(),\n {\n ...statement,\n block: body(statement.block),\n handler:\n statement.handler == null\n ? undefined\n : {\n ...statement.handler,\n body: completionBlock(\n [empty(), ...visit(statement.handler.body)],\n range,\n ),\n },\n finalizer,\n },\n ];\n }\n default:\n return [statement];\n }\n };\n return {\n ...program,\n body: [\n {\n bindingId: id,\n hint: undefined,\n initializer: directiveCompletion ?? { kind: \"undefined\", range },\n kind: \"let\",\n name: \"*Script completion*\",\n range,\n },\n ...list(program.body),\n { expression: read(id), kind: \"return\", range },\n ],\n };\n}\n\n/** Compile the finite Script source set into the main dispatcher's ID space. */\nexport interface CompiledHostScripts {\n readonly scripts: readonly MirHostScript[];\n readonly functions: readonly MirFunction[];\n readonly globals: readonly MirGlobalBinding[];\n readonly objects: readonly MirGlobalObjectBinding[];\n}\n\nexport function compileHostScripts(\n frontend: SourceFrontend,\n main: SyntaxProgram,\n options: CompilerOptions,\n bindingStart: number,\n functionStart: number,\n sources: readonly string[],\n): CompiledHostScripts {\n let nextBinding = bindingStart;\n let nextFunction = functionStart;\n const pending = [...sources];\n const seen = new Set<string>();\n const scripts: MirHostScript[] = [];\n const functions: MirFunction[] = [];\n const globals: MirGlobalBinding[] = [];\n const objects: MirGlobalObjectBinding[] = [];\n while (pending.length > 0) {\n const source = pending.shift()!;\n if (seen.has(source)) continue;\n seen.add(source);\n const sourceId = `${main.sourceId}#host-script-${scripts.length}`;\n const parsed = frontend.parse({ source, sourceId });\n if (parsed.program == null) {\n const error = parsed.diagnostics[0];\n scripts.push({\n source,\n error: error?.code === \"OSEO0001\" ? \"syntax\" : \"unsupported\",\n message: error?.message ?? \"Invalid host Script.\",\n });\n continue;\n }\n const hir = buildSeededHir(parsed.program, {\n hostScriptBindings: true,\n nextBindingId: nextBinding,\n nextFunctionId: nextFunction,\n });\n nextBinding = hir.nextBindingId;\n nextFunction = hir.nextFunctionId;\n if (hir.program == null) {\n scripts.push({\n source,\n error: \"unsupported\",\n message: hir.diagnostics[0]?.message ?? \"Unsupported host Script.\",\n });\n continue;\n }\n pending.push(...(hir.program.hostScriptSources ?? []));\n const completed = withCompletion(\n hir.program,\n () => nextBinding++,\n parsed.program.directiveCompletion,\n );\n const mir = buildMir(completed, options);\n const functionId = nextFunction++;\n scripts.push({ functionId, source });\n functions.push(...mir.functions, {\n ...mir.script,\n id: functionId,\n hostScript: {\n lexical: mir.globalLexicalNames ?? [],\n objects: mir.globalObjectBindings,\n },\n });\n globals.push(...mir.globalBindings);\n objects.push(...mir.globalObjectBindings);\n }\n return { functions, globals, objects, scripts };\n}\n"],"mappings":";;;;AAaA,SAAS,gBACP,MACA,OACc;CACd,OAAO;EAAE;EAAM,MAAM;EAAS;C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G,KAAK,SAAS,eAAe,QAAQ;EACzD,MAAM,SAAS,SAAS,MAAM;GAAE;GAAQ;EAAS,CAAC;EAClD,IAAI,OAAO,WAAW,MAAM;GAC1B,MAAM,QAAQ,OAAO,YAAY;GACjC,QAAQ,KAAK;IACX;IACA,OAAO,OAAO,SAAS,aAAa,WAAW;IAC/C,SAAS,OAAO,WAAW;GAC7B,CAAC;GACD;EACF;EACA,MAAM,MAAM,eAAe,OAAO,SAAS;GACzC,oBAAoB;GACpB,eAAe;GACf,gBAAgB;EAClB,CAAC;EACD,cAAc,IAAI;EAClB,eAAe,IAAI;EACnB,IAAI,IAAI,WAAW,MAAM;GACvB,QAAQ,KAAK;IACX;IACA,OAAO;IACP,SAAS,IAAI,YAAY,EAAE,EAAE,WAAW;GAC1C,CAAC;GACD;EACF;EACA,QAAQ,KAAK,GAAI,IAAI,QAAQ,qBAAqB,CAAC,CAAE;EAMrD,MAAM,MAAM,SALM,eAChB,IAAI,eACE,eACN,OAAO,QAAQ,mBAEY,GAAG,OAAO;EACvC,MAAM,aAAa;EACnB,QAAQ,KAAK;GAAE;GAAY;EAAO,CAAC;EACnC,UAAU,KAAK,GAAG,IAAI,WAAW;GAC/B,GAAG,IAAI;GACP,IAAI;GACJ,YAAY;IACV,SAAS,IAAI,sBAAsB,CAAC;IACpC,SAAS,IAAI;GACf;EACF,CAAC;EACD,QAAQ,KAAK,GAAG,IAAI,cAAc;EAClC,QAAQ,KAAK,GAAG,IAAI,oBAAoB;CAC1C;CACA,OAAO;EAAE;EAAW;EAAS;EAAS;CAAQ;AAChD"}
1
+ {"version":3,"file":"host-scripts.js","names":[],"sources":["../src/host-scripts.ts"],"sourcesContent":["/*\n * Oseo, an ahead-of-time compiler for JavaScript and TypeScript.\n * Copyright (C) 2026 Hong Minhee <https://hongminhee.org/>\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <https://www.gnu.org/licenses/>.\n */\n\nimport { buildSeededHir } from \"./hir-build.ts\";\nimport type { HirExpression, HirProgram, HirStatement } from \"./hir.ts\";\nimport { buildMir } from \"./mir-build.ts\";\nimport type {\n CompilerOptions,\n MirFunction,\n MirGlobalBinding,\n MirGlobalObjectBinding,\n MirHostScript,\n} from \"./mir.ts\";\nimport type { SourceRange } from \"./source.ts\";\nimport type { SourceFrontend, SyntaxProgram } from \"./syntax.ts\";\n\nfunction completionBlock(\n body: readonly HirStatement[],\n range: SourceRange,\n): HirStatement {\n return { body, kind: \"block\", range };\n}\n\n/**\n * Record StatementList completion values without changing declaration or\n * expression evaluation. Compound statements supplying UpdateEmpty(undefined)\n * reset the accumulator; a normally completing finally restores the protected\n * completion. Function bodies are separate HIR functions and are untouched.\n */\nfunction withCompletion(\n program: HirProgram,\n allocate: () => number,\n directiveCompletion: SyntaxProgram[\"directiveCompletion\"],\n): HirProgram {\n const id = allocate();\n const range = program.range;\n const read = (bindingId: number): HirExpression => ({\n bindingId,\n kind: \"binding\",\n name: \"*Script completion*\",\n range,\n });\n const set = (value: HirExpression): HirStatement => ({\n kind: \"expression\",\n range,\n expression: {\n bindingId: id,\n kind: \"binding-set\",\n mutable: true,\n name: \"*Script completion*\",\n range,\n value,\n },\n });\n const empty = (): HirStatement => set({ kind: \"undefined\", range });\n const body = (statement: HirStatement): HirStatement =>\n completionBlock(visit(statement), statement.range);\n const list = (items: readonly HirStatement[]): readonly HirStatement[] =>\n items.flatMap(visit);\n const visit = (statement: HirStatement): readonly HirStatement[] => {\n switch (statement.kind) {\n case \"expression\":\n return statement.emptyCompletion === true\n ? [statement]\n : [set(statement.expression)];\n case \"block\":\n return [{ ...statement, body: list(statement.body) }];\n case \"labeled\": {\n const parts = visit(statement.body);\n return [...parts.slice(0, -1), { ...statement, body: parts.at(-1)! }];\n }\n case \"if\":\n return [\n empty(),\n {\n ...statement,\n consequent: body(statement.consequent),\n alternate:\n statement.alternate == null\n ? undefined\n : body(statement.alternate),\n },\n ];\n case \"while\":\n case \"do-while\":\n case \"for\":\n case \"for-in\":\n case \"for-of\":\n case \"with\":\n return [empty(), { ...statement, body: body(statement.body) }];\n case \"switch\":\n return [\n empty(),\n {\n ...statement,\n cases: statement.cases.map((entry) => ({\n ...entry,\n body: list(entry.body),\n })),\n },\n ];\n case \"try\": {\n let finalizer: HirStatement | undefined;\n if (statement.finalizer != null) {\n const saved = allocate();\n finalizer = completionBlock(\n [\n {\n bindingId: saved,\n hint: undefined,\n initializer: read(id),\n kind: \"let\",\n name: \"*saved completion*\",\n range,\n },\n empty(),\n ...visit(statement.finalizer),\n set(read(saved)),\n ],\n statement.finalizer.range,\n );\n }\n return [\n empty(),\n {\n ...statement,\n block: body(statement.block),\n handler:\n statement.handler == null\n ? undefined\n : {\n ...statement.handler,\n body: completionBlock(\n [empty(), ...visit(statement.handler.body)],\n range,\n ),\n },\n finalizer,\n },\n ];\n }\n default:\n return [statement];\n }\n };\n return {\n ...program,\n body: [\n {\n bindingId: id,\n hint: undefined,\n initializer: directiveCompletion ?? { kind: \"undefined\", range },\n kind: \"let\",\n name: \"*Script completion*\",\n range,\n },\n ...list(program.body),\n { expression: read(id), kind: \"return\", range },\n ],\n };\n}\n\n/** Compile the finite Script source set into the main dispatcher's ID space. */\nexport interface CompiledHostScripts {\n readonly scripts: readonly MirHostScript[];\n readonly functions: readonly MirFunction[];\n readonly globals: readonly MirGlobalBinding[];\n readonly objects: readonly MirGlobalObjectBinding[];\n}\n\nexport function compileHostScripts(\n frontend: SourceFrontend,\n main: SyntaxProgram,\n options: CompilerOptions,\n bindingStart: number,\n functionStart: number,\n sources: readonly string[],\n): CompiledHostScripts {\n let nextBinding = bindingStart;\n let nextFunction = functionStart;\n const pending = [...sources];\n const seen = new Set<string>();\n const scripts: MirHostScript[] = [];\n const functions: MirFunction[] = [];\n const globals: MirGlobalBinding[] = [];\n const objects: MirGlobalObjectBinding[] = [];\n while (pending.length > 0) {\n const source = pending.shift()!;\n if (seen.has(source)) continue;\n seen.add(source);\n const sourceId = `${main.sourceId}#host-script-${scripts.length}`;\n const parsed = frontend.parse({ source, sourceId });\n if (parsed.program == null) {\n const error = parsed.diagnostics[0];\n scripts.push({\n source,\n error: error?.code === \"OSEO0001\" ? \"syntax\" : \"unsupported\",\n message: error?.message ?? \"Invalid host Script.\",\n });\n continue;\n }\n const hir = buildSeededHir(parsed.program, {\n hostScriptBindings: true,\n nextBindingId: nextBinding,\n nextFunctionId: nextFunction,\n });\n nextBinding = hir.nextBindingId;\n nextFunction = hir.nextFunctionId;\n if (hir.program == null) {\n scripts.push({\n source,\n error: \"unsupported\",\n message: hir.diagnostics[0]?.message ?? \"Unsupported host Script.\",\n });\n continue;\n }\n pending.push(...(hir.program.hostScriptSources ?? []));\n const completed = withCompletion(\n hir.program,\n () => nextBinding++,\n parsed.program.directiveCompletion,\n );\n const mir = buildMir(completed, options);\n const functionId = nextFunction++;\n scripts.push({ functionId, source });\n functions.push(...mir.functions, {\n ...mir.script,\n id: functionId,\n hostScript: {\n lexical: mir.globalLexicalNames ?? [],\n objects: mir.globalObjectBindings,\n },\n });\n globals.push(...mir.globalBindings);\n objects.push(...mir.globalObjectBindings);\n }\n return { functions, globals, objects, scripts };\n}\n"],"mappings":";;;;AA+BA,SAAS,gBACP,MACA,OACc;CACd,OAAO;EAAE;EAAM,MAAM;EAAS;CAAM;AACtC;;;;;;;AAQA,SAAS,eACP,SACA,UACA,qBACY;CACZ,MAAM,KAAK,SAAS;CACpB,MAAM,QAAQ,QAAQ;CACtB,MAAM,QAAQ,eAAsC;EAClD;EACA,MAAM;EACN,MAAM;EACN;CACF;CACA,MAAM,OAAO,WAAwC;EACnD,MAAM;EACN;EACA,YAAY;GACV,WAAW;GACX,MAAM;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AAC;GACD;EACF;EACA,MAAM,MAAM,eAAe,OAAO,SAAS;GACzC,oBAAoB;GACpB,eAAe;GACf,gBAAgB;EAClB,CAAC;EACD,cAAc,IAAI;EAClB,eAAe,IAAI;EACnB,IAAI,IAAI,WAAW,MAAM;GACvB,QAAQ,KAAK;IACX;IACA,OAAO;IACP,SAAS,IAAI,YAAY,EAAE,EAAE,WAAW;GAC1C,CAAC;GACD;EACF;EACA,QAAQ,KAAK,GAAI,IAAI,QAAQ,qBAAqB,CAAC,CAAE;EAMrD,MAAM,MAAM,SALM,eAChB,IAAI,eACE,eACN,OAAO,QAAQ,mBAEY,GAAG,OAAO;EACvC,MAAM,aAAa;EACnB,QAAQ,KAAK;GAAE;GAAY;EAAO,CAAC;EACnC,UAAU,KAAK,GAAG,IAAI,WAAW;GAC/B,GAAG,IAAI;GACP,IAAI;GACJ,YAAY;IACV,SAAS,IAAI,sBAAsB,CAAC;IACpC,SAAS,IAAI;GACf;EACF,CAAC;EACD,QAAQ,KAAK,GAAG,IAAI,cAAc;EAClC,QAAQ,KAAK,GAAG,IAAI,oBAAoB;CAC1C;CACA,OAAO;EAAE;EAAW;EAAS;EAAS;CAAQ;AAChD"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;iBAoRgB,iBAAiB,YAAY"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;iBAsSgB,iBAAiB,YAAY"}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["renderSourceDiagnostic"],"sources":["../src/index.ts"],"sourcesContent":["import {\n renderDiagnostic as renderSourceDiagnostic,\n type Diagnostic,\n} from \"./source.ts\";\n\nexport type { DiagnosticCode } from \"./source.ts\";\nexport type { ByteRange } from \"./source.ts\";\nexport type { Position } from \"./source.ts\";\nexport type { SourceRange } from \"./source.ts\";\nexport type { Diagnostic } from \"./source.ts\";\nexport type { SourceInput } from \"./source.ts\";\nexport type { HintProvenance } from \"./syntax.ts\";\nexport type { HintName } from \"./syntax.ts\";\nexport type { Hint } from \"./syntax.ts\";\nexport type { SyntaxCallTarget } from \"./syntax.ts\";\nexport type { BinaryOperator } from \"./syntax.ts\";\nexport type { UnaryOperator } from \"./syntax.ts\";\nexport type { LogicalOperator } from \"./syntax.ts\";\nexport type { AssignmentOperator } from \"./syntax.ts\";\nexport type { UpdateOperator } from \"./syntax.ts\";\nexport type { SyntaxArraySpreadElement } from \"./syntax.ts\";\nexport type { SyntaxArrayElement } from \"./syntax.ts\";\nexport type { SyntaxSpreadArgument } from \"./syntax.ts\";\nexport type { SyntaxCallArgument } from \"./syntax.ts\";\nexport type { SyntaxOptionalChainLink } from \"./syntax.ts\";\nexport type { SyntaxObjectDefinition } from \"./syntax.ts\";\nexport type { SyntaxObjectSpreadProperty } from \"./syntax.ts\";\nexport type { SyntaxObjectProperty } from \"./syntax.ts\";\nexport type { SyntaxPrivateName } from \"./syntax.ts\";\nexport type { SyntaxClassMethod } from \"./syntax.ts\";\nexport type { SyntaxClassField } from \"./syntax.ts\";\nexport type { SyntaxClassStaticBlock } from \"./syntax.ts\";\nexport type { SyntaxClassElement } from \"./syntax.ts\";\nexport type { SyntaxRegExpLiteralExpression } from \"./syntax.ts\";\nexport type { SyntaxExpression } from \"./syntax.ts\";\nexport type { SyntaxThisMode } from \"./syntax.ts\";\nexport type { SyntaxParameter } from \"./syntax.ts\";\nexport type { SyntaxBindingIdentifier } from \"./syntax.ts\";\nexport type { SyntaxAssignmentMemberTarget } from \"./syntax.ts\";\nexport type { SyntaxBindingElement } from \"./syntax.ts\";\nexport type { SyntaxArrayBindingPattern } from \"./syntax.ts\";\nexport type { SyntaxObjectBindingProperty } from \"./syntax.ts\";\nexport type { SyntaxObjectBindingPattern } from \"./syntax.ts\";\nexport type { SyntaxBindingTarget } from \"./syntax.ts\";\nexport type { SyntaxAssignmentTarget } from \"./syntax.ts\";\nexport type { SyntaxBindingPattern } from \"./syntax.ts\";\nexport type { SyntaxAssignmentPattern } from \"./syntax.ts\";\nexport type { HirBindingIdentifier } from \"./hir.ts\";\nexport type { HirAssignmentMemberTarget } from \"./hir.ts\";\nexport type { HirBindingElement } from \"./hir.ts\";\nexport type { HirArrayBindingPattern } from \"./hir.ts\";\nexport type { HirObjectBindingProperty } from \"./hir.ts\";\nexport type { HirObjectBindingPattern } from \"./hir.ts\";\nexport type { HirBindingTarget } from \"./hir.ts\";\nexport type { HirBindingPattern } from \"./hir.ts\";\nexport type { BindingPatternMode } from \"./syntax.ts\";\nexport type { SyntaxSwitchCase } from \"./syntax.ts\";\nexport type { HirSwitchCase } from \"./hir.ts\";\nexport type { SyntaxForDeclaration } from \"./syntax.ts\";\nexport type { HirForDeclaration } from \"./hir.ts\";\nexport type { SyntaxForOfTarget } from \"./syntax.ts\";\nexport type { HirForOfTarget } from \"./hir.ts\";\nexport type { SyntaxForInTarget } from \"./syntax.ts\";\nexport type { HirForInTarget } from \"./hir.ts\";\nexport type { FunctionKind } from \"./syntax.ts\";\nexport type { SyntaxLexicalDeclarator } from \"./syntax.ts\";\nexport type { SyntaxStatement } from \"./syntax.ts\";\nexport type { SyntaxFunction } from \"./syntax.ts\";\nexport type { SyntaxGlobalObjectName } from \"./syntax.ts\";\nexport type { SyntaxGlobalLexicalName } from \"./syntax.ts\";\nexport type { SyntaxProgram } from \"./syntax.ts\";\nexport type { FrontendResult } from \"./syntax.ts\";\nexport type { SourceFrontend } from \"./syntax.ts\";\nexport type { SyntaxModuleSpecifier } from \"./syntax.ts\";\nexport type { SyntaxImportAttribute } from \"./syntax.ts\";\nexport type { SyntaxImportEntry } from \"./syntax.ts\";\nexport type { SyntaxExportEntry } from \"./syntax.ts\";\nexport type { SyntaxModule } from \"./syntax.ts\";\nexport type { ModuleFrontendResult } from \"./syntax.ts\";\nexport type { ModuleSourceFrontend } from \"./syntax.ts\";\nexport type { LoadedModuleSource } from \"./syntax.ts\";\nexport type { LoadedJsonModule } from \"./syntax.ts\";\nexport type { ModuleLoadResult } from \"./syntax.ts\";\nexport type { ModuleLoadReferrer } from \"./syntax.ts\";\nexport type { ModuleLoader } from \"./syntax.ts\";\nexport type { ModuleResolutionResult } from \"./syntax.ts\";\nexport type { ModuleResolver } from \"./syntax.ts\";\nexport type { ModuleDependency } from \"./syntax.ts\";\nexport type { ModuleResolution } from \"./syntax.ts\";\nexport type { ModuleGraphNode } from \"./syntax.ts\";\nexport type { ModuleGraph } from \"./syntax.ts\";\nexport type { ModuleGraphResult } from \"./syntax.ts\";\nexport type { ModuleGraphOptions } from \"./syntax.ts\";\nexport type { ModuleRequestRecord } from \"./syntax.ts\";\nexport type { ModuleRequestReferrer } from \"./syntax.ts\";\nexport type { ScriptRequestClosure } from \"./syntax.ts\";\nexport type { ScriptRequestReferrer } from \"./syntax.ts\";\nexport type { ScriptRequestResult } from \"./syntax.ts\";\nexport type { SyntaxImportCall } from \"./syntax.ts\";\nexport { buildModuleGraph } from \"./modules.ts\";\nexport { buildScriptRequests } from \"./modules.ts\";\nexport { importCallProfileMessage } from \"./hir-build.ts\";\nexport type { LinkedModuleCell } from \"./modules.ts\";\nexport type { LinkedModuleImport } from \"./modules.ts\";\nexport type { LinkedModuleExport } from \"./modules.ts\";\nexport type { LinkedModule } from \"./modules.ts\";\nexport type { ModuleComponent } from \"./modules.ts\";\nexport type { LinkedModuleGraph } from \"./modules.ts\";\nexport type { ModuleLinkResult } from \"./modules.ts\";\nexport { linkModuleGraph } from \"./modules.ts\";\nexport type { ErrorIntrinsicName } from \"./hir.ts\";\nexport type { HirCallTarget } from \"./hir.ts\";\nexport type { HirArraySpreadElement } from \"./hir.ts\";\nexport type { HirArrayElement } from \"./hir.ts\";\nexport type { HirSpreadArgument } from \"./hir.ts\";\nexport type { HirCallArgument } from \"./hir.ts\";\nexport type { HirOptionalChainLink } from \"./hir.ts\";\nexport type { HirObjectDefinition } from \"./hir.ts\";\nexport type { HirObjectSpreadProperty } from \"./hir.ts\";\nexport type { HirObjectProperty } from \"./hir.ts\";\nexport type { HirClassMethod } from \"./hir.ts\";\nexport type { HirClassStaticBlock } from \"./hir.ts\";\nexport type { HirClassElement } from \"./hir.ts\";\nexport type { HirClassNameBinding } from \"./hir.ts\";\nexport type { HirExpression } from \"./hir.ts\";\nexport type { HirStatement } from \"./hir.ts\";\nexport type { HirParameter } from \"./hir.ts\";\nexport type { HirFunction } from \"./hir.ts\";\nexport type { HirGlobalBinding } from \"./hir.ts\";\nexport type { HirGlobalLexicalName } from \"./hir.ts\";\nexport type { HirProgram } from \"./hir.ts\";\nexport type { HirResult } from \"./hir.ts\";\nexport { buildHir } from \"./hir-build.ts\";\nexport { printHir } from \"./hir-print.ts\";\nexport type { MirConstant } from \"./mir.ts\";\nexport type { MirCallTarget } from \"./mir.ts\";\nexport type { MirHint } from \"./mir.ts\";\nexport type { SpecializationMode } from \"./mir.ts\";\nexport type { UnhandledRejectionPolicy } from \"./mir.ts\";\nexport type { CompilerOptions } from \"./mir.ts\";\nexport type { MirParameter } from \"./mir.ts\";\nexport type { MirGlobalBinding } from \"./mir.ts\";\nexport type { MirGlobalLexicalName } from \"./mir.ts\";\nexport type { MirGlobalObjectBinding } from \"./mir.ts\";\nexport type { MirControlTarget } from \"./mir.ts\";\nexport type { MirOperation } from \"./mir.ts\";\nexport type { MirTerminator } from \"./mir.ts\";\nexport type { MirBlock } from \"./mir.ts\";\nexport type { MirSpecialization } from \"./mir.ts\";\nexport type { MirFunction } from \"./mir.ts\";\nexport type { MirProgram } from \"./mir.ts\";\nexport type { MirAgentTemplate } from \"./mir.ts\";\nexport type { MirHostScript } from \"./mir.ts\";\nexport type { MirTest262Host } from \"./mir.ts\";\nexport { buildMir } from \"./mir-build.ts\";\nexport { printMir } from \"./mir-print.ts\";\nexport type { CompilationResult } from \"./module-compile.ts\";\nexport type { ModuleCompilationResult } from \"./module-compile.ts\";\nexport { compileModuleGraph } from \"./module-compile.ts\";\nexport type { ScriptModuleRequests } from \"./module-compile.ts\";\nexport { compileSource } from \"./compile.ts\";\nexport type { NativeArchitecture } from \"./native.ts\";\nexport type { NativeOperatingSystem } from \"./native.ts\";\nexport type { NativeAbi } from \"./native.ts\";\nexport type { TargetName } from \"./native.ts\";\nexport type { ExecutionHostDescription } from \"./native.ts\";\nexport type { TargetDescription } from \"./native.ts\";\nexport type { EmittedNativeSource } from \"./native.ts\";\nexport type { NativeSourceFile } from \"./native.ts\";\nexport type { NativeBackend } from \"./native.ts\";\nexport type { RuntimeAsset } from \"./native.ts\";\nexport type { RuntimeArchiveAsset } from \"./native.ts\";\nexport type { RuntimeArchiveKeyInput } from \"./native.ts\";\nexport type { FileFingerprint } from \"./native.ts\";\nexport type { HarnessObjectPin } from \"./native-fragments.ts\";\nexport type { PinnedToolchain } from \"./native.ts\";\nexport type { RuntimeArchiveReuse } from \"./native.ts\";\nexport type { RuntimeInput } from \"./native.ts\";\nexport type { RuntimeInputProvider } from \"./native.ts\";\nexport type { CompilerCache } from \"./native.ts\";\nexport type { CompilerCacheLock } from \"./native.ts\";\nexport type { ProcessEnvironment } from \"./native.ts\";\nexport type { ProcessEnvironmentPolicy } from \"./native.ts\";\nexport type { ProcessRequest } from \"./native.ts\";\nexport type { ProcessObservation } from \"./native.ts\";\nexport type { NativeBuildPlan } from \"./native.ts\";\nexport type { NativeBuildConfiguration } from \"./native.ts\";\nexport type { NativeBuildInput } from \"./native.ts\";\nexport type { NativeToolchain } from \"./native.ts\";\nexport type { CompilerHost } from \"./native.ts\";\nexport type { RegExpSpan } from \"./regexp.ts\";\nexport type { RegExpFlag } from \"./regexp.ts\";\nexport type { RegExpFlags } from \"./regexp.ts\";\nexport { regExpUnicodeMode } from \"./regexp.ts\";\nexport type { RegExpAssertionKind } from \"./regexp.ts\";\nexport type { RegExpEdgeAssertion } from \"./regexp.ts\";\nexport type { RegExpLookaroundDirection } from \"./regexp.ts\";\nexport type { RegExpLookaround } from \"./regexp.ts\";\nexport type { RegExpQuantifier } from \"./regexp.ts\";\nexport type { RegExpQuantified } from \"./regexp.ts\";\nexport type { RegExpCharacter } from \"./regexp.ts\";\nexport type { RegExpDot } from \"./regexp.ts\";\nexport type { RegExpClassEscapeSet } from \"./regexp.ts\";\nexport type { RegExpClassEscape } from \"./regexp.ts\";\nexport type { RegExpUnicodePropertyEscape } from \"./regexp.ts\";\nexport type { RegExpCharacterRange } from \"./regexp.ts\";\nexport type { RegExpClassItem } from \"./regexp.ts\";\nexport type { RegExpCharacterClass } from \"./regexp.ts\";\nexport type { RegExpClassStringDisjunction } from \"./regexp.ts\";\nexport type { RegExpClassSetOperand } from \"./regexp.ts\";\nexport type { RegExpClassSetOperation } from \"./regexp.ts\";\nexport type { RegExpUnicodeClassSet } from \"./regexp.ts\";\nexport type { RegExpCapturingGroup } from \"./regexp.ts\";\nexport type { RegExpGroup } from \"./regexp.ts\";\nexport type { RegExpModifierFlag } from \"./regexp.ts\";\nexport type { RegExpModifierGroup } from \"./regexp.ts\";\nexport type { RegExpBackreference } from \"./regexp.ts\";\nexport type { RegExpNamedBackreference } from \"./regexp.ts\";\nexport type { RegExpAtom } from \"./regexp.ts\";\nexport type { RegExpTerm } from \"./regexp.ts\";\nexport type { RegExpAlternative } from \"./regexp.ts\";\nexport type { RegExpDisjunction } from \"./regexp.ts\";\nexport type { RegExpCapture } from \"./regexp.ts\";\nexport type { RegExpPattern } from \"./regexp.ts\";\nexport type { RegExpErrorKind } from \"./regexp.ts\";\nexport type { RegExpErrorSection } from \"./regexp.ts\";\nexport type { RegExpPatternError } from \"./regexp.ts\";\nexport type { RegExpExtensionPoint } from \"./regexp.ts\";\nexport type { RegExpPatternExtensions } from \"./regexp.ts\";\nexport type { RegExpPatternLimits } from \"./regexp.ts\";\nexport { defaultRegExpPatternLimits } from \"./regexp.ts\";\nexport type { RegExpPatternOptions } from \"./regexp.ts\";\nexport type { RegExpPatternInput } from \"./regexp.ts\";\nexport type { RegExpPatternResult } from \"./regexp.ts\";\nexport type { RegExpLiteralSyntax } from \"./syntax.ts\";\nexport { parseRegExpPattern } from \"./regexp-parse.ts\";\nexport { parseRegExpLiteral } from \"./regexp-parse.ts\";\nexport type { RegExpMatcherSet } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherCanonicalization } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherConsume } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherEdge } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherBoundary } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherSave } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherClear } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherFork } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherJump } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherRepeat } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherRepeatEnter } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherRepeatInit } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherRepeatEnd } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherLookStart } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherLookEnd } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherBackreference } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherAccept } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherFail } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherInstruction } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherProgram } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherUnicodeData } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherLimits } from \"./regexp-matcher.ts\";\nexport { defaultRegExpMatcherLimits } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherOptions } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherResult } from \"./regexp-matcher.ts\";\nexport { buildRegExpMatcher } from \"./regexp-matcher.ts\";\nexport type { RegExpExecutionLimit } from \"./regexp-execute.ts\";\nexport type { RegExpExecutionLimits } from \"./regexp-execute.ts\";\nexport { defaultRegExpExecutionLimits } from \"./regexp-execute.ts\";\nexport type { RegExpExecutionInput } from \"./regexp-execute.ts\";\nexport type { RegExpMatchedExecution } from \"./regexp-execute.ts\";\nexport type { RegExpUnmatchedExecution } from \"./regexp-execute.ts\";\nexport type { RegExpLimitedExecution } from \"./regexp-execute.ts\";\nexport type { RegExpExecution } from \"./regexp-execute.ts\";\nexport { matchRegExpMatcher } from \"./regexp-execute.ts\";\nexport { searchRegExpMatcher } from \"./regexp-execute.ts\";\nexport { printRegExpPattern } from \"./regexp-print.ts\";\nexport { printRegExpMatcher } from \"./regexp-print.ts\";\n/** Render the stable first line of an Oseo diagnostic. */\nexport function renderDiagnostic(diagnostic: Diagnostic): string {\n return renderSourceDiagnostic(diagnostic);\n}\nexport { describeTarget } from \"./native.ts\";\nexport { canExecuteTarget } from \"./native.ts\";\nexport { targetForExecutionHost } from \"./native.ts\";\nexport { scriptFragmentAbi } from \"./fragments.ts\";\nexport { compileHarnessFragment } from \"./fragments.ts\";\nexport { compileBodyFragment } from \"./fragments.ts\";\nexport type { FragmentBinding } from \"./fragments.ts\";\nexport type { ScriptFragment } from \"./fragments.ts\";\nexport type { HarnessFragment } from \"./fragments.ts\";\nexport type { HarnessFragmentResult } from \"./fragments.ts\";\nexport type { BodyFragmentResult } from \"./fragments.ts\";\n\nexport type {\n HarnessObjectBuildInput,\n HarnessObjectKeyInput,\n HarnessObjectReuse,\n} from \"./native.ts\";\nexport { prepareHarnessObject } from \"./native-fragments.ts\";\nexport type { PreparedHarnessObject } from \"./native-fragments.ts\";\n\nexport { lowerFragmentPhases } from \"./fragments.ts\";\n\nexport { createHarnessObjectKey } from \"./native-fragments.ts\";\nexport type { HarnessToolchainPolicy } from \"./native-fragments.ts\";\n\nexport {\n builtinModuleExports,\n isBuiltinModuleSpecifier,\n} from \"./module-builtin.ts\";\nexport type { BuiltinModuleSpecifier, LoadedBuiltinModule } from \"./syntax.ts\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAoRA,SAAgB,iBAAiB,YAAgC;CAC/D,OAAOA,mBAAuB,UAAU;AAC1C"}
1
+ {"version":3,"file":"index.js","names":["renderSourceDiagnostic"],"sources":["../src/index.ts"],"sourcesContent":["/*\n * Oseo, an ahead-of-time compiler for JavaScript and TypeScript.\n * Copyright (C) 2026 Hong Minhee <https://hongminhee.org/>\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <https://www.gnu.org/licenses/>.\n */\n\nimport {\n renderDiagnostic as renderSourceDiagnostic,\n type Diagnostic,\n} from \"./source.ts\";\n\nexport type { DiagnosticCode } from \"./source.ts\";\nexport type { ByteRange } from \"./source.ts\";\nexport type { Position } from \"./source.ts\";\nexport type { SourceRange } from \"./source.ts\";\nexport type { Diagnostic } from \"./source.ts\";\nexport type { SourceInput } from \"./source.ts\";\nexport type { HintProvenance } from \"./syntax.ts\";\nexport type { HintName } from \"./syntax.ts\";\nexport type { Hint } from \"./syntax.ts\";\nexport type { SyntaxCallTarget } from \"./syntax.ts\";\nexport type { BinaryOperator } from \"./syntax.ts\";\nexport type { UnaryOperator } from \"./syntax.ts\";\nexport type { LogicalOperator } from \"./syntax.ts\";\nexport type { AssignmentOperator } from \"./syntax.ts\";\nexport type { UpdateOperator } from \"./syntax.ts\";\nexport type { SyntaxArraySpreadElement } from \"./syntax.ts\";\nexport type { SyntaxArrayElement } from \"./syntax.ts\";\nexport type { SyntaxSpreadArgument } from \"./syntax.ts\";\nexport type { SyntaxCallArgument } from \"./syntax.ts\";\nexport type { SyntaxOptionalChainLink } from \"./syntax.ts\";\nexport type { SyntaxObjectDefinition } from \"./syntax.ts\";\nexport type { SyntaxObjectSpreadProperty } from \"./syntax.ts\";\nexport type { SyntaxObjectProperty } from \"./syntax.ts\";\nexport type { SyntaxPrivateName } from \"./syntax.ts\";\nexport type { SyntaxClassMethod } from \"./syntax.ts\";\nexport type { SyntaxClassField } from \"./syntax.ts\";\nexport type { SyntaxClassStaticBlock } from \"./syntax.ts\";\nexport type { SyntaxClassElement } from \"./syntax.ts\";\nexport type { SyntaxRegExpLiteralExpression } from \"./syntax.ts\";\nexport type { SyntaxExpression } from \"./syntax.ts\";\nexport type { SyntaxThisMode } from \"./syntax.ts\";\nexport type { SyntaxParameter } from \"./syntax.ts\";\nexport type { SyntaxBindingIdentifier } from \"./syntax.ts\";\nexport type { SyntaxAssignmentMemberTarget } from \"./syntax.ts\";\nexport type { SyntaxBindingElement } from \"./syntax.ts\";\nexport type { SyntaxArrayBindingPattern } from \"./syntax.ts\";\nexport type { SyntaxObjectBindingProperty } from \"./syntax.ts\";\nexport type { SyntaxObjectBindingPattern } from \"./syntax.ts\";\nexport type { SyntaxBindingTarget } from \"./syntax.ts\";\nexport type { SyntaxAssignmentTarget } from \"./syntax.ts\";\nexport type { SyntaxBindingPattern } from \"./syntax.ts\";\nexport type { SyntaxAssignmentPattern } from \"./syntax.ts\";\nexport type { HirBindingIdentifier } from \"./hir.ts\";\nexport type { HirAssignmentMemberTarget } from \"./hir.ts\";\nexport type { HirBindingElement } from \"./hir.ts\";\nexport type { HirArrayBindingPattern } from \"./hir.ts\";\nexport type { HirObjectBindingProperty } from \"./hir.ts\";\nexport type { HirObjectBindingPattern } from \"./hir.ts\";\nexport type { HirBindingTarget } from \"./hir.ts\";\nexport type { HirBindingPattern } from \"./hir.ts\";\nexport type { BindingPatternMode } from \"./syntax.ts\";\nexport type { SyntaxSwitchCase } from \"./syntax.ts\";\nexport type { HirSwitchCase } from \"./hir.ts\";\nexport type { SyntaxForDeclaration } from \"./syntax.ts\";\nexport type { HirForDeclaration } from \"./hir.ts\";\nexport type { SyntaxForOfTarget } from \"./syntax.ts\";\nexport type { HirForOfTarget } from \"./hir.ts\";\nexport type { SyntaxForInTarget } from \"./syntax.ts\";\nexport type { HirForInTarget } from \"./hir.ts\";\nexport type { FunctionKind } from \"./syntax.ts\";\nexport type { SyntaxLexicalDeclarator } from \"./syntax.ts\";\nexport type { SyntaxStatement } from \"./syntax.ts\";\nexport type { SyntaxFunction } from \"./syntax.ts\";\nexport type { SyntaxGlobalObjectName } from \"./syntax.ts\";\nexport type { SyntaxGlobalLexicalName } from \"./syntax.ts\";\nexport type { SyntaxProgram } from \"./syntax.ts\";\nexport type { FrontendResult } from \"./syntax.ts\";\nexport type { SourceFrontend } from \"./syntax.ts\";\nexport type { SyntaxModuleSpecifier } from \"./syntax.ts\";\nexport type { SyntaxImportAttribute } from \"./syntax.ts\";\nexport type { SyntaxImportEntry } from \"./syntax.ts\";\nexport type { SyntaxExportEntry } from \"./syntax.ts\";\nexport type { SyntaxModule } from \"./syntax.ts\";\nexport type { ModuleFrontendResult } from \"./syntax.ts\";\nexport type { ModuleSourceFrontend } from \"./syntax.ts\";\nexport type { LoadedModuleSource } from \"./syntax.ts\";\nexport type { LoadedJsonModule } from \"./syntax.ts\";\nexport type { ModuleLoadResult } from \"./syntax.ts\";\nexport type { ModuleLoadReferrer } from \"./syntax.ts\";\nexport type { ModuleLoader } from \"./syntax.ts\";\nexport type { ModuleResolutionResult } from \"./syntax.ts\";\nexport type { ModuleResolver } from \"./syntax.ts\";\nexport type { ModuleDependency } from \"./syntax.ts\";\nexport type { ModuleResolution } from \"./syntax.ts\";\nexport type { ModuleGraphNode } from \"./syntax.ts\";\nexport type { ModuleGraph } from \"./syntax.ts\";\nexport type { ModuleGraphResult } from \"./syntax.ts\";\nexport type { ModuleGraphOptions } from \"./syntax.ts\";\nexport type { ModuleRequestRecord } from \"./syntax.ts\";\nexport type { ModuleRequestReferrer } from \"./syntax.ts\";\nexport type { ScriptRequestClosure } from \"./syntax.ts\";\nexport type { ScriptRequestReferrer } from \"./syntax.ts\";\nexport type { ScriptRequestResult } from \"./syntax.ts\";\nexport type { SyntaxImportCall } from \"./syntax.ts\";\nexport { buildModuleGraph } from \"./modules.ts\";\nexport { buildScriptRequests } from \"./modules.ts\";\nexport { importCallProfileMessage } from \"./hir-build.ts\";\nexport type { LinkedModuleCell } from \"./modules.ts\";\nexport type { LinkedModuleImport } from \"./modules.ts\";\nexport type { LinkedModuleExport } from \"./modules.ts\";\nexport type { LinkedModule } from \"./modules.ts\";\nexport type { ModuleComponent } from \"./modules.ts\";\nexport type { LinkedModuleGraph } from \"./modules.ts\";\nexport type { ModuleLinkResult } from \"./modules.ts\";\nexport { linkModuleGraph } from \"./modules.ts\";\nexport type { ErrorIntrinsicName } from \"./hir.ts\";\nexport type { HirCallTarget } from \"./hir.ts\";\nexport type { HirArraySpreadElement } from \"./hir.ts\";\nexport type { HirArrayElement } from \"./hir.ts\";\nexport type { HirSpreadArgument } from \"./hir.ts\";\nexport type { HirCallArgument } from \"./hir.ts\";\nexport type { HirOptionalChainLink } from \"./hir.ts\";\nexport type { HirObjectDefinition } from \"./hir.ts\";\nexport type { HirObjectSpreadProperty } from \"./hir.ts\";\nexport type { HirObjectProperty } from \"./hir.ts\";\nexport type { HirClassMethod } from \"./hir.ts\";\nexport type { HirClassStaticBlock } from \"./hir.ts\";\nexport type { HirClassElement } from \"./hir.ts\";\nexport type { HirClassNameBinding } from \"./hir.ts\";\nexport type { HirExpression } from \"./hir.ts\";\nexport type { HirStatement } from \"./hir.ts\";\nexport type { HirParameter } from \"./hir.ts\";\nexport type { HirFunction } from \"./hir.ts\";\nexport type { HirGlobalBinding } from \"./hir.ts\";\nexport type { HirGlobalLexicalName } from \"./hir.ts\";\nexport type { HirProgram } from \"./hir.ts\";\nexport type { HirResult } from \"./hir.ts\";\nexport { buildHir } from \"./hir-build.ts\";\nexport { printHir } from \"./hir-print.ts\";\nexport type { MirConstant } from \"./mir.ts\";\nexport type { MirCallTarget } from \"./mir.ts\";\nexport type { MirHint } from \"./mir.ts\";\nexport type { SpecializationMode } from \"./mir.ts\";\nexport type { UnhandledRejectionPolicy } from \"./mir.ts\";\nexport type { CompilerOptions } from \"./mir.ts\";\nexport type { MirParameter } from \"./mir.ts\";\nexport type { MirGlobalBinding } from \"./mir.ts\";\nexport type { MirGlobalLexicalName } from \"./mir.ts\";\nexport type { MirGlobalObjectBinding } from \"./mir.ts\";\nexport type { MirControlTarget } from \"./mir.ts\";\nexport type { MirOperation } from \"./mir.ts\";\nexport type { MirTerminator } from \"./mir.ts\";\nexport type { MirBlock } from \"./mir.ts\";\nexport type { MirSpecialization } from \"./mir.ts\";\nexport type { MirFunction } from \"./mir.ts\";\nexport type { MirProgram } from \"./mir.ts\";\nexport type { MirAgentTemplate } from \"./mir.ts\";\nexport type { MirHostScript } from \"./mir.ts\";\nexport type { MirTest262Host } from \"./mir.ts\";\nexport { buildMir } from \"./mir-build.ts\";\nexport { printMir } from \"./mir-print.ts\";\nexport type { CompilationResult } from \"./module-compile.ts\";\nexport type { ModuleCompilationResult } from \"./module-compile.ts\";\nexport { compileModuleGraph } from \"./module-compile.ts\";\nexport type { ScriptModuleRequests } from \"./module-compile.ts\";\nexport { compileSource } from \"./compile.ts\";\nexport type { NativeArchitecture } from \"./native.ts\";\nexport type { NativeOperatingSystem } from \"./native.ts\";\nexport type { NativeAbi } from \"./native.ts\";\nexport type { TargetName } from \"./native.ts\";\nexport type { ExecutionHostDescription } from \"./native.ts\";\nexport type { TargetDescription } from \"./native.ts\";\nexport type { EmittedNativeSource } from \"./native.ts\";\nexport type { NativeSourceFile } from \"./native.ts\";\nexport type { NativeBackend } from \"./native.ts\";\nexport type { RuntimeAsset } from \"./native.ts\";\nexport type { RuntimeArchiveAsset } from \"./native.ts\";\nexport type { RuntimeArchiveKeyInput } from \"./native.ts\";\nexport type { FileFingerprint } from \"./native.ts\";\nexport type { HarnessObjectPin } from \"./native-fragments.ts\";\nexport type { PinnedToolchain } from \"./native.ts\";\nexport type { RuntimeArchiveReuse } from \"./native.ts\";\nexport type { RuntimeInput } from \"./native.ts\";\nexport type { RuntimeInputProvider } from \"./native.ts\";\nexport type { CompilerCache } from \"./native.ts\";\nexport type { CompilerCacheLock } from \"./native.ts\";\nexport type { ProcessEnvironment } from \"./native.ts\";\nexport type { ProcessEnvironmentPolicy } from \"./native.ts\";\nexport type { ProcessRequest } from \"./native.ts\";\nexport type { ProcessObservation } from \"./native.ts\";\nexport type { NativeBuildPlan } from \"./native.ts\";\nexport type { NativeBuildConfiguration } from \"./native.ts\";\nexport type { NativeBuildInput } from \"./native.ts\";\nexport type { NativeToolchain } from \"./native.ts\";\nexport type { CompilerHost } from \"./native.ts\";\nexport type { RegExpSpan } from \"./regexp.ts\";\nexport type { RegExpFlag } from \"./regexp.ts\";\nexport type { RegExpFlags } from \"./regexp.ts\";\nexport { regExpUnicodeMode } from \"./regexp.ts\";\nexport type { RegExpAssertionKind } from \"./regexp.ts\";\nexport type { RegExpEdgeAssertion } from \"./regexp.ts\";\nexport type { RegExpLookaroundDirection } from \"./regexp.ts\";\nexport type { RegExpLookaround } from \"./regexp.ts\";\nexport type { RegExpQuantifier } from \"./regexp.ts\";\nexport type { RegExpQuantified } from \"./regexp.ts\";\nexport type { RegExpCharacter } from \"./regexp.ts\";\nexport type { RegExpDot } from \"./regexp.ts\";\nexport type { RegExpClassEscapeSet } from \"./regexp.ts\";\nexport type { RegExpClassEscape } from \"./regexp.ts\";\nexport type { RegExpUnicodePropertyEscape } from \"./regexp.ts\";\nexport type { RegExpCharacterRange } from \"./regexp.ts\";\nexport type { RegExpClassItem } from \"./regexp.ts\";\nexport type { RegExpCharacterClass } from \"./regexp.ts\";\nexport type { RegExpClassStringDisjunction } from \"./regexp.ts\";\nexport type { RegExpClassSetOperand } from \"./regexp.ts\";\nexport type { RegExpClassSetOperation } from \"./regexp.ts\";\nexport type { RegExpUnicodeClassSet } from \"./regexp.ts\";\nexport type { RegExpCapturingGroup } from \"./regexp.ts\";\nexport type { RegExpGroup } from \"./regexp.ts\";\nexport type { RegExpModifierFlag } from \"./regexp.ts\";\nexport type { RegExpModifierGroup } from \"./regexp.ts\";\nexport type { RegExpBackreference } from \"./regexp.ts\";\nexport type { RegExpNamedBackreference } from \"./regexp.ts\";\nexport type { RegExpAtom } from \"./regexp.ts\";\nexport type { RegExpTerm } from \"./regexp.ts\";\nexport type { RegExpAlternative } from \"./regexp.ts\";\nexport type { RegExpDisjunction } from \"./regexp.ts\";\nexport type { RegExpCapture } from \"./regexp.ts\";\nexport type { RegExpPattern } from \"./regexp.ts\";\nexport type { RegExpErrorKind } from \"./regexp.ts\";\nexport type { RegExpErrorSection } from \"./regexp.ts\";\nexport type { RegExpPatternError } from \"./regexp.ts\";\nexport type { RegExpExtensionPoint } from \"./regexp.ts\";\nexport type { RegExpPatternExtensions } from \"./regexp.ts\";\nexport type { RegExpPatternLimits } from \"./regexp.ts\";\nexport { defaultRegExpPatternLimits } from \"./regexp.ts\";\nexport type { RegExpPatternOptions } from \"./regexp.ts\";\nexport type { RegExpPatternInput } from \"./regexp.ts\";\nexport type { RegExpPatternResult } from \"./regexp.ts\";\nexport type { RegExpLiteralSyntax } from \"./syntax.ts\";\nexport { parseRegExpPattern } from \"./regexp-parse.ts\";\nexport { parseRegExpLiteral } from \"./regexp-parse.ts\";\nexport type { RegExpMatcherSet } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherCanonicalization } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherConsume } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherEdge } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherBoundary } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherSave } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherClear } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherFork } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherJump } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherRepeat } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherRepeatEnter } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherRepeatInit } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherRepeatEnd } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherLookStart } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherLookEnd } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherBackreference } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherAccept } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherFail } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherInstruction } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherProgram } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherUnicodeData } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherLimits } from \"./regexp-matcher.ts\";\nexport { defaultRegExpMatcherLimits } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherOptions } from \"./regexp-matcher.ts\";\nexport type { RegExpMatcherResult } from \"./regexp-matcher.ts\";\nexport { buildRegExpMatcher } from \"./regexp-matcher.ts\";\nexport type { RegExpExecutionLimit } from \"./regexp-execute.ts\";\nexport type { RegExpExecutionLimits } from \"./regexp-execute.ts\";\nexport { defaultRegExpExecutionLimits } from \"./regexp-execute.ts\";\nexport type { RegExpExecutionInput } from \"./regexp-execute.ts\";\nexport type { RegExpMatchedExecution } from \"./regexp-execute.ts\";\nexport type { RegExpUnmatchedExecution } from \"./regexp-execute.ts\";\nexport type { RegExpLimitedExecution } from \"./regexp-execute.ts\";\nexport type { RegExpExecution } from \"./regexp-execute.ts\";\nexport { matchRegExpMatcher } from \"./regexp-execute.ts\";\nexport { searchRegExpMatcher } from \"./regexp-execute.ts\";\nexport { printRegExpPattern } from \"./regexp-print.ts\";\nexport { printRegExpMatcher } from \"./regexp-print.ts\";\n/** Render the stable first line of an Oseo diagnostic. */\nexport function renderDiagnostic(diagnostic: Diagnostic): string {\n return renderSourceDiagnostic(diagnostic);\n}\nexport { describeTarget } from \"./native.ts\";\nexport { canExecuteTarget } from \"./native.ts\";\nexport { targetForExecutionHost } from \"./native.ts\";\nexport { scriptFragmentAbi } from \"./fragments.ts\";\nexport { compileHarnessFragment } from \"./fragments.ts\";\nexport { compileBodyFragment } from \"./fragments.ts\";\nexport type { FragmentBinding } from \"./fragments.ts\";\nexport type { ScriptFragment } from \"./fragments.ts\";\nexport type { HarnessFragment } from \"./fragments.ts\";\nexport type { HarnessFragmentResult } from \"./fragments.ts\";\nexport type { BodyFragmentResult } from \"./fragments.ts\";\n\nexport type {\n HarnessObjectBuildInput,\n HarnessObjectKeyInput,\n HarnessObjectReuse,\n} from \"./native.ts\";\nexport { prepareHarnessObject } from \"./native-fragments.ts\";\nexport type { PreparedHarnessObject } from \"./native-fragments.ts\";\n\nexport { lowerFragmentPhases } from \"./fragments.ts\";\n\nexport { createHarnessObjectKey } from \"./native-fragments.ts\";\nexport type { HarnessToolchainPolicy } from \"./native-fragments.ts\";\n\nexport {\n builtinModuleExports,\n isBuiltinModuleSpecifier,\n} from \"./module-builtin.ts\";\nexport type { BuiltinModuleSpecifier, LoadedBuiltinModule } from \"./syntax.ts\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAsSA,SAAgB,iBAAiB,YAAgC;CAC/D,OAAOA,mBAAuB,UAAU;AAC1C"}
@@ -1 +1 @@
1
- {"version":3,"file":"mir-build.d.ts","names":[],"sources":["../src/mir-build.ts"],"mappings":";;;;iBAm/QgB,SACd,SAAS,YACT,UAAS,kBACR"}
1
+ {"version":3,"file":"mir-build.d.ts","names":[],"sources":["../src/mir-build.ts"],"mappings":";;;;iBAqgRgB,SACd,SAAS,YACT,UAAS,kBACR"}