* Add test * Skip shorthand property assignments of module.exports in go-to-definition * Skip past shorthand property assignments in module.exports in go-to-definition * Revert WIP change * Fix comment typo Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
16 lines
347 B
TypeScript
16 lines
347 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
// @allowjs: true
|
|
|
|
// @Filename: a.js
|
|
//// class /*classDefinition*/Class {
|
|
//// f;
|
|
//// }
|
|
//// module.exports = { Class };
|
|
|
|
// @Filename: b.js
|
|
////const { Class } = require("./a");
|
|
//// [|/*classAliasDefinition*/Class|];
|
|
|
|
|
|
verify.goToDefinition("classAliasDefinition", "classDefinition");
|