mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
361 lines
8.4 KiB
Plaintext
361 lines
8.4 KiB
Plaintext
// === vsFindAllReferences ===
|
|
// === /file.tsx ===
|
|
// declare namespace JSX {
|
|
// interface Element { }
|
|
// interface IntrinsicElements {
|
|
// /*FIND ALL REFS*/[|div|]: {
|
|
// name?: string;
|
|
// isOpen?: boolean;
|
|
// };
|
|
// span: { n: string; };
|
|
// }
|
|
// }
|
|
// var x = <[|div|] />;
|
|
|
|
[
|
|
{
|
|
"_vs_id": 0,
|
|
"_vs_kind": [
|
|
17
|
|
],
|
|
"_vs_location": {
|
|
"uri": "file:///file.tsx",
|
|
"range": {
|
|
"start": {
|
|
"line": 3,
|
|
"character": 8
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"character": 11
|
|
}
|
|
}
|
|
},
|
|
"_vs_definitionText": {
|
|
"Runs": [
|
|
{
|
|
"ClassificationTypeName": "punctuation",
|
|
"Text": "(",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "text",
|
|
"Text": "property",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "punctuation",
|
|
"Text": ") ",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "property name",
|
|
"Text": "IntrinsicElements.div",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "punctuation",
|
|
"Text": ": ",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "punctuation",
|
|
"Text": "{",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "whitespace",
|
|
"Text": " ",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "property name",
|
|
"Text": "name",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "punctuation",
|
|
"Text": "?",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "punctuation",
|
|
"Text": ":",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "whitespace",
|
|
"Text": " ",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "keyword",
|
|
"Text": "string",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "punctuation",
|
|
"Text": ";",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "whitespace",
|
|
"Text": " ",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "property name",
|
|
"Text": "isOpen",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "punctuation",
|
|
"Text": "?",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "punctuation",
|
|
"Text": ":",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "whitespace",
|
|
"Text": " ",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "keyword",
|
|
"Text": "boolean",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "punctuation",
|
|
"Text": ";",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "whitespace",
|
|
"Text": " ",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "punctuation",
|
|
"Text": "}",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
}
|
|
],
|
|
"_vs_type": "ClassifiedTextElement"
|
|
},
|
|
"_vs_projectName": "/dev/null/inferred",
|
|
"_vs_containingType": ""
|
|
},
|
|
{
|
|
"_vs_id": 1,
|
|
"_vs_definitionId": 0,
|
|
"_vs_kind": [
|
|
3
|
|
],
|
|
"_vs_location": {
|
|
"uri": "file:///file.tsx",
|
|
"range": {
|
|
"start": {
|
|
"line": 10,
|
|
"character": 9
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"character": 12
|
|
}
|
|
}
|
|
},
|
|
"_vs_projectName": "/dev/null/inferred"
|
|
}
|
|
]
|
|
|
|
|
|
|
|
// === vsFindAllReferences ===
|
|
// === /file.tsx ===
|
|
// --- (line: 7) skipped ---
|
|
// span: { n: string; };
|
|
// }
|
|
// }
|
|
// var x = /*FIND ALL REFS*/<div />;
|
|
|
|
[]
|
|
|
|
|
|
|
|
// === vsFindAllReferences ===
|
|
// === /file.tsx ===
|
|
// declare namespace JSX {
|
|
// interface Element { }
|
|
// interface IntrinsicElements {
|
|
// [|div|]: {
|
|
// name?: string;
|
|
// isOpen?: boolean;
|
|
// };
|
|
// span: { n: string; };
|
|
// }
|
|
// }
|
|
// var x = </*FIND ALL REFS*/[|div|] />;
|
|
|
|
[
|
|
{
|
|
"_vs_id": 0,
|
|
"_vs_kind": [
|
|
17
|
|
],
|
|
"_vs_location": {
|
|
"uri": "file:///file.tsx",
|
|
"range": {
|
|
"start": {
|
|
"line": 3,
|
|
"character": 8
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"character": 11
|
|
}
|
|
}
|
|
},
|
|
"_vs_definitionText": {
|
|
"Runs": [
|
|
{
|
|
"ClassificationTypeName": "punctuation",
|
|
"Text": "(",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "text",
|
|
"Text": "property",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "punctuation",
|
|
"Text": ") ",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "property name",
|
|
"Text": "JSX.IntrinsicElements.div",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "punctuation",
|
|
"Text": ": ",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "punctuation",
|
|
"Text": "{",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "whitespace",
|
|
"Text": " ",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "property name",
|
|
"Text": "name",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "punctuation",
|
|
"Text": "?",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "punctuation",
|
|
"Text": ":",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "whitespace",
|
|
"Text": " ",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "keyword",
|
|
"Text": "string",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "punctuation",
|
|
"Text": ";",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "whitespace",
|
|
"Text": " ",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "property name",
|
|
"Text": "isOpen",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "punctuation",
|
|
"Text": "?",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "punctuation",
|
|
"Text": ":",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "whitespace",
|
|
"Text": " ",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "keyword",
|
|
"Text": "boolean",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "punctuation",
|
|
"Text": ";",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "whitespace",
|
|
"Text": " ",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
},
|
|
{
|
|
"ClassificationTypeName": "punctuation",
|
|
"Text": "}",
|
|
"_vs_type": "ClassifiedTextRun"
|
|
}
|
|
],
|
|
"_vs_type": "ClassifiedTextElement"
|
|
},
|
|
"_vs_projectName": "/dev/null/inferred",
|
|
"_vs_containingType": ""
|
|
},
|
|
{
|
|
"_vs_id": 1,
|
|
"_vs_definitionId": 0,
|
|
"_vs_kind": [
|
|
3
|
|
],
|
|
"_vs_location": {
|
|
"uri": "file:///file.tsx",
|
|
"range": {
|
|
"start": {
|
|
"line": 10,
|
|
"character": 9
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"character": 12
|
|
}
|
|
}
|
|
},
|
|
"_vs_projectName": "/dev/null/inferred"
|
|
}
|
|
] |