7be7cba050
* Fix binding well-known symbols by element access * Add navigationBar test * Revert settings.json change * Accept baselines * Actually make it bind * Accept API baselines * Dont use internal name in API
54 lines
865 B
TypeScript
54 lines
865 B
TypeScript
/// <reference path="fourslash.ts"/>
|
|
|
|
////function f() {}
|
|
////f[Symbol.iterator] = function() {}
|
|
|
|
verify.navigationTree({
|
|
"text": "<global>",
|
|
"kind": "script",
|
|
"childItems": [
|
|
{
|
|
"text": "f",
|
|
"kind": "class",
|
|
"childItems": [
|
|
{
|
|
"text": "constructor",
|
|
"kind": "constructor"
|
|
},
|
|
{
|
|
"text": "[Symbol.iterator]",
|
|
"kind": "function"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
});
|
|
|
|
verify.navigationBar([
|
|
{
|
|
"text": "<global>",
|
|
"kind": "script",
|
|
"childItems": [
|
|
{
|
|
"text": "f",
|
|
"kind": "class"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"text": "f",
|
|
"kind": "class",
|
|
"childItems": [
|
|
{
|
|
"text": "constructor",
|
|
"kind": "constructor"
|
|
},
|
|
{
|
|
"text": "[Symbol.iterator]",
|
|
"kind": "function"
|
|
}
|
|
],
|
|
"indent": 1
|
|
}
|
|
]);
|