Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
09edcb8
Optimize resolution of single non-generic construct signatures (#1865)
ahejlsberg Oct 10, 2025
7dd4ae5
Fix number conversion for Go 1.26 (#1864)
jakebailey Oct 10, 2025
cf3e0c2
fix(1374): support declaration emit for expando functions (#1399)
a-tarasyuk Oct 10, 2025
a05e479
Re-port isUsedInFunctionOrInstanceProperty (#1872)
jakebailey Oct 11, 2025
c315580
add pnp resolution support
gun-yu Oct 11, 2025
99dc36c
remove fmt
gun-yu Oct 11, 2025
25b13ac
pnp internalize
gun-yu Oct 11, 2025
f24a170
remove useless code
gun-yu Oct 11, 2025
b4aaac8
remove useless code
gun-yu Oct 11, 2025
2373552
use go-json-experiment/json
gun-yu Oct 11, 2025
f09cda5
lint fix
gun-yu Oct 12, 2025
d00e36b
Merge branch 'main' into feat/add-pnp-resolver
gun-yu Oct 12, 2025
0a0f050
change test data path
gun-yu Oct 12, 2025
94a15b7
fix hereby format
gun-yu Oct 12, 2025
35d6188
fix hereby check:format
gun-yu Oct 13, 2025
35ee2ef
fix window test
gun-yu Oct 13, 2025
9463e11
Merge branch 'feat/add-pnp-resolver' of https://github.com/gun-yu/typ…
gun-yu Oct 13, 2025
fd15f29
Default useTsgo settings change to user preferences (#1879)
andrewbranch Oct 13, 2025
dd08ae5
Merge branch 'main' into feat/add-pnp-resolver
gun-yu Oct 14, 2025
b368c1c
add License
gun-yu Oct 14, 2025
688455e
Merge branch 'feat/add-pnp-resolver' of https://github.com/gun-yu/typ…
gun-yu Oct 14, 2025
6183abf
Port 'go to type definition' tests (#1883)
gabritto Oct 15, 2025
2ad9453
Fix panic in `getTokenAtPosition` for JSDoc type assertions (#1846)
Copilot Oct 16, 2025
305fd49
remove filepath and utils
gun-yu Oct 16, 2025
f0ee55b
make regex more efficient
gun-yu Oct 16, 2025
ef6d713
fix lint
gun-yu Oct 16, 2025
8d165ca
Merge branch 'main' into feat/add-pnp-resolver
gun-yu Oct 16, 2025
0f6b0a7
Don’t look in JSExportAssignment and CommonJSExport for nodes (#1886)
andrewbranch Oct 16, 2025
49e5285
Fix link in native preview platform packages (#1838)
jakebailey Oct 17, 2025
20b1482
fix(1880): No error message for JSDoc type parsing (#1881)
a-tarasyuk Oct 17, 2025
7a4a79f
Add vscode editor issue template (#1893)
mjbvz Oct 17, 2025
5207eb8
Add "Report Issue" button to TSGO status bar commands (#1889)
Copilot Oct 17, 2025
ae272f1
apply codereview
gun-yu Oct 18, 2025
67752dc
generate error message
gun-yu Oct 18, 2025
1f06041
add error message
gun-yu Oct 18, 2025
a9dbc68
parse pnp.cjs file, regex to ast
gun-yu Oct 18, 2025
df40d62
make go version 1.25.0
gun-yu Oct 18, 2025
1485fe3
remove useless test
gun-yu Oct 18, 2025
80e287b
fix(1898): adjust location handling in find-refs (#1901)
a-tarasyuk Oct 18, 2025
30cbd10
Fix panic of empty string in type reference directive (#1908)
Twacqwq Oct 20, 2025
7ee8b4e
Consistently error on full circle of circular import aliases (#1904)
ahejlsberg Oct 20, 2025
da8e4e0
Fix panic in textDocument/onTypeFormatting when tokenAtPosition is ni…
Copilot Oct 20, 2025
fe0cafa
Update submodule (#1913)
andrewbranch Oct 20, 2025
0a61d1a
Disable create-cache.yml in forks (#1912)
jakebailey Oct 20, 2025
bfa05c3
apply UnmarshalJSONFrom
gun-yu Oct 21, 2025
55cbead
Forbid platform specific package uses in agnostic files (#1911)
jakebailey Oct 21, 2025
62fcda7
Fix JSDoc comment formatting with tab indentation (#1900)
Copilot Oct 21, 2025
e697dce
apply UnmarshalJSONFrom in manifest
gun-yu Oct 21, 2025
d491e60
Clear local baseline dir in hereby test (#1921)
jakebailey Oct 22, 2025
58d4391
Unskip passing fourslash test (#1922)
jakebailey Oct 22, 2025
0874642
Support auto-import completion fourslash tests, fix bugs (#1917)
andrewbranch Oct 22, 2025
fc800a7
Fix JSX indentation in JavaScript output (#1792)
Copilot Oct 22, 2025
80d537a
Implement printAllHelp to fix `tsgo --all` producing no output (#1843)
Copilot Oct 22, 2025
e866aa9
Bump the github-actions group across 1 directory with 2 updates (#1909)
dependabot[bot] Oct 22, 2025
80cbbd9
Ensure os package is forbidden in lint (#1924)
jakebailey Oct 22, 2025
48b739c
Speed up levenshteinWithMax by reusing buffers (#1823)
jakebailey Oct 22, 2025
cfbb8b4
Fix incorrect formatting for comments inside multi-line argument list…
Copilot Oct 22, 2025
0d152d3
Handle nil end position in getMappedLocation (#1920)
jakebailey Oct 22, 2025
5d349b6
Fix formatter adding extra space at end of line without trailing newl…
Copilot Oct 22, 2025
06a7b84
Fix vscode issue template (#1934)
mjbvz Oct 22, 2025
5cb55d4
userpreferences parsing/ls config handing (#1729)
iisaduan Oct 22, 2025
42241ec
Plumb through TokenFlagsSingleQuote; use for auto import quote detect…
andrewbranch Oct 22, 2025
1041038
os to vfs
gun-yu Oct 23, 2025
71b47c4
Invalidate caches on batches of 1000+ watch changes (#1869)
andrewbranch Oct 23, 2025
18eabdd
Create clickable links in quick info from @link JSDoc tags (#1935)
ahejlsberg Oct 23, 2025
def283d
Don't report errors on `{@link foo.bar}` references (#1941)
ahejlsberg Oct 23, 2025
8bf36dd
Fix crash in `invocationErrorRecovery` function (#1944)
ahejlsberg Oct 23, 2025
baf7d5a
Merge branch 'main' into feat/add-pnp-resolver
gun-yu Oct 24, 2025
5c2cafa
Fix leading source file comment emit bugs (#1945)
jakebailey Oct 24, 2025
2a2e04d
Implement selection ranges (#1939)
jakebailey Oct 24, 2025
0487292
Fix porting bug in isArgumentAndStartLineOverlapsExpressionBeingCalle…
jakebailey Oct 24, 2025
01b7670
inject pnpResolutionConfig
gun-yu Oct 24, 2025
707270b
Merge branch 'feat/add-pnp-resolver' of https://github.com/gun-yu/typ…
gun-yu Oct 24, 2025
6b2f0c1
add comment for ata
gun-yu Oct 24, 2025
5c1cb56
remove useless test
gun-yu Oct 24, 2025
6747e23
change comment
gun-yu Oct 24, 2025
b9322a1
Merge branch 'main' into feat/add-pnp-resolver
gun-yu Oct 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
48 changes: 48 additions & 0 deletions .github/ISSUE_TEMPLATE/03-vscode-editor-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: 'VS Code Editor Issue'
description: 'Issue using tsgo in VS Code'
labels: 'Domain: Editor'
assignees: []
body:
- type: input
id: extension_version
attributes:
label: Extension Version
description: The version of the TypeScript (native preview) extension
placeholder: '0.20251016.x'
validations:
required: true
- type: input
id: vscode_version
attributes:
label: VS Code Version
description: The version of the VS Code you are using
placeholder: '1.105.x'
validations:
required: true
- type: input
id: os_version
attributes:
label: Operating system Version
description: Your operating system and version
validations:
required: true
- type: textarea
id: steps
attributes:
label: 'Steps to reproduce'
description: |
Information about how to reproduce the issue and expected behavior
value: |
1.
2.
3.
validations:
required: true
- type: textarea
id: bug_info
attributes:
label: 'Issue'
description: |
Information about the bug, such as expected vs actual behavior
validations:
required: true
File renamed without changes.
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
- uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable
- uses: ./.github/actions/setup-go

Expand All @@ -45,7 +45,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
- uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable

- run: npm ci
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
submodules: ${{ !matrix.config.no-submodules }}
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: 'lts/*'
- uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable
Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:

steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
- uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable
- uses: ./.github/actions/setup-go
with:
Expand All @@ -215,7 +215,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
- uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable
- uses: ./.github/actions/setup-go

Expand All @@ -229,7 +229,7 @@ jobs:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
submodules: true
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: '>=22.16.0'
- uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable
Expand Down Expand Up @@ -263,7 +263,7 @@ jobs:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
submodules: true
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
- uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable
- uses: ./.github/actions/setup-go

Expand Down Expand Up @@ -299,7 +299,7 @@ jobs:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
submodules: true
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
- uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable
- uses: ./.github/actions/setup-go

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.29.5
uses: github/codeql-action/init@16140ae1a102900babc80a33c44059580f687047 # v4.30.9
with:
config-file: ./.github/codeql/codeql-configuration.yml
# Override language selection by uncommenting this and choosing your languages
Expand All @@ -58,7 +58,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below).
- name: Autobuild
uses: github/codeql-action/autobuild@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.29.5
uses: github/codeql-action/autobuild@16140ae1a102900babc80a33c44059580f687047 # v4.30.9

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -72,4 +72,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.29.5
uses: github/codeql-action/analyze@16140ae1a102900babc80a33c44059580f687047 # v4.30.9
2 changes: 1 addition & 1 deletion .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
submodules: true
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
- uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable
- uses: ./.github/actions/setup-go
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/create-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ defaults:

jobs:
cache:
if: github.repository == 'microsoft/typescript-go'

strategy:
fail-fast: false
matrix:
Expand All @@ -39,7 +41,7 @@ jobs:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
submodules: true
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
- uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable

- uses: ./.github/actions/setup-go
Expand Down
20 changes: 20 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ linters:
- errname
- errorlint
- fatcontext
- forbidigo
- gocheckcompilerdirectives
- goprintffuncname
- govet
Expand Down Expand Up @@ -70,11 +71,30 @@ linters:
- pkg: 'encoding/json$'
desc: 'Use "github.com/go-json-experiment/json" instead.'

forbidigo:
analyze-types: true
forbid:
- pattern: '.*'
msg: tspath should likely be used instead
pkg: ^(path|path/filepath)$
- pattern: '.*'
msg: a host implementation should likely be used instead
pkg: ^os(/|$)
- pattern: 'GOOS'
msg: a host implementation should likely be used instead
pkg: ^runtime$

exclusions:
rules:
- path: internal/fourslash/tests/gen/
linters:
- misspell
- path: 'internal/(repo|testutil|testrunner|vfs|pprof|execute/tsctests|bundled)|cmd/tsgo'
text: should likely be used instead
- path: '(.+)_test\.go$'
text: should likely be used instead
- path: '_tools'
text: should likely be used instead

presets:
- comments
Expand Down
14 changes: 12 additions & 2 deletions Herebyfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const { values: rawOptions } = parseArgs({
tests: { type: "string", short: "t" },
fix: { type: "boolean" },
debug: { type: "boolean" },
dirty: { type: "boolean" },

insiders: { type: "boolean" },

Expand Down Expand Up @@ -325,6 +326,12 @@ function goTest(taskName) {

async function runTests() {
warnIfTypeScriptSubmoduleNotCloned();

if (!options.dirty) {
await rimraf(localBaseline);
await fs.promises.mkdir(localBaseline, { recursive: true });
}

await $test`${gotestsum("tests")} ./... ${isCI ? ["--timeout=45m"] : []}`;
}

Expand Down Expand Up @@ -520,10 +527,13 @@ function baselineAcceptTask(localBaseline, refBaseline) {
};
}

const localBaseline = "testdata/baselines/local/";
const refBaseline = "testdata/baselines/reference/";

export const baselineAccept = task({
name: "baseline-accept",
description: "Makes the most recent test results the new baseline, overwriting the old baseline.",
run: baselineAcceptTask("testdata/baselines/local/", "testdata/baselines/reference/"),
run: baselineAcceptTask(localBaseline, refBaseline),
});

/**
Expand Down Expand Up @@ -1127,7 +1137,7 @@ export const buildNativePreviewPackages = task({
const readme = [
`# \`${npmPackageName}\``,
"",
`This package provides ${nodeOs}-${nodeArch} support for [${packageJson.name}](https://www.npmjs.com/package/${packageJson.name}).`,
`This package provides ${nodeOs}-${nodeArch} support for [${mainNativePreviewPackage.npmPackageName}](https://www.npmjs.com/package/${mainNativePreviewPackage.npmPackageName}).`,
];

fs.promises.writeFile(path.join(npmDir, "README.md"), readme.join("\n") + "\n");
Expand Down
6 changes: 6 additions & 0 deletions _extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@
"title": "Show LSP Trace",
"enablement": "typescript.native-preview.serverRunning",
"category": "TypeScript Native Preview"
},
{
"command": "typescript.native-preview.reportIssue",
"title": "Report Issue",
"enablement": "typescript.native-preview.serverRunning",
"category": "TypeScript Native Preview"
}
]
},
Expand Down
13 changes: 12 additions & 1 deletion _extension/src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ export function registerLanguageCommands(context: vscode.ExtensionContext, clien

disposables.push(vscode.commands.registerCommand("typescript.native-preview.showMenu", showCommands));

disposables.push(vscode.commands.registerCommand("typescript.native-preview.reportIssue", () => {
vscode.commands.executeCommand("workbench.action.openIssueReporter", {
extensionId: "TypeScriptTeam.native-preview",
});
}));

return disposables;
}

Expand All @@ -50,7 +56,7 @@ async function updateUseTsgoSetting(enable: boolean): Promise<void> {
useTsgo.globalValue !== undefined ? vscode.ConfigurationTarget.Global : undefined;
}
// Update the setting and restart the extension host (needed to change the state of the built-in TS extension)
await tsConfig.update("experimental.useTsgo", enable, target);
await tsConfig.update("experimental.useTsgo", enable, target ?? vscode.ConfigurationTarget.Global);
await restartExtHostOnChangeIfNeeded();
}

Expand All @@ -74,6 +80,11 @@ async function showCommands(): Promise<void> {
description: "Show the LSP communication trace",
command: "typescript.native-preview.lsp-trace.focus",
},
{
label: "$(report) Report Issue",
description: "Report an issue with TypeScript Native Preview",
command: "typescript.native-preview.reportIssue",
},
{
label: "$(stop-circle) Disable TypeScript Native Preview",
description: "Switch back to the built-in TypeScript extension",
Expand Down
2 changes: 1 addition & 1 deletion _submodules/TypeScript
Submodule TypeScript updated 774 files
14 changes: 13 additions & 1 deletion cmd/tsgo/lsp.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
package main

import (
"context"
"flag"
"fmt"
"os"
"os/exec"
"os/signal"
"runtime"
"syscall"

"github.com/microsoft/typescript-go/internal/bundled"
"github.com/microsoft/typescript-go/internal/core"
Expand Down Expand Up @@ -49,9 +53,17 @@ func runLSP(args []string) int {
FS: fs,
DefaultLibraryPath: defaultLibraryPath,
TypingsLocation: typingsLocation,
NpmInstall: func(cwd string, args []string) ([]byte, error) {
cmd := exec.Command("npm", args...)
cmd.Dir = cwd
return cmd.Output()
},
})

if err := s.Run(); err != nil {
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
defer stop()

if err := s.Run(ctx); err != nil {
return 1
}
return 0
Expand Down
20 changes: 20 additions & 0 deletions internal/ast/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -8706,6 +8706,10 @@ func (node *TemplateHead) Clone(f NodeFactoryCoercible) *Node {
return cloneNode(f.AsNodeFactory().NewTemplateHead(node.Text, node.RawText, node.TemplateFlags), node.AsNode(), f.AsNodeFactory().hooks)
}

func IsTemplateHead(node *Node) bool {
return node.Kind == KindTemplateHead
}

// TemplateMiddle

type TemplateMiddle struct {
Expand All @@ -8726,6 +8730,10 @@ func (node *TemplateMiddle) Clone(f NodeFactoryCoercible) *Node {
return cloneNode(f.AsNodeFactory().NewTemplateMiddle(node.Text, node.RawText, node.TemplateFlags), node.AsNode(), f.AsNodeFactory().hooks)
}

func IsTemplateMiddle(node *Node) bool {
return node.Kind == KindTemplateMiddle
}

// TemplateTail

type TemplateTail struct {
Expand All @@ -8746,6 +8754,10 @@ func (node *TemplateTail) Clone(f NodeFactoryCoercible) *Node {
return cloneNode(f.AsNodeFactory().NewTemplateTail(node.Text, node.RawText, node.TemplateFlags), node.AsNode(), f.AsNodeFactory().hooks)
}

func IsTemplateTail(node *Node) bool {
return node.Kind == KindTemplateTail
}

// TemplateLiteralTypeNode

type TemplateLiteralTypeNode struct {
Expand Down Expand Up @@ -9635,6 +9647,10 @@ func (node *JSDocTypeExpression) Clone(f NodeFactoryCoercible) *Node {
return cloneNode(f.AsNodeFactory().NewJSDocTypeExpression(node.Type), node.AsNode(), f.AsNodeFactory().hooks)
}

func IsJSDocTypeExpression(node *Node) bool {
return node.Kind == KindJSDocTypeExpression
}

// JSDocNonNullableType

type JSDocNonNullableType struct {
Expand Down Expand Up @@ -10565,6 +10581,10 @@ func (node *JSDocTypeLiteral) Clone(f NodeFactoryCoercible) *Node {
return cloneNode(f.AsNodeFactory().NewJSDocTypeLiteral(node.JSDocPropertyTags, node.IsArrayType), node.AsNode(), f.AsNodeFactory().hooks)
}

func IsJSDocTypeLiteral(node *Node) bool {
return node.Kind == KindJSDocTypeLiteral
}

// JSDocSignature
type JSDocSignature struct {
TypeNodeBase
Expand Down
Loading