@ttsc/wasm 0.16.0 → 0.16.1
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/checker/shim.go +18 -0
package/dist/ttsc.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -211,6 +211,24 @@ func Checker_getBaseTypes(recv *innerchecker.Checker, t *innerchecker.Type) []*i
|
|
|
211
211
|
return checkerGetBaseTypes(recv, t)
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
+
//go:linkname checkerGetDeclaredTypeOfSymbol github.com/microsoft/typescript-go/internal/checker.(*Checker).getDeclaredTypeOfSymbol
|
|
215
|
+
func checkerGetDeclaredTypeOfSymbol(recv *innerchecker.Checker, symbol *innerast.Symbol) *innerchecker.Type
|
|
216
|
+
|
|
217
|
+
// Checker_getDeclaredTypeOfSymbol returns the declared (instance) type of a
|
|
218
|
+
// class or interface symbol. Unlike Checker_getTypeOfSymbol — which yields the
|
|
219
|
+
// constructor (static) type of a class symbol — the result IS a
|
|
220
|
+
// ClassOrInterface type and is therefore safe to feed back into
|
|
221
|
+
// Checker_getBaseTypes. This lets a consumer resolve a generic base's symbol to
|
|
222
|
+
// its declared type and keep walking the base chain past the generic boundary
|
|
223
|
+
// where getBaseTypes would otherwise dead-end (a Reference/Anonymous type has a
|
|
224
|
+
// nil AsInterfaceType()). Returns nil if recv or symbol is nil.
|
|
225
|
+
func Checker_getDeclaredTypeOfSymbol(recv *innerchecker.Checker, symbol *innerast.Symbol) *innerchecker.Type {
|
|
226
|
+
if recv == nil || symbol == nil {
|
|
227
|
+
return nil
|
|
228
|
+
}
|
|
229
|
+
return checkerGetDeclaredTypeOfSymbol(recv, symbol)
|
|
230
|
+
}
|
|
231
|
+
|
|
214
232
|
//go:linkname checkerGetMinArgumentCount github.com/microsoft/typescript-go/internal/checker.(*Checker).getMinArgumentCount
|
|
215
233
|
func checkerGetMinArgumentCount(recv *innerchecker.Checker, signature *innerchecker.Signature) int
|
|
216
234
|
|