gen_shims

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2026 License: Apache-2.0, MIT Imports: 14 Imported by: 0

README

Shim generator

Run this command from the repository root:

go run ./tools/gen_shims

The generator rewrites shim.go in these public package trees: ast, bundled, checker, compiler, core, parser, scanner, tsoptions, tspath, vfs, vfs/cachedvfs, and vfs/osvfs.

It reads each package's extra-shim.json when present. It does not rewrite manual files such as ast/helpers.go and compiler/semantic_diagnostics.go.

The generator and the initial generated shims were adapted from oxc-project/tsgolint commit 7324ae6a96cacd6284a0d0fb7397073052005c0a. That source pins microsoft/typescript-go commit 2bd066d87f5bafd315be9f40889d0a60b9e58e0b. The local copy is included so shim updates do not depend on a moving external tool.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL