Files
kjol/tools/tsgo/internal/fourslash/tests/gen/referencesForStatic_test.go
2026-07-09 16:50:43 -04:00

47 lines
1.0 KiB
Go

// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual referencesForStatic"
package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestReferencesForStatic(t *testing.T) {
fourslash.SkipIfFailing(t)
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `// @Filename: referencesOnStatic_1.ts
var n = 43;
class foo {
/*1*/static /*2*/n = '';
public bar() {
foo./*3*/n = "'";
if(foo./*4*/n) {
var x = foo./*5*/n;
}
}
}
class foo2 {
private x = foo./*6*/n;
constructor() {
foo./*7*/n = x;
}
function b(n) {
n = foo./*8*/n;
}
}
// @Filename: referencesOnStatic_2.ts
var q = foo./*9*/n;`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.VerifyBaselineFindAllReferences(t, "1", "2", "3", "4", "5", "6", "7", "8", "9")
}