* Print js-constructor function type names Instead of printing them as a type literal, which is scary. * Use assigned name for functions and classes That otherwise have no name. This helps quick info for javascript a *lot*. Typescript mainly benefits when printing the type of class expressions. * Improve names of functions in binding elements Also fix some fourslash baselines
30 lines
476 B
TypeScript
30 lines
476 B
TypeScript
/// <reference path="fourslash.ts"/>
|
|
|
|
//// (function(){
|
|
//// var A;
|
|
//// A/*1*/
|
|
//// .a = function() { };
|
|
//// })();
|
|
|
|
verify.navigationTree(
|
|
{
|
|
"text": "<global>",
|
|
"kind": "script",
|
|
"childItems": [
|
|
{
|
|
"text": "<function>",
|
|
"kind": "function",
|
|
"childItems": [
|
|
{
|
|
"text": "a",
|
|
"kind": "function"
|
|
},
|
|
{
|
|
"text": "A",
|
|
"kind": "var"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
});
|