-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Closed
Copy link
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug
Description
TypeScript Version: 3.0.0-dev.20180616
Search Terms:
- navtree
- method, function, property
Code
For the code:
class K {
p = 1
f = () => {}
m() {}
}Run a navtree request
Expected behavior:
Some way to identify that f is a function
Actual behavior:
Both p and f are reported the same way, as properties.
Result: {
"text": "<global>",
"kind": "script",
"kindModifiers": "",
"spans": [
{
"start": {
"line": 1,
"offset": 1
},
"end": {
"line": 5,
"offset": 3
}
}
],
"childItems": [
{
"text": "K",
"kind": "class",
"kindModifiers": "",
"spans": [
{
"start": {
"line": 1,
"offset": 1
},
"end": {
"line": 5,
"offset": 2
}
}
],
"nameSpan": {
"start": {
"line": 1,
"offset": 7
},
"end": {
"line": 1,
"offset": 8
}
},
"childItems": [
{
"text": "f",
"kind": "property",
"kindModifiers": "",
"spans": [
{
"start": {
"line": 3,
"offset": 5
},
"end": {
"line": 3,
"offset": 17
}
}
],
"nameSpan": {
"start": {
"line": 3,
"offset": 5
},
"end": {
"line": 3,
"offset": 6
}
}
},
{
"text": "m",
"kind": "method",
"kindModifiers": "",
"spans": [
{
"start": {
"line": 4,
"offset": 5
},
"end": {
"line": 4,
"offset": 11
}
}
],
"nameSpan": {
"start": {
"line": 4,
"offset": 5
},
"end": {
"line": 4,
"offset": 6
}
}
},
{
"text": "p",
"kind": "property",
"kindModifiers": "",
"spans": [
{
"start": {
"line": 2,
"offset": 5
},
"end": {
"line": 2,
"offset": 10
}
}
],
"nameSpan": {
"start": {
"line": 2,
"offset": 5
},
"end": {
"line": 2,
"offset": 6
}
}
}
]
}
]
}
Related Issues:
ackvf, thorn0, JobLeonard, wand3r, ronvoluted and 1 more
Metadata
Metadata
Assignees
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug