mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 04:43:37 -05:00
Add test for completion in function expression
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
///<reference path="fourslash.ts" />
|
||||
|
||||
//// var x = function foo() {
|
||||
//// /*1*/
|
||||
//// }
|
||||
|
||||
goTo.marker("1");
|
||||
verify.completionListContains("foo", "(local function) foo(): void", /*documentation*/ undefined, "local function");
|
||||
@@ -0,0 +1,19 @@
|
||||
///<reference path="fourslash.ts" />
|
||||
|
||||
//// function foo() {}
|
||||
//// /*0*/
|
||||
//// var x = function foo() {
|
||||
//// /*1*/
|
||||
//// }
|
||||
//// var y = function () {
|
||||
//// /*2*/
|
||||
//// }
|
||||
|
||||
goTo.marker("0");
|
||||
verify.completionListContains("foo", "function foo(): void", /*documentation*/ undefined, "function");
|
||||
|
||||
goTo.marker("1");
|
||||
verify.completionListContains("foo", "(local function) foo(): void", /*documentation*/ undefined, "local function");
|
||||
|
||||
goTo.marker("2");
|
||||
verify.completionListContains("foo", "function foo(): void", /*documentation*/ undefined, "function")
|
||||
Reference in New Issue
Block a user