Files
tsgo/testdata/baselines/reference/submodule/fourslash/goToDefinition/goToDefinitionJsModuleNameAtImportName.baseline.jsonc

53 lines
1022 B
JSON

// === goToDefinition ===
// === /foo.js ===
// [|function notExported() { }
// class Blah {
// abc = 123;
// }
// module.exports.Blah = Blah;|]
// === /bar.js ===
// const /*GOTO DEF*/[|BlahModule|] = require("./foo.js");
// new BlahModule.Blah()
// === goToDefinition ===
// === /foo.js ===
// [|function notExported() { }
// class Blah {
// abc = 123;
// }
// module.exports.Blah = Blah;|]
// === /bar.js ===
// const BlahModule = require("./foo.js");
// new /*GOTO DEF*/[|BlahModule|].Blah()
// === goToDefinition ===
// === /foo.js ===
// [|function notExported() { }
// class Blah {
// abc = 123;
// }
// module.exports.Blah = Blah;|]
// === /barTs.ts ===
// import /*GOTO DEF*/[|BlahModule|] = require("./foo.js");
// new BlahModule.Blah()
// === goToDefinition ===
// === /foo.js ===
// [|function notExported() { }
// class Blah {
// abc = 123;
// }
// module.exports.Blah = Blah;|]
// === /barTs.ts ===
// import BlahModule = require("./foo.js");
// new /*GOTO DEF*/[|BlahModule|].Blah()