2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
////declare var /*ambientVariableDefinition*/ambientVar;
|
|
|
|
/////*ambientFunctionDefinition*/declare function ambientFunction();
|
|
|
|
////declare class ambientClass {
|
|
|
|
//// /*constructorDefinition*/constructor();
|
|
|
|
//// /*staticMethodDefinition*/static method();
|
|
|
|
//// /*instanceMethodDefinition*/public method();
|
|
|
|
////}
|
2014-08-01 04:58:18 +02:00
|
|
|
////
|
2014-07-13 01:04:16 +02:00
|
|
|
/////*ambientVariableReference*/ambientVar = 1;
|
|
|
|
/////*ambientFunctionReference*/ambientFunction();
|
|
|
|
////var ambientClassVariable = new /*constructorReference*/ambientClass();
|
|
|
|
////ambientClass./*staticMethodReference*/method();
|
|
|
|
////ambientClassVariable./*instanceMethodReference*/method();
|
|
|
|
|
|
|
|
var markerList = [
|
|
|
|
"ambientVariable",
|
|
|
|
"ambientFunction",
|
|
|
|
"constructor",
|
|
|
|
"staticMethod",
|
|
|
|
"instanceMethod",
|
|
|
|
];
|
|
|
|
|
|
|
|
markerList.forEach((marker) => {
|
|
|
|
goTo.marker(marker + 'Reference');
|
|
|
|
goTo.definition();
|
|
|
|
verify.caretAtMarker(marker + 'Definition');
|
|
|
|
});
|