Skip to content

Commit

Permalink
add FileXRefsGenericEntities to compute all xrefs (regular or xlang) …
Browse files Browse the repository at this point in the history
…within a file

Summary: Introduces  predicate  `codemarkup.FileXRefsGenericEntities` to compute all xrefs within a file. Entities can be regular entities (with target location), or xlang entities (optional target location). This generalizes `codemarkup.FileEntityXRefsLocation`

Reviewed By: nhawkes

Differential Revision: D66079681

fbshipit-source-id: ca95882645d3ffde4c0a7e9e35cb6c35a8de09db
  • Loading branch information
Philippe Bidinger authored and facebook-github-bot committed Nov 22, 2024
1 parent d1576ba commit 6aec4ef
Show file tree
Hide file tree
Showing 85 changed files with 85,784 additions and 374 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
[
"@generated",
{
"key": {
"file": { "key": "test.cpp" },
"genEntity": {
"plainEntity": {
"xref": {
"target": {
"name": "I",
"file": { "key": "test.cpp" },
"location": {
"range": {
"file": { "key": "test.cpp" },
"lineBegin": 9,
"columnBegin": 1,
"lineEnd": 9,
"columnEnd": 20
}
},
"destination": {
"file": { "key": "test.cpp" },
"span": { "start": 227, "length": 1 }
}
},
"source": { "span": { "start": 265, "length": 1 } }
},
"entity": {
"cxx": {
"decl": {
"typeAlias": {
"key": {
"name": {
"key": {
"name": { "key": "I" },
"scope": { "global_": { } }
}
},
"type": { "key": "__int128_t" },
"kind": 1,
"source": {
"file": { "key": "test.cpp" },
"lineBegin": 9,
"columnBegin": 1,
"lineEnd": 9,
"columnEnd": 20
}
}
}
}
}
}
}
}
}
}
]
Loading

0 comments on commit 6aec4ef

Please sign in to comment.