vendor tsgo

This commit is contained in:
2026-07-09 16:50:43 -04:00
parent c06ea2e5a4
commit 98978e4930
5804 changed files with 1556156 additions and 101 deletions

View File

@@ -0,0 +1,70 @@
// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual getOccurrencesSuper"
package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
. "github.com/microsoft/typescript-go/internal/fourslash/tests/util"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestGetOccurrencesSuper(t *testing.T) {
fourslash.SkipIfFailing(t)
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `class SuperType {
superMethod() {
}
static superStaticMethod() {
return 10;
}
}
class SubType extends SuperType {
public prop1 = [|s/**/uper|].superMethod;
private prop2 = [|super|].superMethod;
constructor() {
[|super|]();
}
public method1() {
return [|super|].superMethod();
}
private method2() {
return [|super|].superMethod();
}
public method3() {
var x = () => [|super|].superMethod();
// Bad but still gets highlighted
function f() {
[|super|].superMethod();
}
}
// Bad but still gets highlighted.
public static statProp1 = super.superStaticMethod;
public static staticMethod1() {
return super.superStaticMethod();
}
private static staticMethod2() {
return super.superStaticMethod();
}
// Are not actually 'super' keywords.
super = 10;
static super = 20;
}`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.VerifyBaselineDocumentHighlights(t, nil /*preferences*/, ToAny(f.Ranges())...)
}