vendor tsgo
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual findAllRefsClassWithStaticThisAccess"
|
||||
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestFindAllRefsClassWithStaticThisAccess(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `[|class /*0*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}C|] {
|
||||
static s() {
|
||||
/*1*/[|this|];
|
||||
}
|
||||
static get f() {
|
||||
return /*2*/[|this|];
|
||||
|
||||
function inner() { this; }
|
||||
class Inner { x = this; }
|
||||
}
|
||||
}|]`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.VerifyBaselineFindAllReferences(t, "0", "1", "2")
|
||||
f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1])
|
||||
}
|
||||
Reference in New Issue
Block a user