typia 13.0.0-dev.20260507 → 13.0.0-dev.20260510
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/lib/executable/TypiaGenerateWizard.js +54 -45
- package/lib/executable/TypiaGenerateWizard.js.map +1 -1
- package/lib/executable/TypiaGenerateWizard2.mjs +64 -55
- package/lib/executable/TypiaGenerateWizard2.mjs.map +1 -1
- package/lib/executable/typia.d.ts +1 -1
- package/lib/executable/typia.js +1 -14
- package/lib/executable/typia.js.map +1 -1
- package/lib/executable/typia2.mjs +1 -16
- package/lib/executable/typia2.mjs.map +1 -1
- package/native/adapter/adapter.go +3 -3
- package/native/go.mod +0 -4
- package/native/internal/printer/printer.go +229 -0
- package/package.json +11 -8
- package/src/executable/TypiaGenerateWizard.ts +25 -23
- package/src/executable/typia.ts +1 -13
- package/lib/_virtual/ArgumentParser.mjs +0 -4
- package/lib/_virtual/ArgumentParser.mjs.map +0 -1
- package/lib/_virtual/CommandExecutor.mjs +0 -4
- package/lib/_virtual/CommandExecutor.mjs.map +0 -1
- package/lib/_virtual/FileRetriever.mjs +0 -4
- package/lib/_virtual/FileRetriever.mjs.map +0 -1
- package/lib/_virtual/PackageManager.mjs +0 -4
- package/lib/_virtual/PackageManager.mjs.map +0 -1
- package/lib/_virtual/PluginConfigurator.mjs +0 -4
- package/lib/_virtual/PluginConfigurator.mjs.map +0 -1
- package/lib/_virtual/TypiaSetupWizard.mjs +0 -4
- package/lib/_virtual/TypiaSetupWizard.mjs.map +0 -1
- package/lib/executable/TypiaSetupWizard.d.ts +0 -7
- package/lib/executable/TypiaSetupWizard.js +0 -133
- package/lib/executable/TypiaSetupWizard.js.map +0 -1
- package/lib/executable/TypiaSetupWizard.mjs +0 -3
- package/lib/executable/TypiaSetupWizard.mjs.map +0 -1
- package/lib/executable/TypiaSetupWizard2.mjs +0 -144
- package/lib/executable/TypiaSetupWizard2.mjs.map +0 -1
- package/lib/executable/setup/ArgumentParser.d.ts +0 -7
- package/lib/executable/setup/ArgumentParser.js +0 -36
- package/lib/executable/setup/ArgumentParser.js.map +0 -1
- package/lib/executable/setup/ArgumentParser.mjs +0 -3
- package/lib/executable/setup/ArgumentParser.mjs.map +0 -1
- package/lib/executable/setup/ArgumentParser2.mjs +0 -41
- package/lib/executable/setup/ArgumentParser2.mjs.map +0 -1
- package/lib/executable/setup/CommandExecutor.d.ts +0 -3
- package/lib/executable/setup/CommandExecutor.js +0 -15
- package/lib/executable/setup/CommandExecutor.js.map +0 -1
- package/lib/executable/setup/CommandExecutor.mjs +0 -3
- package/lib/executable/setup/CommandExecutor.mjs.map +0 -1
- package/lib/executable/setup/CommandExecutor2.mjs +0 -19
- package/lib/executable/setup/CommandExecutor2.mjs.map +0 -1
- package/lib/executable/setup/FileRetriever.d.ts +0 -7
- package/lib/executable/setup/FileRetriever.js +0 -25
- package/lib/executable/setup/FileRetriever.js.map +0 -1
- package/lib/executable/setup/FileRetriever.mjs +0 -3
- package/lib/executable/setup/FileRetriever.mjs.map +0 -1
- package/lib/executable/setup/FileRetriever2.mjs +0 -30
- package/lib/executable/setup/FileRetriever2.mjs.map +0 -1
- package/lib/executable/setup/PackageManager.d.ts +0 -24
- package/lib/executable/setup/PackageManager.js +0 -79
- package/lib/executable/setup/PackageManager.js.map +0 -1
- package/lib/executable/setup/PackageManager.mjs +0 -3
- package/lib/executable/setup/PackageManager.mjs.map +0 -1
- package/lib/executable/setup/PackageManager2.mjs +0 -88
- package/lib/executable/setup/PackageManager2.mjs.map +0 -1
- package/lib/executable/setup/PluginConfigurator.d.ts +0 -4
- package/lib/executable/setup/PluginConfigurator.js +0 -60
- package/lib/executable/setup/PluginConfigurator.js.map +0 -1
- package/lib/executable/setup/PluginConfigurator.mjs +0 -3
- package/lib/executable/setup/PluginConfigurator.mjs.map +0 -1
- package/lib/executable/setup/PluginConfigurator2.mjs +0 -65
- package/lib/executable/setup/PluginConfigurator2.mjs.map +0 -1
- package/native/go.work +0 -20
- package/native/go.work.sum +0 -11
- package/native/shim/printer/go.mod +0 -5
- package/native/shim/printer/shim.go +0 -249
- package/native/third_party/ttsc/driver/host.go +0 -31
- package/native/third_party/ttsc/driver/program.go +0 -466
- package/native/third_party/ttsc/driver/rewrite.go +0 -341
- package/native/third_party/ttsc/go.mod +0 -48
- package/native/third_party/ttsc/go.sum +0 -22
- package/native/third_party/ttsc/shim/ast/extra-shim.json +0 -4
- package/native/third_party/ttsc/shim/ast/go.mod +0 -5
- package/native/third_party/ttsc/shim/ast/lint.go +0 -331
- package/native/third_party/ttsc/shim/ast/shim.go +0 -210
- package/native/third_party/ttsc/shim/bundled/extra-shim.json +0 -1
- package/native/third_party/ttsc/shim/bundled/go.mod +0 -5
- package/native/third_party/ttsc/shim/bundled/shim.go +0 -23
- package/native/third_party/ttsc/shim/checker/extra-shim.json +0 -31
- package/native/third_party/ttsc/shim/checker/go.mod +0 -5
- package/native/third_party/ttsc/shim/checker/shim.go +0 -166
- package/native/third_party/ttsc/shim/compiler/extra-shim.json +0 -4
- package/native/third_party/ttsc/shim/compiler/go.mod +0 -5
- package/native/third_party/ttsc/shim/compiler/shim.go +0 -65
- package/native/third_party/ttsc/shim/core/extra-shim.json +0 -4
- package/native/third_party/ttsc/shim/core/go.mod +0 -5
- package/native/third_party/ttsc/shim/core/shim.go +0 -29
- package/native/third_party/ttsc/shim/diagnosticwriter/go.mod +0 -5
- package/native/third_party/ttsc/shim/diagnosticwriter/lint.go +0 -137
- package/native/third_party/ttsc/shim/diagnosticwriter/shim.go +0 -29
- package/native/third_party/ttsc/shim/parser/extra-shim.json +0 -4
- package/native/third_party/ttsc/shim/parser/go.mod +0 -5
- package/native/third_party/ttsc/shim/parser/shim.go +0 -61
- package/native/third_party/ttsc/shim/scanner/extra-shim.json +0 -4
- package/native/third_party/ttsc/shim/scanner/go.mod +0 -5
- package/native/third_party/ttsc/shim/scanner/shim.go +0 -134
- package/native/third_party/ttsc/shim/tsoptions/extra-shim.json +0 -4
- package/native/third_party/ttsc/shim/tsoptions/go.mod +0 -5
- package/native/third_party/ttsc/shim/tsoptions/shim.go +0 -173
- package/native/third_party/ttsc/shim/tspath/extra-shim.json +0 -4
- package/native/third_party/ttsc/shim/tspath/go.mod +0 -5
- package/native/third_party/ttsc/shim/tspath/shim.go +0 -236
- package/native/third_party/ttsc/shim/vfs/cachedvfs/extra-shim.json +0 -4
- package/native/third_party/ttsc/shim/vfs/cachedvfs/go.mod +0 -5
- package/native/third_party/ttsc/shim/vfs/cachedvfs/shim.go +0 -12
- package/native/third_party/ttsc/shim/vfs/extra-shim.json +0 -4
- package/native/third_party/ttsc/shim/vfs/go.mod +0 -5
- package/native/third_party/ttsc/shim/vfs/osvfs/extra-shim.json +0 -4
- package/native/third_party/ttsc/shim/vfs/osvfs/go.mod +0 -5
- package/native/third_party/ttsc/shim/vfs/osvfs/shim.go +0 -13
- package/native/third_party/ttsc/shim/vfs/shim.go +0 -22
- package/src/executable/TypiaSetupWizard.ts +0 -167
- package/src/executable/setup/ArgumentParser.ts +0 -42
- package/src/executable/setup/CommandExecutor.ts +0 -8
- package/src/executable/setup/FileRetriever.ts +0 -19
- package/src/executable/setup/PackageManager.ts +0 -87
- package/src/executable/setup/PluginConfigurator.ts +0 -65
|
@@ -1,331 +0,0 @@
|
|
|
1
|
-
// Lint-oriented additions to the AST shim.
|
|
2
|
-
//
|
|
3
|
-
// The handcrafted shim.go in this directory exposes only the kinds/types the
|
|
4
|
-
// existing fixtures need. Lint rules walk a much wider AST surface (every
|
|
5
|
-
// statement / expression node), so this file extends the shim with the
|
|
6
|
-
// kinds, type aliases, helpers, and node-flag constants the `@ttsc/lint`
|
|
7
|
-
// plugin (and any other AST-walking plugin) needs to navigate the tree.
|
|
8
|
-
//
|
|
9
|
-
// Everything here is a pure re-export of `internal/ast` symbols — there is
|
|
10
|
-
// no behavior, no copy of upstream logic. Adding a new node type is
|
|
11
|
-
// mechanical: add a `type X = innerast.X` line and the matching
|
|
12
|
-
// `KindX = innerast.KindX` entry.
|
|
13
|
-
package ast
|
|
14
|
-
|
|
15
|
-
import (
|
|
16
|
-
innerast "github.com/microsoft/typescript-go/internal/ast"
|
|
17
|
-
)
|
|
18
|
-
|
|
19
|
-
// ---- Node-list / visitor primitives ----
|
|
20
|
-
|
|
21
|
-
type Visitor = innerast.Visitor
|
|
22
|
-
type NodeFlags = innerast.NodeFlags
|
|
23
|
-
type ModifierFlags = innerast.ModifierFlags
|
|
24
|
-
|
|
25
|
-
// ---- Statement-shaped node types ----
|
|
26
|
-
|
|
27
|
-
type Block = innerast.Block
|
|
28
|
-
type BreakStatement = innerast.BreakStatement
|
|
29
|
-
type CaseBlock = innerast.CaseBlock
|
|
30
|
-
type CaseOrDefaultClause = innerast.CaseOrDefaultClause
|
|
31
|
-
type CatchClause = innerast.CatchClause
|
|
32
|
-
type ContinueStatement = innerast.ContinueStatement
|
|
33
|
-
type DebuggerStatement = innerast.DebuggerStatement
|
|
34
|
-
type DoStatement = innerast.DoStatement
|
|
35
|
-
type EmptyStatement = innerast.EmptyStatement
|
|
36
|
-
type ExpressionStatement = innerast.ExpressionStatement
|
|
37
|
-
type ForInOrOfStatement = innerast.ForInOrOfStatement
|
|
38
|
-
type ForStatement = innerast.ForStatement
|
|
39
|
-
type FunctionDeclaration = innerast.FunctionDeclaration
|
|
40
|
-
type IfStatement = innerast.IfStatement
|
|
41
|
-
type LabeledStatement = innerast.LabeledStatement
|
|
42
|
-
type ModuleDeclaration = innerast.ModuleDeclaration
|
|
43
|
-
type ModuleBlock = innerast.ModuleBlock
|
|
44
|
-
type ReturnStatement = innerast.ReturnStatement
|
|
45
|
-
type SwitchStatement = innerast.SwitchStatement
|
|
46
|
-
type ThrowStatement = innerast.ThrowStatement
|
|
47
|
-
type TryStatement = innerast.TryStatement
|
|
48
|
-
type VariableDeclaration = innerast.VariableDeclaration
|
|
49
|
-
type VariableDeclarationList = innerast.VariableDeclarationList
|
|
50
|
-
type VariableStatement = innerast.VariableStatement
|
|
51
|
-
type WhileStatement = innerast.WhileStatement
|
|
52
|
-
type WithStatement = innerast.WithStatement
|
|
53
|
-
|
|
54
|
-
// ---- Class / module / enum shapes ----
|
|
55
|
-
|
|
56
|
-
type ClassDeclaration = innerast.ClassDeclaration
|
|
57
|
-
type ClassExpression = innerast.ClassExpression
|
|
58
|
-
type ClassStaticBlockDeclaration = innerast.ClassStaticBlockDeclaration
|
|
59
|
-
type ConstructorDeclaration = innerast.ConstructorDeclaration
|
|
60
|
-
type EnumDeclaration = innerast.EnumDeclaration
|
|
61
|
-
type EnumMember = innerast.EnumMember
|
|
62
|
-
type GetAccessorDeclaration = innerast.GetAccessorDeclaration
|
|
63
|
-
type SetAccessorDeclaration = innerast.SetAccessorDeclaration
|
|
64
|
-
type HeritageClause = innerast.HeritageClause
|
|
65
|
-
type PropertyDeclaration = innerast.PropertyDeclaration
|
|
66
|
-
|
|
67
|
-
// ---- Module syntax ----
|
|
68
|
-
|
|
69
|
-
type ImportDeclaration = innerast.ImportDeclaration
|
|
70
|
-
type ImportSpecifier = innerast.ImportSpecifier
|
|
71
|
-
type ImportEqualsDeclaration = innerast.ImportEqualsDeclaration
|
|
72
|
-
type ExternalModuleReference = innerast.ExternalModuleReference
|
|
73
|
-
type NamedImports = innerast.NamedImports
|
|
74
|
-
type NamespaceImport = innerast.NamespaceImport
|
|
75
|
-
type ExportDeclaration = innerast.ExportDeclaration
|
|
76
|
-
type ExportSpecifier = innerast.ExportSpecifier
|
|
77
|
-
type ExportAssignment = innerast.ExportAssignment
|
|
78
|
-
type ImportTypeNode = innerast.ImportTypeNode
|
|
79
|
-
|
|
80
|
-
// ---- Binding patterns ----
|
|
81
|
-
|
|
82
|
-
type BindingElement = innerast.BindingElement
|
|
83
|
-
type BindingPattern = innerast.BindingPattern
|
|
84
|
-
|
|
85
|
-
// ---- Expressions ----
|
|
86
|
-
|
|
87
|
-
type ArrayLiteralExpression = innerast.ArrayLiteralExpression
|
|
88
|
-
type ArrowFunction = innerast.ArrowFunction
|
|
89
|
-
type AsExpression = innerast.AsExpression
|
|
90
|
-
type AwaitExpression = innerast.AwaitExpression
|
|
91
|
-
type BinaryExpression = innerast.BinaryExpression
|
|
92
|
-
type ConditionalExpression = innerast.ConditionalExpression
|
|
93
|
-
type DeleteExpression = innerast.DeleteExpression
|
|
94
|
-
type ElementAccessExpression = innerast.ElementAccessExpression
|
|
95
|
-
type FunctionExpression = innerast.FunctionExpression
|
|
96
|
-
type NewExpression = innerast.NewExpression
|
|
97
|
-
type NonNullExpression = innerast.NonNullExpression
|
|
98
|
-
type ObjectLiteralExpression = innerast.ObjectLiteralExpression
|
|
99
|
-
type ParenthesizedExpression = innerast.ParenthesizedExpression
|
|
100
|
-
type PostfixUnaryExpression = innerast.PostfixUnaryExpression
|
|
101
|
-
type PropertyAccessExpression = innerast.PropertyAccessExpression
|
|
102
|
-
type PropertyAssignment = innerast.PropertyAssignment
|
|
103
|
-
type ShorthandPropertyAssignment = innerast.ShorthandPropertyAssignment
|
|
104
|
-
type SpreadAssignment = innerast.SpreadAssignment
|
|
105
|
-
type SpreadElement = innerast.SpreadElement
|
|
106
|
-
type TaggedTemplateExpression = innerast.TaggedTemplateExpression
|
|
107
|
-
type TemplateExpression = innerast.TemplateExpression
|
|
108
|
-
type TemplateSpan = innerast.TemplateSpan
|
|
109
|
-
type TypeAssertion = innerast.TypeAssertion
|
|
110
|
-
type TypeOperatorNode = innerast.TypeOperatorNode
|
|
111
|
-
type TypeOfExpression = innerast.TypeOfExpression
|
|
112
|
-
type VoidExpression = innerast.VoidExpression
|
|
113
|
-
type YieldExpression = innerast.YieldExpression
|
|
114
|
-
type RegularExpressionLiteral = innerast.RegularExpressionLiteral
|
|
115
|
-
type SatisfiesExpression = innerast.SatisfiesExpression
|
|
116
|
-
|
|
117
|
-
// ---- Comment directives (ban-ts-comment) ----
|
|
118
|
-
|
|
119
|
-
type CommentDirective = innerast.CommentDirective
|
|
120
|
-
type CommentDirectiveKind = innerast.CommentDirectiveKind
|
|
121
|
-
|
|
122
|
-
// ---- Source file parse options (test harness) ----
|
|
123
|
-
|
|
124
|
-
type SourceFileParseOptions = innerast.SourceFileParseOptions
|
|
125
|
-
type ExternalModuleIndicatorOptions = innerast.ExternalModuleIndicatorOptions
|
|
126
|
-
|
|
127
|
-
// ---- Node-flag constants ----
|
|
128
|
-
|
|
129
|
-
const (
|
|
130
|
-
NodeFlagsNone = innerast.NodeFlagsNone
|
|
131
|
-
NodeFlagsSynthesized = innerast.NodeFlagsSynthesized
|
|
132
|
-
NodeFlagsLet = innerast.NodeFlagsLet
|
|
133
|
-
NodeFlagsConst = innerast.NodeFlagsConst
|
|
134
|
-
NodeFlagsBlockScoped = innerast.NodeFlagsBlockScoped
|
|
135
|
-
NodeFlagsAwaitContext = innerast.NodeFlagsAwaitContext
|
|
136
|
-
)
|
|
137
|
-
|
|
138
|
-
// ---- Statement / declaration / expression kinds ----
|
|
139
|
-
|
|
140
|
-
const (
|
|
141
|
-
KindSourceFile = innerast.KindSourceFile
|
|
142
|
-
|
|
143
|
-
// Statements
|
|
144
|
-
KindBlock = innerast.KindBlock
|
|
145
|
-
KindBreakStatement = innerast.KindBreakStatement
|
|
146
|
-
KindCaseBlock = innerast.KindCaseBlock
|
|
147
|
-
KindCaseClause = innerast.KindCaseClause
|
|
148
|
-
KindCatchClause = innerast.KindCatchClause
|
|
149
|
-
KindContinueStatement = innerast.KindContinueStatement
|
|
150
|
-
KindDebuggerStatement = innerast.KindDebuggerStatement
|
|
151
|
-
KindDefaultClause = innerast.KindDefaultClause
|
|
152
|
-
KindDoStatement = innerast.KindDoStatement
|
|
153
|
-
KindEmptyStatement = innerast.KindEmptyStatement
|
|
154
|
-
KindExpressionStatement = innerast.KindExpressionStatement
|
|
155
|
-
KindForInStatement = innerast.KindForInStatement
|
|
156
|
-
KindForOfStatement = innerast.KindForOfStatement
|
|
157
|
-
KindForStatement = innerast.KindForStatement
|
|
158
|
-
KindIfStatement = innerast.KindIfStatement
|
|
159
|
-
KindLabeledStatement = innerast.KindLabeledStatement
|
|
160
|
-
KindReturnStatement = innerast.KindReturnStatement
|
|
161
|
-
KindSwitchStatement = innerast.KindSwitchStatement
|
|
162
|
-
KindThrowStatement = innerast.KindThrowStatement
|
|
163
|
-
KindTryStatement = innerast.KindTryStatement
|
|
164
|
-
KindVariableDeclaration = innerast.KindVariableDeclaration
|
|
165
|
-
KindVariableDeclarationList = innerast.KindVariableDeclarationList
|
|
166
|
-
KindVariableStatement = innerast.KindVariableStatement
|
|
167
|
-
KindWhileStatement = innerast.KindWhileStatement
|
|
168
|
-
KindWithStatement = innerast.KindWithStatement
|
|
169
|
-
|
|
170
|
-
// Class / enum / module
|
|
171
|
-
KindClassDeclaration = innerast.KindClassDeclaration
|
|
172
|
-
KindClassExpression = innerast.KindClassExpression
|
|
173
|
-
KindConstructor = innerast.KindConstructor
|
|
174
|
-
KindEnumDeclaration = innerast.KindEnumDeclaration
|
|
175
|
-
KindEnumMember = innerast.KindEnumMember
|
|
176
|
-
KindGetAccessor = innerast.KindGetAccessor
|
|
177
|
-
KindSetAccessor = innerast.KindSetAccessor
|
|
178
|
-
KindHeritageClause = innerast.KindHeritageClause
|
|
179
|
-
KindPropertyDeclaration = innerast.KindPropertyDeclaration
|
|
180
|
-
|
|
181
|
-
// Module syntax
|
|
182
|
-
KindExportAssignment = innerast.KindExportAssignment
|
|
183
|
-
KindExportDeclaration = innerast.KindExportDeclaration
|
|
184
|
-
KindImportEqualsDeclaration = innerast.KindImportEqualsDeclaration
|
|
185
|
-
KindExternalModuleReference = innerast.KindExternalModuleReference
|
|
186
|
-
KindImportType = innerast.KindImportType
|
|
187
|
-
KindImportKeyword = innerast.KindImportKeyword
|
|
188
|
-
|
|
189
|
-
// Binding
|
|
190
|
-
KindBindingElement = innerast.KindBindingElement
|
|
191
|
-
KindObjectBindingPattern = innerast.KindObjectBindingPattern
|
|
192
|
-
KindArrayBindingPattern = innerast.KindArrayBindingPattern
|
|
193
|
-
KindOmittedExpression = innerast.KindOmittedExpression
|
|
194
|
-
|
|
195
|
-
// Expressions
|
|
196
|
-
KindArrayLiteralExpression = innerast.KindArrayLiteralExpression
|
|
197
|
-
KindArrowFunction = innerast.KindArrowFunction
|
|
198
|
-
KindAsExpression = innerast.KindAsExpression
|
|
199
|
-
KindAwaitExpression = innerast.KindAwaitExpression
|
|
200
|
-
KindBinaryExpression = innerast.KindBinaryExpression
|
|
201
|
-
KindConditionalExpression = innerast.KindConditionalExpression
|
|
202
|
-
KindDeleteExpression = innerast.KindDeleteExpression
|
|
203
|
-
KindElementAccessExpression = innerast.KindElementAccessExpression
|
|
204
|
-
KindFunctionExpression = innerast.KindFunctionExpression
|
|
205
|
-
KindNewExpression = innerast.KindNewExpression
|
|
206
|
-
KindNonNullExpression = innerast.KindNonNullExpression
|
|
207
|
-
KindObjectLiteralExpression = innerast.KindObjectLiteralExpression
|
|
208
|
-
KindParenthesizedExpression = innerast.KindParenthesizedExpression
|
|
209
|
-
KindPostfixUnaryExpression = innerast.KindPostfixUnaryExpression
|
|
210
|
-
KindPropertyAssignment = innerast.KindPropertyAssignment
|
|
211
|
-
KindShorthandPropertyAssignment = innerast.KindShorthandPropertyAssignment
|
|
212
|
-
KindSpreadAssignment = innerast.KindSpreadAssignment
|
|
213
|
-
KindSpreadElement = innerast.KindSpreadElement
|
|
214
|
-
KindTaggedTemplateExpression = innerast.KindTaggedTemplateExpression
|
|
215
|
-
KindTemplateExpression = innerast.KindTemplateExpression
|
|
216
|
-
KindTemplateSpan = innerast.KindTemplateSpan
|
|
217
|
-
KindTypeAssertionExpression = innerast.KindTypeAssertionExpression
|
|
218
|
-
KindTypeOfExpression = innerast.KindTypeOfExpression
|
|
219
|
-
KindVoidExpression = innerast.KindVoidExpression
|
|
220
|
-
KindYieldExpression = innerast.KindYieldExpression
|
|
221
|
-
KindRegularExpressionLiteral = innerast.KindRegularExpressionLiteral
|
|
222
|
-
KindSatisfiesExpression = innerast.KindSatisfiesExpression
|
|
223
|
-
|
|
224
|
-
// Keywords / tokens used by rules
|
|
225
|
-
KindThisKeyword = innerast.KindThisKeyword
|
|
226
|
-
KindSuperKeyword = innerast.KindSuperKeyword
|
|
227
|
-
KindEqualsToken = innerast.KindEqualsToken
|
|
228
|
-
KindEqualsEqualsToken = innerast.KindEqualsEqualsToken
|
|
229
|
-
KindEqualsEqualsEqualsToken = innerast.KindEqualsEqualsEqualsToken
|
|
230
|
-
KindExclamationEqualsToken = innerast.KindExclamationEqualsToken
|
|
231
|
-
KindExclamationEqualsEqualsToken = innerast.KindExclamationEqualsEqualsToken
|
|
232
|
-
KindLessThanToken = innerast.KindLessThanToken
|
|
233
|
-
KindGreaterThanToken = innerast.KindGreaterThanToken
|
|
234
|
-
KindLessThanEqualsToken = innerast.KindLessThanEqualsToken
|
|
235
|
-
KindGreaterThanEqualsToken = innerast.KindGreaterThanEqualsToken
|
|
236
|
-
KindPlusToken = innerast.KindPlusToken
|
|
237
|
-
KindPlusEqualsToken = innerast.KindPlusEqualsToken
|
|
238
|
-
KindMinusEqualsToken = innerast.KindMinusEqualsToken
|
|
239
|
-
KindAsteriskToken = innerast.KindAsteriskToken
|
|
240
|
-
KindSlashToken = innerast.KindSlashToken
|
|
241
|
-
KindAmpersandAmpersandToken = innerast.KindAmpersandAmpersandToken
|
|
242
|
-
KindBarBarToken = innerast.KindBarBarToken
|
|
243
|
-
KindQuestionQuestionToken = innerast.KindQuestionQuestionToken
|
|
244
|
-
KindExclamationToken = innerast.KindExclamationToken
|
|
245
|
-
KindTildeToken = innerast.KindTildeToken
|
|
246
|
-
KindInKeyword = innerast.KindInKeyword
|
|
247
|
-
KindInstanceOfKeyword = innerast.KindInstanceOfKeyword
|
|
248
|
-
KindAsKeyword = innerast.KindAsKeyword
|
|
249
|
-
KindPlusPlusToken = innerast.KindPlusPlusToken
|
|
250
|
-
KindMinusMinusToken = innerast.KindMinusMinusToken
|
|
251
|
-
KindDotToken = innerast.KindDotToken
|
|
252
|
-
|
|
253
|
-
// Bitwise / shift / exponent operator tokens — needed by
|
|
254
|
-
// no-bitwise, prefer-exponentiation-operator, etc.
|
|
255
|
-
KindAmpersandToken = innerast.KindAmpersandToken
|
|
256
|
-
KindBarToken = innerast.KindBarToken
|
|
257
|
-
KindCaretToken = innerast.KindCaretToken
|
|
258
|
-
KindLessThanLessThanToken = innerast.KindLessThanLessThanToken
|
|
259
|
-
KindGreaterThanGreaterThanToken = innerast.KindGreaterThanGreaterThanToken
|
|
260
|
-
KindGreaterThanGreaterThanGreaterThanToken = innerast.KindGreaterThanGreaterThanGreaterThanToken
|
|
261
|
-
KindAsteriskAsteriskToken = innerast.KindAsteriskAsteriskToken
|
|
262
|
-
KindAmpersandAmpersandEqualsToken = innerast.KindAmpersandAmpersandEqualsToken
|
|
263
|
-
KindBarBarEqualsToken = innerast.KindBarBarEqualsToken
|
|
264
|
-
KindQuestionQuestionEqualsToken = innerast.KindQuestionQuestionEqualsToken
|
|
265
|
-
KindAsteriskEqualsToken = innerast.KindAsteriskEqualsToken
|
|
266
|
-
KindSlashEqualsToken = innerast.KindSlashEqualsToken
|
|
267
|
-
KindPercentEqualsToken = innerast.KindPercentEqualsToken
|
|
268
|
-
KindAsteriskAsteriskEqualsToken = innerast.KindAsteriskAsteriskEqualsToken
|
|
269
|
-
KindAmpersandEqualsToken = innerast.KindAmpersandEqualsToken
|
|
270
|
-
KindBarEqualsToken = innerast.KindBarEqualsToken
|
|
271
|
-
KindCaretEqualsToken = innerast.KindCaretEqualsToken
|
|
272
|
-
KindLessThanLessThanEqualsToken = innerast.KindLessThanLessThanEqualsToken
|
|
273
|
-
KindGreaterThanGreaterThanEqualsToken = innerast.KindGreaterThanGreaterThanEqualsToken
|
|
274
|
-
KindGreaterThanGreaterThanGreaterThanEqualsToken = innerast.KindGreaterThanGreaterThanGreaterThanEqualsToken
|
|
275
|
-
KindCommaToken = innerast.KindCommaToken
|
|
276
|
-
KindQuestionToken = innerast.KindQuestionToken
|
|
277
|
-
|
|
278
|
-
// Metaprogramming / privacy / async syntax
|
|
279
|
-
KindMetaProperty = innerast.KindMetaProperty
|
|
280
|
-
KindPrivateIdentifier = innerast.KindPrivateIdentifier
|
|
281
|
-
KindClassStaticBlockDeclaration = innerast.KindClassStaticBlockDeclaration
|
|
282
|
-
|
|
283
|
-
// Misc syntax used by suggestion rules
|
|
284
|
-
KindSymbolKeyword = innerast.KindSymbolKeyword
|
|
285
|
-
KindObjectKeyword = innerast.KindObjectKeyword
|
|
286
|
-
|
|
287
|
-
// Modifier-style keywords
|
|
288
|
-
KindAsyncKeyword = innerast.KindAsyncKeyword
|
|
289
|
-
KindAwaitKeyword = innerast.KindAwaitKeyword
|
|
290
|
-
KindReadonlyKeyword = innerast.KindReadonlyKeyword
|
|
291
|
-
KindStaticKeyword = innerast.KindStaticKeyword
|
|
292
|
-
KindAbstractKeyword = innerast.KindAbstractKeyword
|
|
293
|
-
KindExportKeyword = innerast.KindExportKeyword
|
|
294
|
-
KindDeclareKeyword = innerast.KindDeclareKeyword
|
|
295
|
-
KindModuleKeyword = innerast.KindModuleKeyword
|
|
296
|
-
KindTypeKeyword = innerast.KindTypeKeyword
|
|
297
|
-
|
|
298
|
-
// TypeScript-specific kinds used by ts rules
|
|
299
|
-
KindCallSignature = innerast.KindCallSignature
|
|
300
|
-
KindConstructSignature = innerast.KindConstructSignature
|
|
301
|
-
KindTypeQuery = innerast.KindTypeQuery
|
|
302
|
-
KindTypeOperator = innerast.KindTypeOperator
|
|
303
|
-
)
|
|
304
|
-
|
|
305
|
-
// ---- Comment-directive kind constants ----
|
|
306
|
-
|
|
307
|
-
const (
|
|
308
|
-
CommentDirectiveKindIgnore = innerast.CommentDirectiveKindIgnore
|
|
309
|
-
CommentDirectiveKindExpectError = innerast.CommentDirectiveKindExpectError
|
|
310
|
-
)
|
|
311
|
-
|
|
312
|
-
// ---- Helpers ----
|
|
313
|
-
|
|
314
|
-
// GetCombinedNodeFlags returns the combined node flags for a declaration,
|
|
315
|
-
// consulting parents where applicable. This is what `IsLet` / `IsConst` use
|
|
316
|
-
// internally; lint rules need it to detect `var` declarations whose flag
|
|
317
|
-
// lives on the VariableDeclarationList rather than the declaration itself.
|
|
318
|
-
func GetCombinedNodeFlags(node *Node) NodeFlags {
|
|
319
|
-
return innerast.GetCombinedNodeFlags(node)
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
// IsLet reports whether the declaration was introduced by `let` / `using`.
|
|
323
|
-
func IsLet(node *Node) bool { return GetCombinedNodeFlags(node)&NodeFlagsLet != 0 }
|
|
324
|
-
|
|
325
|
-
// IsConst reports whether the declaration was introduced by `const` /
|
|
326
|
-
// `await using` / `using`.
|
|
327
|
-
func IsConst(node *Node) bool { return GetCombinedNodeFlags(node)&NodeFlagsConst != 0 }
|
|
328
|
-
|
|
329
|
-
// IsVar reports whether the declaration was introduced by `var`. The block
|
|
330
|
-
// scoped flag bits are clear when the keyword is plain `var`.
|
|
331
|
-
func IsVar(node *Node) bool { return GetCombinedNodeFlags(node)&NodeFlagsBlockScoped == 0 }
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
package ast
|
|
2
|
-
|
|
3
|
-
import (
|
|
4
|
-
innerast "github.com/microsoft/typescript-go/internal/ast"
|
|
5
|
-
_ "unsafe"
|
|
6
|
-
)
|
|
7
|
-
|
|
8
|
-
type CallExpression = innerast.CallExpression
|
|
9
|
-
type Diagnostic = innerast.Diagnostic
|
|
10
|
-
type Identifier = innerast.Identifier
|
|
11
|
-
type IdentifierNode = innerast.IdentifierNode
|
|
12
|
-
type ImportAttributesNode = innerast.ImportAttributesNode
|
|
13
|
-
type ImportClauseNode = innerast.ImportClauseNode
|
|
14
|
-
type ImportPhaseModifierSyntaxKind = innerast.ImportPhaseModifierSyntaxKind
|
|
15
|
-
type ImportSpecifierList = innerast.ImportSpecifierList
|
|
16
|
-
type IntersectionTypeNode = innerast.IntersectionTypeNode
|
|
17
|
-
type Kind = innerast.Kind
|
|
18
|
-
type KeywordExpressionSyntaxKind = innerast.KeywordExpressionSyntaxKind
|
|
19
|
-
type KeywordTypeSyntaxKind = innerast.KeywordTypeSyntaxKind
|
|
20
|
-
type LiteralTypeNode = innerast.LiteralTypeNode
|
|
21
|
-
type NoSubstitutionTemplateLiteral = innerast.NoSubstitutionTemplateLiteral
|
|
22
|
-
type Node = innerast.Node
|
|
23
|
-
type NodeFactory = innerast.NodeFactory
|
|
24
|
-
type NodeFactoryHooks = innerast.NodeFactoryHooks
|
|
25
|
-
type NodeVisitor = innerast.NodeVisitor
|
|
26
|
-
type NodeVisitorHooks = innerast.NodeVisitorHooks
|
|
27
|
-
type TokenFlags = innerast.TokenFlags
|
|
28
|
-
type ModifierList = innerast.ModifierList
|
|
29
|
-
type StatementList = innerast.StatementList
|
|
30
|
-
type VariableDeclarationNodeList = innerast.VariableDeclarationNodeList
|
|
31
|
-
type BindingElementList = innerast.BindingElementList
|
|
32
|
-
type TypeParameterList = innerast.TypeParameterList
|
|
33
|
-
type ParameterList = innerast.ParameterList
|
|
34
|
-
type ElementList = innerast.ElementList
|
|
35
|
-
type TypeList = innerast.TypeList
|
|
36
|
-
type TypeElementList = innerast.TypeElementList
|
|
37
|
-
type Statement = innerast.Statement
|
|
38
|
-
type Expression = innerast.Expression
|
|
39
|
-
type TypeNode = innerast.TypeNode
|
|
40
|
-
type TypePredicateParameterName = innerast.TypePredicateParameterName
|
|
41
|
-
type AssertsKeyword = innerast.AssertsKeyword
|
|
42
|
-
type BindingName = innerast.BindingName
|
|
43
|
-
type BinaryOperatorToken = innerast.BinaryOperatorToken
|
|
44
|
-
type PropertyName = innerast.PropertyName
|
|
45
|
-
type MemberName = innerast.MemberName
|
|
46
|
-
type EntityName = innerast.EntityName
|
|
47
|
-
type ModuleExportName = innerast.ModuleExportName
|
|
48
|
-
type NamedImportBindings = innerast.NamedImportBindings
|
|
49
|
-
type ConciseBody = innerast.ConciseBody
|
|
50
|
-
type TemplateSpanList = innerast.TemplateSpanList
|
|
51
|
-
type TemplateMiddleOrTail = innerast.TemplateMiddleOrTail
|
|
52
|
-
type TemplateHeadNode = innerast.TemplateHeadNode
|
|
53
|
-
type QuestionDotToken = innerast.QuestionDotToken
|
|
54
|
-
type QuestionToken = innerast.QuestionToken
|
|
55
|
-
type DotDotDotToken = innerast.DotDotDotToken
|
|
56
|
-
type ExclamationToken = innerast.ExclamationToken
|
|
57
|
-
type EqualsGreaterThanToken = innerast.EqualsGreaterThanToken
|
|
58
|
-
type AsteriskToken = innerast.AsteriskToken
|
|
59
|
-
type TokenNode = innerast.TokenNode
|
|
60
|
-
type TemplateHead = innerast.TemplateHead
|
|
61
|
-
type TemplateLiteralTypeNode = innerast.TemplateLiteralTypeNode
|
|
62
|
-
type TemplateLiteralTypeSpan = innerast.TemplateLiteralTypeSpan
|
|
63
|
-
type TemplateMiddle = innerast.TemplateMiddle
|
|
64
|
-
type TemplateTail = innerast.TemplateTail
|
|
65
|
-
type PrefixUnaryExpression = innerast.PrefixUnaryExpression
|
|
66
|
-
type ComputedPropertyName = innerast.ComputedPropertyName
|
|
67
|
-
type PropertySignatureDeclaration = innerast.PropertySignatureDeclaration
|
|
68
|
-
type QualifiedName = innerast.QualifiedName
|
|
69
|
-
type TypeLiteralNode = innerast.TypeLiteralNode
|
|
70
|
-
type FunctionTypeNode = innerast.FunctionTypeNode
|
|
71
|
-
type InterfaceDeclaration = innerast.InterfaceDeclaration
|
|
72
|
-
type TypeReferenceNode = innerast.TypeReferenceNode
|
|
73
|
-
type SourceFile = innerast.SourceFile
|
|
74
|
-
type StringLiteral = innerast.StringLiteral
|
|
75
|
-
type Symbol = innerast.Symbol
|
|
76
|
-
type SymbolFlags = innerast.SymbolFlags
|
|
77
|
-
type NumericLiteral = innerast.NumericLiteral
|
|
78
|
-
type BigIntLiteral = innerast.BigIntLiteral
|
|
79
|
-
type ArrayTypeNode = innerast.ArrayTypeNode
|
|
80
|
-
type IndexSignatureDeclaration = innerast.IndexSignatureDeclaration
|
|
81
|
-
type NamedTupleMember = innerast.NamedTupleMember
|
|
82
|
-
type OptionalTypeNode = innerast.OptionalTypeNode
|
|
83
|
-
type RestTypeNode = innerast.RestTypeNode
|
|
84
|
-
type TypeAliasDeclaration = innerast.TypeAliasDeclaration
|
|
85
|
-
type TypeParameterDeclaration = innerast.TypeParameterDeclaration
|
|
86
|
-
type TupleTypeNode = innerast.TupleTypeNode
|
|
87
|
-
type UnionTypeNode = innerast.UnionTypeNode
|
|
88
|
-
type MethodSignatureDeclaration = innerast.MethodSignatureDeclaration
|
|
89
|
-
type MethodDeclaration = innerast.MethodDeclaration
|
|
90
|
-
type NodeList = innerast.NodeList
|
|
91
|
-
type ParameterDeclaration = innerast.ParameterDeclaration
|
|
92
|
-
type ParenthesizedTypeNode = innerast.ParenthesizedTypeNode
|
|
93
|
-
|
|
94
|
-
const (
|
|
95
|
-
KindCallExpression = innerast.KindCallExpression
|
|
96
|
-
KindIdentifier = innerast.KindIdentifier
|
|
97
|
-
KindMultiLineCommentTrivia = innerast.KindMultiLineCommentTrivia
|
|
98
|
-
KindPropertyAccessExpression = innerast.KindPropertyAccessExpression
|
|
99
|
-
KindPropertySignature = innerast.KindPropertySignature
|
|
100
|
-
KindComputedPropertyName = innerast.KindComputedPropertyName
|
|
101
|
-
KindMethodSignature = innerast.KindMethodSignature
|
|
102
|
-
KindMethodDeclaration = innerast.KindMethodDeclaration
|
|
103
|
-
KindIndexSignature = innerast.KindIndexSignature
|
|
104
|
-
KindParameter = innerast.KindParameter
|
|
105
|
-
KindStringKeyword = innerast.KindStringKeyword
|
|
106
|
-
KindNumberKeyword = innerast.KindNumberKeyword
|
|
107
|
-
KindBooleanKeyword = innerast.KindBooleanKeyword
|
|
108
|
-
KindBigIntKeyword = innerast.KindBigIntKeyword
|
|
109
|
-
KindAnyKeyword = innerast.KindAnyKeyword
|
|
110
|
-
KindUnknownKeyword = innerast.KindUnknownKeyword
|
|
111
|
-
KindNeverKeyword = innerast.KindNeverKeyword
|
|
112
|
-
KindUndefinedKeyword = innerast.KindUndefinedKeyword
|
|
113
|
-
KindNullKeyword = innerast.KindNullKeyword
|
|
114
|
-
KindVoidKeyword = innerast.KindVoidKeyword
|
|
115
|
-
KindTrueKeyword = innerast.KindTrueKeyword
|
|
116
|
-
KindFalseKeyword = innerast.KindFalseKeyword
|
|
117
|
-
KindStringLiteral = innerast.KindStringLiteral
|
|
118
|
-
KindNoSubstitutionTemplateLiteral = innerast.KindNoSubstitutionTemplateLiteral
|
|
119
|
-
KindTemplateHead = innerast.KindTemplateHead
|
|
120
|
-
KindTemplateMiddle = innerast.KindTemplateMiddle
|
|
121
|
-
KindTemplateTail = innerast.KindTemplateTail
|
|
122
|
-
KindNumericLiteral = innerast.KindNumericLiteral
|
|
123
|
-
KindBigIntLiteral = innerast.KindBigIntLiteral
|
|
124
|
-
KindTypeReference = innerast.KindTypeReference
|
|
125
|
-
KindFunctionType = innerast.KindFunctionType
|
|
126
|
-
KindLiteralType = innerast.KindLiteralType
|
|
127
|
-
KindArrayType = innerast.KindArrayType
|
|
128
|
-
KindTypeLiteral = innerast.KindTypeLiteral
|
|
129
|
-
KindInterfaceDeclaration = innerast.KindInterfaceDeclaration
|
|
130
|
-
KindTupleType = innerast.KindTupleType
|
|
131
|
-
KindUnionType = innerast.KindUnionType
|
|
132
|
-
KindIntersectionType = innerast.KindIntersectionType
|
|
133
|
-
KindNamedTupleMember = innerast.KindNamedTupleMember
|
|
134
|
-
KindOptionalType = innerast.KindOptionalType
|
|
135
|
-
KindParenthesizedType = innerast.KindParenthesizedType
|
|
136
|
-
KindRestType = innerast.KindRestType
|
|
137
|
-
KindTemplateLiteralType = innerast.KindTemplateLiteralType
|
|
138
|
-
KindTemplateLiteralTypeSpan = innerast.KindTemplateLiteralTypeSpan
|
|
139
|
-
KindPrefixUnaryExpression = innerast.KindPrefixUnaryExpression
|
|
140
|
-
KindQualifiedName = innerast.KindQualifiedName
|
|
141
|
-
KindTypeAliasDeclaration = innerast.KindTypeAliasDeclaration
|
|
142
|
-
KindTypeParameter = innerast.KindTypeParameter
|
|
143
|
-
KindImportSpecifier = innerast.KindImportSpecifier
|
|
144
|
-
KindImportDeclaration = innerast.KindImportDeclaration
|
|
145
|
-
KindNamedImports = innerast.KindNamedImports
|
|
146
|
-
KindNamespaceImport = innerast.KindNamespaceImport
|
|
147
|
-
KindExportSpecifier = innerast.KindExportSpecifier
|
|
148
|
-
KindModuleBlock = innerast.KindModuleBlock
|
|
149
|
-
KindModuleDeclaration = innerast.KindModuleDeclaration
|
|
150
|
-
KindFunctionDeclaration = innerast.KindFunctionDeclaration
|
|
151
|
-
KindMinusToken = innerast.KindMinusToken
|
|
152
|
-
KindQuestionDotToken = innerast.KindQuestionDotToken
|
|
153
|
-
KindAssertsKeyword = innerast.KindAssertsKeyword
|
|
154
|
-
KindEqualsGreaterThanToken = innerast.KindEqualsGreaterThanToken
|
|
155
|
-
|
|
156
|
-
NodeFlagsOptionalChain = innerast.NodeFlagsOptionalChain
|
|
157
|
-
|
|
158
|
-
TokenFlagsNone = innerast.TokenFlagsNone
|
|
159
|
-
|
|
160
|
-
SymbolFlagsOptional = innerast.SymbolFlagsOptional
|
|
161
|
-
SymbolFlagsAlias = innerast.SymbolFlagsAlias
|
|
162
|
-
SymbolFlagsType = innerast.SymbolFlagsType
|
|
163
|
-
SymbolFlagsNamespace = innerast.SymbolFlagsNamespace
|
|
164
|
-
|
|
165
|
-
ModifierFlagsPrivate = innerast.ModifierFlagsPrivate
|
|
166
|
-
ModifierFlagsProtected = innerast.ModifierFlagsProtected
|
|
167
|
-
ModifierFlagsReadonly = innerast.ModifierFlagsReadonly
|
|
168
|
-
)
|
|
169
|
-
|
|
170
|
-
func NewNodeFactory(options NodeFactoryHooks) *NodeFactory {
|
|
171
|
-
return innerast.NewNodeFactory(options)
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
func NewNodeVisitor(visit func(node *Node) *Node, factory *NodeFactory, options NodeVisitorHooks) *NodeVisitor {
|
|
175
|
-
return innerast.NewNodeVisitor(visit, factory, options)
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
func IsFunctionLike(node *Node) bool {
|
|
179
|
-
return innerast.IsFunctionLike(node)
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
func IsPropertyAssignment(node *Node) bool {
|
|
183
|
-
return innerast.IsPropertyAssignment(node)
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
func IsPropertyDeclaration(node *Node) bool {
|
|
187
|
-
return innerast.IsPropertyDeclaration(node)
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
func IsModuleBlock(node *Node) bool {
|
|
191
|
-
return innerast.IsModuleBlock(node)
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
func IsStringLiteral(node *Node) bool {
|
|
195
|
-
return innerast.IsStringLiteral(node)
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
func IsPropertyAccessExpression(node *Node) bool {
|
|
199
|
-
return innerast.IsPropertyAccessExpression(node)
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
func IsElementAccessExpression(node *Node) bool {
|
|
203
|
-
return innerast.IsElementAccessExpression(node)
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
//go:linkname GetSourceFileOfNode github.com/microsoft/typescript-go/internal/ast.GetSourceFileOfNode
|
|
207
|
-
func GetSourceFileOfNode(node *innerast.Node) *innerast.SourceFile
|
|
208
|
-
|
|
209
|
-
//go:linkname GetNodeAtPosition github.com/microsoft/typescript-go/internal/ast.GetNodeAtPosition
|
|
210
|
-
func GetNodeAtPosition(file *innerast.SourceFile, position int, includeJSDoc bool) *innerast.Node
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ExtraMethods":{},"ExtraFields":{}}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// Code generated by packages/ttsc/tools/gen_shims. DO NOT EDIT.
|
|
2
|
-
|
|
3
|
-
package bundled
|
|
4
|
-
|
|
5
|
-
import "github.com/microsoft/typescript-go/internal/bundled"
|
|
6
|
-
import "github.com/microsoft/typescript-go/internal/vfs"
|
|
7
|
-
import _ "unsafe"
|
|
8
|
-
|
|
9
|
-
const Embedded = bundled.Embedded
|
|
10
|
-
|
|
11
|
-
//go:linkname IsBundled github.com/microsoft/typescript-go/internal/bundled.IsBundled
|
|
12
|
-
func IsBundled(path string) bool
|
|
13
|
-
|
|
14
|
-
var LibNames = bundled.LibNames
|
|
15
|
-
|
|
16
|
-
//go:linkname LibPath github.com/microsoft/typescript-go/internal/bundled.LibPath
|
|
17
|
-
func LibPath() string
|
|
18
|
-
|
|
19
|
-
//go:linkname TestingLibPath github.com/microsoft/typescript-go/internal/bundled.TestingLibPath
|
|
20
|
-
func TestingLibPath() string
|
|
21
|
-
|
|
22
|
-
//go:linkname WrapFS github.com/microsoft/typescript-go/internal/bundled.WrapFS
|
|
23
|
-
func WrapFS(fs vfs.FS) vfs.FS
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"ExtraMethods": {
|
|
3
|
-
"Checker": [
|
|
4
|
-
"getApparentType",
|
|
5
|
-
"getIndexTypeOfType",
|
|
6
|
-
"getPropertiesOfType",
|
|
7
|
-
"getTypeOfSymbol",
|
|
8
|
-
"getDeclaredTypeOfSymbol",
|
|
9
|
-
"getBaseTypes",
|
|
10
|
-
"getTypeArguments",
|
|
11
|
-
"getIndexInfosOfType",
|
|
12
|
-
"isArrayType",
|
|
13
|
-
"isArrayOrTupleType",
|
|
14
|
-
"isTypeAssignableTo",
|
|
15
|
-
"isReadonlySymbol",
|
|
16
|
-
"getWidenedType",
|
|
17
|
-
"getPropertyNameForKnownSymbolName",
|
|
18
|
-
"getBaseConstraintOfType",
|
|
19
|
-
"getNullableType",
|
|
20
|
-
"getExportsOfModule"
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
"ExtraFields": {
|
|
24
|
-
"Type": [
|
|
25
|
-
"alias"
|
|
26
|
-
],
|
|
27
|
-
"Checker": [
|
|
28
|
-
"globalRegExpType"
|
|
29
|
-
]
|
|
30
|
-
}
|
|
31
|
-
}
|