TypeScript/tests/baselines/reference/findAllRefsForDefaultKeyword.baseline.jsonc

89 lines
1.6 KiB
Plaintext

undefined
undefined
undefined
undefined
// === /tests/cases/fourslash/findAllRefsForDefaultKeyword.ts ===
// function f(value: string, default: string) {}
//
// const default = 1;
//
// function default() {}
//
// class default {}
//
// const foo = {
// /*FIND ALL REFS*/[|default|]: 1
// }
[
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/tests/cases/fourslash/findAllRefsForDefaultKeyword.ts",
"kind": "property",
"name": "(property) default: number",
"textSpan": {
"start": 126,
"length": 7
},
"displayParts": [
{
"text": "(",
"kind": "punctuation"
},
{
"text": "property",
"kind": "text"
},
{
"text": ")",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "default",
"kind": "propertyName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "number",
"kind": "keyword"
}
],
"contextSpan": {
"start": 126,
"length": 10
}
},
"references": [
{
"textSpan": {
"start": 126,
"length": 7
},
"fileName": "/tests/cases/fourslash/findAllRefsForDefaultKeyword.ts",
"contextSpan": {
"start": 126,
"length": 10
},
"isWriteAccess": true,
"isDefinition": true
}
]
}
]