mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
support goto def on object literal properties
This commit is contained in:
parent
205974d453
commit
e6f930b53a
@ -2080,8 +2080,8 @@ module ts {
|
||||
}
|
||||
|
||||
// Could not find a symbol e.g. node is string or number keyword,
|
||||
// or the symbol was an internal symbol (transient) e.g. undefined symbol
|
||||
if (!symbol || symbol.flags & SymbolFlags.Transient) {
|
||||
// or the symbol was an internal symbol and does not have a declaration e.g. undefined symbol
|
||||
if (!symbol || !(symbol.getDeclarations())) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
|
||||
@ -0,0 +1,29 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////var o = {
|
||||
//// /*valueDefinition*/value: 0,
|
||||
//// /*getterDefinition*/get getter() {return 0 },
|
||||
//// /*setterDefinition*/set setter(v: number) { },
|
||||
//// /*methodDefinition*/method: () => { },
|
||||
//// /*es6StyleMethodDefinition*/es6StyleMethod() { }
|
||||
////};
|
||||
////
|
||||
////o./*valueReference*/value;
|
||||
////o./*getterReference*/getter;
|
||||
////o./*setterReference*/setter;
|
||||
////o./*methodReference*/method;
|
||||
////o./*es6StyleMethodReference*/es6StyleMethod;
|
||||
|
||||
var markerList = [
|
||||
"value",
|
||||
"getter",
|
||||
"setter",
|
||||
"method",
|
||||
"es6StyleMethod",
|
||||
];
|
||||
|
||||
markerList.forEach((marker) => {
|
||||
goTo.marker(marker + 'Reference');
|
||||
goTo.definition();
|
||||
verify.caretAtMarker(marker + 'Definition');
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user