@ttsc/wasm 0.18.2 → 0.18.4
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/dist/ttsc.wasm +0 -0
- package/package.json +1 -1
- package/shim-vendor/shim/printer/shim.go +22 -4
package/dist/ttsc.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
// Package printer re-exports the typescript-go internal/printer types
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
// the construction and single-file emit path are exposed.
|
|
1
|
+
// Package printer re-exports the typescript-go internal/printer types that the
|
|
2
|
+
// ttsc driver and transform plugins need to emit source text and allocate
|
|
3
|
+
// collision-safe generated identifiers. The surface is intentionally narrow.
|
|
5
4
|
package printer
|
|
6
5
|
|
|
7
6
|
import (
|
|
@@ -24,6 +23,25 @@ type PrinterOptions = innerprinter.PrinterOptions
|
|
|
24
23
|
// and must be created fresh for each emit round via NewEmitContext.
|
|
25
24
|
type EmitContext = innerprinter.EmitContext
|
|
26
25
|
|
|
26
|
+
// AutoGenerateOptions configures how NodeFactory allocates generated names.
|
|
27
|
+
type AutoGenerateOptions = innerprinter.AutoGenerateOptions
|
|
28
|
+
|
|
29
|
+
// GeneratedIdentifierFlags controls generated-name scope and collision checks.
|
|
30
|
+
type GeneratedIdentifierFlags = innerprinter.GeneratedIdentifierFlags
|
|
31
|
+
|
|
32
|
+
const (
|
|
33
|
+
GeneratedIdentifierFlagsNone = innerprinter.GeneratedIdentifierFlagsNone
|
|
34
|
+
GeneratedIdentifierFlagsAuto = innerprinter.GeneratedIdentifierFlagsAuto
|
|
35
|
+
GeneratedIdentifierFlagsLoop = innerprinter.GeneratedIdentifierFlagsLoop
|
|
36
|
+
GeneratedIdentifierFlagsUnique = innerprinter.GeneratedIdentifierFlagsUnique
|
|
37
|
+
GeneratedIdentifierFlagsNode = innerprinter.GeneratedIdentifierFlagsNode
|
|
38
|
+
GeneratedIdentifierFlagsKindMask = innerprinter.GeneratedIdentifierFlagsKindMask
|
|
39
|
+
GeneratedIdentifierFlagsReservedInNestedScopes = innerprinter.GeneratedIdentifierFlagsReservedInNestedScopes
|
|
40
|
+
GeneratedIdentifierFlagsOptimistic = innerprinter.GeneratedIdentifierFlagsOptimistic
|
|
41
|
+
GeneratedIdentifierFlagsFileLevel = innerprinter.GeneratedIdentifierFlagsFileLevel
|
|
42
|
+
GeneratedIdentifierFlagsAllowNameSubstitution = innerprinter.GeneratedIdentifierFlagsAllowNameSubstitution
|
|
43
|
+
)
|
|
44
|
+
|
|
27
45
|
// NewPrinter creates an emitter with the supplied options, substitution hooks,
|
|
28
46
|
// and emit context. Callers must pass the same EmitContext to all operations
|
|
29
47
|
// in a single emit round.
|