@reactra/language-tools 0.1.0-alpha.0
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.
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/cli/reactra-tsc.d.ts +3 -0
- package/dist/cli/reactra-tsc.d.ts.map +1 -0
- package/dist/cli/reactra-tsc.js +25 -0
- package/dist/cli/reactra-tsc.js.map +1 -0
- package/dist/diagnostic-plugin.d.ts +12 -0
- package/dist/diagnostic-plugin.d.ts.map +1 -0
- package/dist/diagnostic-plugin.js +112 -0
- package/dist/diagnostic-plugin.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/language-plugin.d.ts +44 -0
- package/dist/language-plugin.d.ts.map +1 -0
- package/dist/language-plugin.js +323 -0
- package/dist/language-plugin.js.map +1 -0
- package/dist/lsp/server.cjs +68546 -0
- package/dist/shadow/emitter.d.ts +15 -0
- package/dist/shadow/emitter.d.ts.map +1 -0
- package/dist/shadow/emitter.js +871 -0
- package/dist/shadow/emitter.js.map +1 -0
- package/dist/shadow/index.d.ts +3 -0
- package/dist/shadow/index.d.ts.map +1 -0
- package/dist/shadow/index.js +4 -0
- package/dist/shadow/index.js.map +1 -0
- package/dist/shadow/mapper.d.ts +55 -0
- package/dist/shadow/mapper.d.ts.map +1 -0
- package/dist/shadow/mapper.js +111 -0
- package/dist/shadow/mapper.js.map +1 -0
- package/dist/ts-plugin/impl.cjs +50132 -0
- package/dist/ts-plugin/index.cjs +3 -0
- package/dist/ts-plugin/package.json +8 -0
- package/package.json +58 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { FileGraph, Rewrite } from "@reactra/babel-plugin";
|
|
2
|
+
import type { ShadowResult } from "./mapper.ts";
|
|
3
|
+
/** Re-export for callers that import from this module only. */
|
|
4
|
+
export type { ShadowResult };
|
|
5
|
+
/**
|
|
6
|
+
* Emit a TypeScript shadow file for the given FileGraph.
|
|
7
|
+
*
|
|
8
|
+
* @param graph - result of compile(source).graph
|
|
9
|
+
* @param source - the original DSL source string (for slice offsets)
|
|
10
|
+
* @param rewrites - compile(source).rewrites — used to compose preprocessed→DSL offsets.
|
|
11
|
+
* Pass an empty array when source-map fidelity is not required.
|
|
12
|
+
* @returns shadow text + position mappings
|
|
13
|
+
*/
|
|
14
|
+
export declare const emitShadow: (graph: FileGraph, source: string, rewrites?: Rewrite[]) => ShadowResult;
|
|
15
|
+
//# sourceMappingURL=emitter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emitter.d.ts","sourceRoot":"","sources":["../../src/shadow/emitter.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,SAAS,EAgBT,OAAO,EACR,MAAM,uBAAuB,CAAA;AAQ9B,OAAO,KAAK,EAAE,YAAY,EAAiB,MAAM,aAAa,CAAA;AAM9D,+DAA+D;AAC/D,YAAY,EAAE,YAAY,EAAE,CAAA;AAqJ5B;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,SAAS,EAAE,QAAQ,MAAM,EAAE,WAAU,OAAO,EAAO,KAAG,YAwGvF,CAAA"}
|