mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
30 lines
872 B
Go
30 lines
872 B
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual findAllRefsThisKeywordMultipleFiles"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestFindAllRefsThisKeywordMultipleFiles(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `// @Filename: file1.ts
|
|
/*1*/this; /*2*/this;
|
|
// @Filename: file2.ts
|
|
/*3*/this;
|
|
/*4*/this;
|
|
// @Filename: file3.ts
|
|
((x = /*5*/this, y) => /*6*/this)(/*7*/this, /*8*/this);
|
|
// different 'this'
|
|
function f(this) { return this; }`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.VerifyBaselineFindAllReferences(t, "1", "2", "3", "4", "5", "6", "7", "8")
|
|
}
|