TypeScript/tests/cases/fourslash/localFunction.ts
Cyrus Najmabadi eed6f0deca Use an output format for quickinfo that more closely matches the original source.
i.e. use  "var v: string" instead of "(var) v: string".

The parens case should only be used when we're using an english description instead of
an actual language construct.
2015-03-24 00:16:49 -07:00

19 lines
497 B
TypeScript

/// <reference path='fourslash.ts' />
////function /*1*/foo() {
//// function /*2*/bar2() {
//// }
//// var y = function /*3*/bar3() {
//// }
////}
////var x = function /*4*/bar4() {
////}
goTo.marker("1");
verify.quickInfoIs('function foo(): void');
goTo.marker("2");
verify.quickInfoIs('(local function) bar2(): void');
goTo.marker("3");
verify.quickInfoIs('(local function) bar3(): void');
goTo.marker("4");
verify.quickInfoIs('(local function) bar4(): void');