vendor tsgo
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual goToDefinitionDifferentFileIndirectly"
|
||||
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestGoToDefinitionDifferentFileIndirectly(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `// @Filename: Remote2.ts
|
||||
var /*remoteVariableDefinition*/rem2Var;
|
||||
function /*remoteFunctionDefinition*/rem2Fn() { }
|
||||
class /*remoteClassDefinition*/rem2Cls { }
|
||||
interface /*remoteInterfaceDefinition*/rem2Int{}
|
||||
module /*remoteModuleDefinition*/rem2Mod { export var foo; }
|
||||
// @Filename: Remote1.ts
|
||||
var remVar;
|
||||
function remFn() { }
|
||||
class remCls { }
|
||||
interface remInt{}
|
||||
namespace remMod { export var foo; }
|
||||
// @Filename: Definition.ts
|
||||
/*remoteVariableReference*/rem2Var = 1;
|
||||
/*remoteFunctionReference*/rem2Fn();
|
||||
var rem2foo = new /*remoteClassReference*/rem2Cls();
|
||||
class rem2fooCls implements /*remoteInterfaceReference*/rem2Int { }
|
||||
var rem2fooVar = /*remoteModuleReference*/rem2Mod.foo;`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.VerifyBaselineGoToDefinition(t, false, "remoteVariableReference", "remoteFunctionReference", "remoteClassReference", "remoteInterfaceReference", "remoteModuleReference")
|
||||
}
|
||||
Reference in New Issue
Block a user