From 6aec4ef0f967b4250daf62cf12890059ccbef51c Mon Sep 17 00:00:00 2001 From: Philippe Bidinger Date: Fri, 22 Nov 2024 06:48:17 -0800 Subject: [PATCH] add FileXRefsGenericEntities to compute all xrefs (regular or xlang) 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 --- .../xrefs/builtin1/fileentityxrefsgeneric.out | 57 + .../containers/fileentityxrefsgeneric.out | 417 ++ .../clang/xrefs/fileentityxrefsgeneric.out | 1 + .../clang/xrefs/fileentityxrefsgeneric.query | 2 + .../xrefs/macro1/fileentityxrefsgeneric.out | 5942 +++++++++++++++++ .../xrefs/macro2/fileentityxrefsgeneric.out | 170 + .../xrefs/macro3/fileentityxrefsgeneric.out | 643 ++ .../xrefs/macro4/fileentityxrefsgeneric.out | 529 ++ .../member-xlang/fileentityxrefsgeneric.out | 63 + .../xrefs/member1/fileentityxrefsgeneric.out | 1397 ++++ .../fileentityxrefsgeneric.out | 29 + .../multifile1/fileentityxrefsgeneric.out | 55 + .../multifile2/fileentityxrefsgeneric.out | 236 + .../namespace1/fileentityxrefsgeneric.out | 1015 +++ .../fileentityxrefsgeneric.out | 235 + .../objc-ivar1/fileentityxrefsgeneric.out | 57 + .../objc-method1/fileentityxrefsgeneric.out | 464 ++ .../objc-property1/fileentityxrefsgeneric.out | 557 ++ .../objc-property2/fileentityxrefsgeneric.out | 123 + .../objc-protocol1/fileentityxrefsgeneric.out | 276 + .../objc-selector1/fileentityxrefsgeneric.out | 223 + .../fileentityxrefsgeneric.out | 224 + .../template-fun1/fileentityxrefsgeneric.out | 1910 ++++++ .../fileentityxrefsgeneric.out | 3658 ++++++++++ .../fileentityxrefsgeneric.out | 2887 ++++++++ .../fileentityxrefsgeneric.out | 5500 +++++++++++++++ ...ntityxrefsgeneric.platform010-clang-17.out | 5500 +++++++++++++++ .../fileentityxrefsgeneric.out | 318 + .../fileentityxrefsgeneric.out | 361 + .../template-var1/fileentityxrefsgeneric.out | 243 + .../template1/fileentityxrefsgeneric.out | 670 ++ .../template2/fileentityxrefsgeneric.out | 277 + .../template3/fileentityxrefsgeneric.out | 657 ++ .../using-chain1/fileentityxrefsgeneric.out | 269 + .../using-decl1/fileentityxrefsgeneric.out | 4824 +++++++++++++ .../using-decl2/fileentityxrefsgeneric.out | 2972 +++++++++ .../using-decl3/fileentityxrefsgeneric.out | 4977 ++++++++++++++ .../using-decl4/fileentityxrefsgeneric.out | 3654 ++++++++++ ...ntityxrefsgeneric.platform010-clang-17.out | 3654 ++++++++++ .../using-decl5/fileentityxrefsgeneric.out | 1307 ++++ .../using-decl6/fileentityxrefsgeneric.out | 529 ++ .../using-decl7/fileentityxrefsgeneric.out | 527 ++ .../fileentityxrefsgeneric.out | 3819 +++++++++++ .../fileentityxrefsgeneric.out | 1612 +++++ .../fileentityxrefsgeneric.out | 207 + .../fileentityxrefsgeneric.out | 221 + .../fileentityxrefsgeneric.out | 82 + .../using-enum1/fileentityxrefsgeneric.out | 660 ++ .../using-enum2/fileentityxrefsgeneric.out | 151 + .../using-enum3/fileentityxrefsgeneric.out | 2077 ++++++ .../using-lambda1/fileentityxrefsgeneric.out | 608 ++ .../xrefs/var1/fileentityxrefsgeneric.out | 1469 ++++ ...ntityxrefsgeneric.platform010-clang-17.out | 1469 ++++ .../xrefs/var2/fileentityxrefsgeneric.out | 1865 ++++++ .../tests/flow/cases/xrefs/xrefs_generic.out | 1979 ++++++ .../flow/cases/xrefs/xrefs_generic.query | 2 + .../cases/xrefs/xrefs_generic_by_file.out | 1603 +++++ .../cases/xrefs/xrefs_generic_by_file.perf | 19 + .../cases/xrefs/xrefs_generic_by_file.query | 3 + .../tests/hack/cases/xrefs/xrefs_generic.out | 1583 +++++ .../hack/cases/xrefs/xrefs_generic.query | 2 + .../cases/xrefs/xrefs_generic_by_file.out | 852 +++ .../cases/xrefs/xrefs_generic_by_file.perf | 9 + .../cases/xrefs/xrefs_generic_by_file.query | 3 + .../hack-xlang/filexrefsgenericentities.out | 1165 ++++ .../hack-xlang/filexrefsgenericentities.perf | 10 + .../hack-xlang/filexrefsgenericentities.query | 3 + .../input_key/file_entity_xrefs_generic.out | 227 + .../input_key/file_entity_xrefs_generic.perf | 9 + .../input_key/file_entity_xrefs_generic.query | 3 + .../cases/xrefs/entity_xref_generic.out | 536 ++ .../cases/xrefs/entity_xref_generic.perf | 16 + .../cases/xrefs/entity_xref_generic.query | 3 + .../cases/xrefs/entity_xrefs_generic.out | 538 ++ .../cases/xrefs/entity_xrefs_generic.perf | 16 + .../cases/xrefs/entity_xrefs_generic.query | 3 + .../cases/xrefs/xrefs_generic_by_file.out | 536 ++ .../cases/xrefs/xrefs_generic_by_file.perf | 16 + .../cases/xrefs/xrefs_generic_by_file.query | 3 + .../cases/xrefs/entity_xref_generic.out | 4491 +++++++++++++ .../cases/xrefs/entity_xref_generic.perf | 9 + .../cases/xrefs/entity_xref_generic.query | 3 + glean/schema/cpp/schema.h | 807 ++- glean/schema/source/code.angle | 4 +- glean/schema/source/codemarkup.angle | 56 +- 85 files changed, 85784 insertions(+), 374 deletions(-) create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/builtin1/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/containers/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/fileentityxrefsgeneric.query create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/macro1/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/macro2/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/macro3/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/macro4/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/member-xlang/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/member1/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/multifile-xlang/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/multifile1/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/multifile2/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/namespace1/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/objc-implicit-class-method1/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/objc-ivar1/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/objc-method1/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/objc-property1/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/objc-property2/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/objc-protocol1/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/objc-selector1/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/template-alias1/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/template-fun1/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/template-member-fun1/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/template-member-fun2/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/template-member-var1/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/template-member-var1/fileentityxrefsgeneric.platform010-clang-17.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/template-using-fun1/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/template-using-var1/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/template-var1/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/template1/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/template2/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/template3/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/using-chain1/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/using-decl1/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/using-decl2/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/using-decl3/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/using-decl4/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/using-decl4/fileentityxrefsgeneric.platform010-clang-17.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/using-decl5/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/using-decl6/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/using-decl7/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/using-directive1/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/using-directive2/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/using-directive3/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/using-directive5/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/using-directive6/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/using-enum1/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/using-enum2/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/using-enum3/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/using-lambda1/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/var1/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/var1/fileentityxrefsgeneric.platform010-clang-17.out create mode 100644 glean/lang/codemarkup/tests/clang/xrefs/var2/fileentityxrefsgeneric.out create mode 100644 glean/lang/codemarkup/tests/flow/cases/xrefs/xrefs_generic.out create mode 100644 glean/lang/codemarkup/tests/flow/cases/xrefs/xrefs_generic.query create mode 100644 glean/lang/codemarkup/tests/flow/cases/xrefs/xrefs_generic_by_file.out create mode 100644 glean/lang/codemarkup/tests/flow/cases/xrefs/xrefs_generic_by_file.perf create mode 100644 glean/lang/codemarkup/tests/flow/cases/xrefs/xrefs_generic_by_file.query create mode 100644 glean/lang/codemarkup/tests/hack/cases/xrefs/xrefs_generic.out create mode 100644 glean/lang/codemarkup/tests/hack/cases/xrefs/xrefs_generic.query create mode 100644 glean/lang/codemarkup/tests/hack/cases/xrefs/xrefs_generic_by_file.out create mode 100644 glean/lang/codemarkup/tests/hack/cases/xrefs/xrefs_generic_by_file.perf create mode 100644 glean/lang/codemarkup/tests/hack/cases/xrefs/xrefs_generic_by_file.query create mode 100644 glean/lang/codemarkup/tests/hack/glass/hack-xlang/filexrefsgenericentities.out create mode 100644 glean/lang/codemarkup/tests/hack/glass/hack-xlang/filexrefsgenericentities.perf create mode 100644 glean/lang/codemarkup/tests/hack/glass/hack-xlang/filexrefsgenericentities.query create mode 100644 glean/lang/codemarkup/tests/haskell/cases/input_key/file_entity_xrefs_generic.out create mode 100644 glean/lang/codemarkup/tests/haskell/cases/input_key/file_entity_xrefs_generic.perf create mode 100644 glean/lang/codemarkup/tests/haskell/cases/input_key/file_entity_xrefs_generic.query create mode 100644 glean/lang/codemarkup/tests/python/cases/xrefs/entity_xref_generic.out create mode 100644 glean/lang/codemarkup/tests/python/cases/xrefs/entity_xref_generic.perf create mode 100644 glean/lang/codemarkup/tests/python/cases/xrefs/entity_xref_generic.query create mode 100644 glean/lang/codemarkup/tests/python/cases/xrefs/entity_xrefs_generic.out create mode 100644 glean/lang/codemarkup/tests/python/cases/xrefs/entity_xrefs_generic.perf create mode 100644 glean/lang/codemarkup/tests/python/cases/xrefs/entity_xrefs_generic.query create mode 100644 glean/lang/codemarkup/tests/python/cases/xrefs/xrefs_generic_by_file.out create mode 100644 glean/lang/codemarkup/tests/python/cases/xrefs/xrefs_generic_by_file.perf create mode 100644 glean/lang/codemarkup/tests/python/cases/xrefs/xrefs_generic_by_file.query create mode 100644 glean/lang/codemarkup/tests/thrift/cases/xrefs/entity_xref_generic.out create mode 100644 glean/lang/codemarkup/tests/thrift/cases/xrefs/entity_xref_generic.perf create mode 100644 glean/lang/codemarkup/tests/thrift/cases/xrefs/entity_xref_generic.query diff --git a/glean/lang/codemarkup/tests/clang/xrefs/builtin1/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/builtin1/fileentityxrefsgeneric.out new file mode 100644 index 000000000..17cee8aa3 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/builtin1/fileentityxrefsgeneric.out @@ -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 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/containers/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/containers/fileentityxrefsgeneric.out new file mode 100644 index 000000000..27013e80a --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/containers/fileentityxrefsgeneric.out @@ -0,0 +1,417 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "a", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 25, + "columnBegin": 24, + "lineEnd": 25, + "columnEnd": 28 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 404, "length": 1 } + } + }, + "source": { "span": { "start": 445, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "a" }, + "scope": { + "local": { + "key": { + "name": { + "key": { + "name": { "key": "this_is_a_function" } + } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "foo" } } + } + } + } + } + } + } + }, + "type": { "key": "int" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 25, + "columnBegin": 24, + "lineEnd": 25, + "columnEnd": 28 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "a", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 25, + "columnBegin": 24, + "lineEnd": 25, + "columnEnd": 28 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 404, "length": 1 } + } + }, + "source": { "span": { "start": 463, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "a" }, + "scope": { + "local": { + "key": { + "name": { + "key": { + "name": { "key": "this_is_a_function" } + } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "foo" } } + } + } + } + } + } + } + }, + "type": { "key": "int" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 25, + "columnBegin": 24, + "lineEnd": 25, + "columnEnd": 28 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "a", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 25, + "columnBegin": 24, + "lineEnd": 25, + "columnEnd": 28 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 404, "length": 1 } + } + }, + "source": { "span": { "start": 467, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "a" }, + "scope": { + "local": { + "key": { + "name": { + "key": { + "name": { "key": "this_is_a_function" } + } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "foo" } } + } + } + } + } + } + } + }, + "type": { "key": "int" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 25, + "columnBegin": 24, + "lineEnd": 25, + "columnEnd": 28 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "b", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 25, + "columnBegin": 31, + "lineEnd": 25, + "columnEnd": 35 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 411, "length": 1 } + } + }, + "source": { "span": { "start": 449, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "b" }, + "scope": { + "local": { + "key": { + "name": { + "key": { + "name": { "key": "this_is_a_function" } + } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "foo" } } + } + } + } + } + } + } + }, + "type": { "key": "int" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 25, + "columnBegin": 31, + "lineEnd": 25, + "columnEnd": 35 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "b", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 25, + "columnBegin": 31, + "lineEnd": 25, + "columnEnd": 35 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 411, "length": 1 } + } + }, + "source": { "span": { "start": 465, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "b" }, + "scope": { + "local": { + "key": { + "name": { + "key": { + "name": { "key": "this_is_a_function" } + } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "foo" } } + } + } + } + } + } + } + }, + "type": { "key": "int" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 25, + "columnBegin": 31, + "lineEnd": 25, + "columnEnd": 35 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "b", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 25, + "columnBegin": 31, + "lineEnd": 25, + "columnEnd": 35 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 411, "length": 1 } + } + }, + "source": { "span": { "start": 469, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "b" }, + "scope": { + "local": { + "key": { + "name": { + "key": { + "name": { "key": "this_is_a_function" } + } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "foo" } } + } + } + } + } + } + } + }, + "type": { "key": "int" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 25, + "columnBegin": 31, + "lineEnd": 25, + "columnEnd": 35 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/fileentityxrefsgeneric.out new file mode 100644 index 000000000..c7ae735b9 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/fileentityxrefsgeneric.out @@ -0,0 +1 @@ +[ "@generated" ] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/fileentityxrefsgeneric.query b/glean/lang/codemarkup/tests/clang/xrefs/fileentityxrefsgeneric.query new file mode 100644 index 000000000..26267d2db --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/fileentityxrefsgeneric.query @@ -0,0 +1,2 @@ +query: codemarkup.FileXRefsGenericEntities _ +transform: [gensort, []] diff --git a/glean/lang/codemarkup/tests/clang/xrefs/macro1/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/macro1/fileentityxrefsgeneric.out new file mode 100644 index 000000000..d25b09cc3 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/macro1/fileentityxrefsgeneric.out @@ -0,0 +1,5942 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "FOO", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 9, + "lineEnd": 9, + "columnEnd": 11 + } + } + }, + "source": { "span": { "start": 549, "length": 3 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "FOO" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 9, + "lineEnd": 9, + "columnEnd": 11 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "FOO", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 9, + "lineEnd": 9, + "columnEnd": 11 + } + } + }, + "source": { "span": { "start": 660, "length": 8 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "FOO" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 9, + "lineEnd": 9, + "columnEnd": 11 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "FOO", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 9, + "lineEnd": 9, + "columnEnd": 11 + } + } + }, + "source": { "span": { "start": 697, "length": 3 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "FOO" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 9, + "lineEnd": 9, + "columnEnd": 11 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "FOO", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 9, + "lineEnd": 9, + "columnEnd": 11 + } + } + }, + "source": { "span": { "start": 787, "length": 8 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "FOO" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 9, + "lineEnd": 9, + "columnEnd": 11 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "FOO", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 9, + "lineEnd": 9, + "columnEnd": 11 + } + } + }, + "source": { "span": { "start": 928, "length": 3 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "FOO" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 9, + "lineEnd": 9, + "columnEnd": 11 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "FOO", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 9, + "lineEnd": 9, + "columnEnd": 11 + } + } + }, + "source": { "span": { "start": 974, "length": 8 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "FOO" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 9, + "lineEnd": 9, + "columnEnd": 11 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 25, + "columnBegin": 1, + "lineEnd": 29, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 453, "length": 3 } + } + }, + "source": { "span": { "start": 916, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 25, + "columnBegin": 1, + "lineEnd": 29, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 26, + "columnBegin": 3, + "lineEnd": 26, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 27, + "columnBegin": 3, + "lineEnd": 27, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "field" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { "field": { "mutable_": false } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 3, + "lineEnd": 28, + "columnEnd": 11 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 393, "length": 1 } + } + }, + "source": { "span": { "start": 344, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 3, + "lineEnd": 21, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "var" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 9 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 393, "length": 1 } + } + }, + "source": { "span": { "start": 372, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 3, + "lineEnd": 21, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "var" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 9 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 393, "length": 1 } + } + }, + "source": { "span": { "start": 540, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 3, + "lineEnd": 21, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "var" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 9 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 393, "length": 1 } + } + }, + "source": { "span": { "start": 546, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 3, + "lineEnd": 21, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "var" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 9 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 393, "length": 1 } + } + }, + "source": { "span": { "start": 558, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 3, + "lineEnd": 21, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "var" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 9 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 393, "length": 1 } + } + }, + "source": { "span": { "start": 575, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 3, + "lineEnd": 21, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "var" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 9 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 393, "length": 1 } + } + }, + "source": { "span": { "start": 595, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 3, + "lineEnd": 21, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "var" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 9 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 393, "length": 1 } + } + }, + "source": { "span": { "start": 607, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 3, + "lineEnd": 21, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "var" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 9 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 393, "length": 1 } + } + }, + "source": { "span": { "start": 623, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 3, + "lineEnd": 21, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "var" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 9 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 393, "length": 1 } + } + }, + "source": { "span": { "start": 638, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 3, + "lineEnd": 21, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "var" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 9 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 393, "length": 1 } + } + }, + "source": { "span": { "start": 657, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 3, + "lineEnd": 21, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "var" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 9 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 393, "length": 1 } + } + }, + "source": { "span": { "start": 674, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 3, + "lineEnd": 21, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "var" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 9 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 393, "length": 1 } + } + }, + "source": { "span": { "start": 825, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 3, + "lineEnd": 21, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "var" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 9 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 393, "length": 1 } + } + }, + "source": { "span": { "start": 842, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 3, + "lineEnd": 21, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "var" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 9 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 393, "length": 1 } + } + }, + "source": { "span": { "start": 854, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 3, + "lineEnd": 21, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "var" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 9 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 393, "length": 1 } + } + }, + "source": { "span": { "start": 882, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 3, + "lineEnd": 21, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "var" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 9 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 393, "length": 1 } + } + }, + "source": { "span": { "start": 899, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 3, + "lineEnd": 21, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "var" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 9 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "NEST_FOO", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 9, + "lineEnd": 13, + "columnEnd": 16 + } + } + }, + "source": { "span": { "start": 660, "length": 8 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "NEST_FOO" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 9, + "lineEnd": 13, + "columnEnd": 16 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "NEST_FOO", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 9, + "lineEnd": 13, + "columnEnd": 16 + } + } + }, + "source": { "span": { "start": 787, "length": 8 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "NEST_FOO" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 9, + "lineEnd": 13, + "columnEnd": 16 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "NEST_FOO", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 9, + "lineEnd": 13, + "columnEnd": 16 + } + } + }, + "source": { "span": { "start": 974, "length": 8 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "NEST_FOO" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 9, + "lineEnd": 13, + "columnEnd": 16 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "NEST_REF", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 9, + "lineEnd": 14, + "columnEnd": 16 + } + } + }, + "source": { "span": { "start": 677, "length": 8 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "NEST_REF" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 9, + "lineEnd": 14, + "columnEnd": 16 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "NEST_REF", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 9, + "lineEnd": 14, + "columnEnd": 16 + } + } + }, + "source": { "span": { "start": 801, "length": 8 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "NEST_REF" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 9, + "lineEnd": 14, + "columnEnd": 16 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "NEST_REF", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 9, + "lineEnd": 14, + "columnEnd": 16 + } + } + }, + "source": { "span": { "start": 990, "length": 8 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "NEST_REF" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 9, + "lineEnd": 14, + "columnEnd": 16 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N_BAR", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 9, + "lineEnd": 17, + "columnEnd": 13 + } + } + }, + "source": { "span": { "start": 876, "length": 5 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "N_BAR" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 9, + "lineEnd": 17, + "columnEnd": 13 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N_BAR", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 9, + "lineEnd": 17, + "columnEnd": 13 + } + } + }, + "source": { "span": { "start": 893, "length": 5 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "N_BAR" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 9, + "lineEnd": 17, + "columnEnd": 13 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N_FOO", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 9, + "lineEnd": 16, + "columnEnd": 13 + } + } + }, + "source": { "span": { "start": 867, "length": 5 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "N_FOO" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 9, + "lineEnd": 16, + "columnEnd": 13 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "PASTE", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 9, + "lineEnd": 11, + "columnEnd": 13 + } + } + }, + "source": { "span": { "start": 578, "length": 5 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "PASTE" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 9, + "lineEnd": 11, + "columnEnd": 13 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "PASTE", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 9, + "lineEnd": 11, + "columnEnd": 13 + } + } + }, + "source": { "span": { "start": 626, "length": 5 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "PASTE" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 9, + "lineEnd": 11, + "columnEnd": 13 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "PASTE", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 9, + "lineEnd": 11, + "columnEnd": 13 + } + } + }, + "source": { "span": { "start": 641, "length": 5 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "PASTE" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 9, + "lineEnd": 11, + "columnEnd": 13 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "PASTE", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 9, + "lineEnd": 11, + "columnEnd": 13 + } + } + }, + "source": { "span": { "start": 720, "length": 5 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "PASTE" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 9, + "lineEnd": 11, + "columnEnd": 13 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "PASTE", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 9, + "lineEnd": 11, + "columnEnd": 13 + } + } + }, + "source": { "span": { "start": 759, "length": 5 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "PASTE" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 9, + "lineEnd": 11, + "columnEnd": 13 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "PASTE", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 9, + "lineEnd": 11, + "columnEnd": 13 + } + } + }, + "source": { "span": { "start": 771, "length": 5 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "PASTE" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 9, + "lineEnd": 11, + "columnEnd": 13 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "PASTE", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 9, + "lineEnd": 11, + "columnEnd": 13 + } + } + }, + "source": { "span": { "start": 955, "length": 5 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "PASTE" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 9, + "lineEnd": 11, + "columnEnd": 13 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "REF", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + }, + "source": { "span": { "start": 561, "length": 3 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "REF" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "REF", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + }, + "source": { "span": { "start": 598, "length": 3 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "REF" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "REF", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + }, + "source": { "span": { "start": 610, "length": 3 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "REF" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "REF", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + }, + "source": { "span": { "start": 677, "length": 13 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "REF" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "REF", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + }, + "source": { "span": { "start": 706, "length": 3 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "REF" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "REF", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + }, + "source": { "span": { "start": 737, "length": 3 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "REF" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "REF", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + }, + "source": { "span": { "start": 746, "length": 3 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "REF" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "REF", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + }, + "source": { "span": { "start": 801, "length": 13 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "REF" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "REF", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + }, + "source": { "span": { "start": 821, "length": 3 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "REF" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "REF", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + }, + "source": { "span": { "start": 838, "length": 3 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "REF" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "REF", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + }, + "source": { "span": { "start": 850, "length": 3 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "REF" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "REF", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + }, + "source": { "span": { "start": 902, "length": 3 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "REF" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "REF", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + }, + "source": { "span": { "start": 939, "length": 3 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "REF" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "REF", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + }, + "source": { "span": { "start": 990, "length": 15 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "REF" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "REF", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + }, + "source": { "span": { "start": 1011, "length": 3 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "REF" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "REF", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + }, + "source": { "span": { "start": 1022, "length": 3 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "REF" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 11 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 3, + "lineEnd": 21, + "columnEnd": 18 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 420, "length": 3 } + } + }, + "source": { "span": { "start": 375, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "bar" } } }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 3, + "lineEnd": 21, + "columnEnd": 18 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 3, + "lineEnd": 21, + "columnEnd": 18 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 420, "length": 3 } + } + }, + "source": { "span": { "start": 602, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "bar" } } }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 3, + "lineEnd": 21, + "columnEnd": 18 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 3, + "lineEnd": 21, + "columnEnd": 18 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 420, "length": 3 } + } + }, + "source": { "span": { "start": 845, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "bar" } } }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 3, + "lineEnd": 21, + "columnEnd": 18 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 27, + "columnBegin": 3, + "lineEnd": 27, + "columnEnd": 18 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 482, "length": 3 } + } + }, + "source": { "span": { "start": 1015, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "bar" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 27, + "columnBegin": 3, + "lineEnd": 27, + "columnEnd": 18 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "field", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 3, + "lineEnd": 28, + "columnEnd": 11 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 500, "length": 5 } + } + }, + "source": { "span": { "start": 999, "length": 5 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "field" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { "field": { "mutable_": false } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 3, + "lineEnd": 28, + "columnEnd": 11 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "field", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 3, + "lineEnd": 28, + "columnEnd": 11 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 500, "length": 5 } + } + }, + "source": { "span": { "start": 1026, "length": 5 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "field" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { "field": { "mutable_": false } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 3, + "lineEnd": 28, + "columnEnd": 11 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 404, "length": 3 } + } + }, + "source": { "span": { "start": 233, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 15 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 404, "length": 3 } + } + }, + "source": { "span": { "start": 347, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 15 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 404, "length": 3 } + } + }, + "source": { "span": { "start": 565, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 15 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 404, "length": 3 } + } + }, + "source": { "span": { "start": 686, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 15 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 404, "length": 3 } + } + }, + "source": { "span": { "start": 828, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 15 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 26, + "columnBegin": 3, + "lineEnd": 26, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 466, "length": 3 } + } + }, + "source": { "span": { "start": 233, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 26, + "columnBegin": 3, + "lineEnd": 26, + "columnEnd": 15 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 26, + "columnBegin": 3, + "lineEnd": 26, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 466, "length": 3 } + } + }, + "source": { "span": { "start": 943, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 26, + "columnBegin": 3, + "lineEnd": 26, + "columnEnd": 15 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "var", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 9 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 438, "length": 3 } + } + }, + "source": { "span": { "start": 614, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "var" }, + "scope": { + "namespace_": { "key": { "name": { "key": "N" } } } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 9 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "var", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 9 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 438, "length": 3 } + } + }, + "source": { "span": { "start": 857, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "var" }, + "scope": { + "namespace_": { "key": { "name": { "key": "N" } } } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 9 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "var", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 9 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 438, "length": 3 } + } + }, + "source": { "span": { "start": 885, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "var" }, + "scope": { + "namespace_": { "key": { "name": { "key": "N" } } } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 9 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "var", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 9 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 438, "length": 3 } + } + }, + "source": { "span": { "start": 906, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "var" }, + "scope": { + "namespace_": { "key": { "name": { "key": "N" } } } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 9 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 57, + "columnBegin": 3, + "lineEnd": 57, + "columnEnd": 7 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 920, "length": 1 } + } + }, + "source": { "span": { "start": 926, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "Foo" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 57, + "columnBegin": 3, + "lineEnd": 57, + "columnEnd": 7 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 57, + "columnBegin": 3, + "lineEnd": 57, + "columnEnd": 7 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 920, "length": 1 } + } + }, + "source": { "span": { "start": 937, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "Foo" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 57, + "columnBegin": 3, + "lineEnd": 57, + "columnEnd": 7 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 57, + "columnBegin": 3, + "lineEnd": 57, + "columnEnd": 7 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 920, "length": 1 } + } + }, + "source": { "span": { "start": 953, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "Foo" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 57, + "columnBegin": 3, + "lineEnd": 57, + "columnEnd": 7 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 57, + "columnBegin": 3, + "lineEnd": 57, + "columnEnd": 7 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 920, "length": 1 } + } + }, + "source": { "span": { "start": 972, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "Foo" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 57, + "columnBegin": 3, + "lineEnd": 57, + "columnEnd": 7 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 57, + "columnBegin": 3, + "lineEnd": 57, + "columnEnd": 7 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 920, "length": 1 } + } + }, + "source": { "span": { "start": 988, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "Foo" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 57, + "columnBegin": 3, + "lineEnd": 57, + "columnEnd": 7 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 57, + "columnBegin": 3, + "lineEnd": 57, + "columnEnd": 7 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 920, "length": 1 } + } + }, + "source": { "span": { "start": 1009, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "Foo" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 57, + "columnBegin": 3, + "lineEnd": 57, + "columnEnd": 7 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 57, + "columnBegin": 3, + "lineEnd": 57, + "columnEnd": 7 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 920, "length": 1 } + } + }, + "source": { "span": { "start": 1020, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "Foo" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 57, + "columnBegin": 3, + "lineEnd": 57, + "columnEnd": 7 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/macro2/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/macro2/fileentityxrefsgeneric.out new file mode 100644 index 000000000..7707f09c8 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/macro2/fileentityxrefsgeneric.out @@ -0,0 +1,170 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "BLAH", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 9, + "lineEnd": 9, + "columnEnd": 12 + } + } + }, + "source": { "span": { "start": 481, "length": 4 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "BLAH" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 9, + "lineEnd": 9, + "columnEnd": 12 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "one", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 406, "length": 3 } + } + }, + "source": { "span": { "start": 495, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "one" } } }, + "scope": { "global_": { } } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 1 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "two", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 1, + "lineEnd": 22, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 435, "length": 3 } + } + }, + "source": { "span": { "start": 510, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "two" } } }, + "scope": { "global_": { } } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 1, + "lineEnd": 22, + "columnEnd": 1 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/macro3/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/macro3/fileentityxrefsgeneric.out new file mode 100644 index 000000000..356c7dd41 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/macro3/fileentityxrefsgeneric.out @@ -0,0 +1,643 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "MACRO_1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 9, + "lineEnd": 12, + "columnEnd": 15 + } + } + }, + "source": { "span": { "start": 396, "length": 7 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "MACRO_1" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 9, + "lineEnd": 12, + "columnEnd": 15 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "MACRO_1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 9, + "lineEnd": 12, + "columnEnd": 15 + } + } + }, + "source": { "span": { "start": 425, "length": 23 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "MACRO_1" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 9, + "lineEnd": 12, + "columnEnd": 15 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "MACRO_1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 9, + "lineEnd": 12, + "columnEnd": 15 + } + } + }, + "source": { "span": { "start": 454, "length": 23 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "MACRO_1" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 9, + "lineEnd": 12, + "columnEnd": 15 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "MACRO_2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 9, + "lineEnd": 13, + "columnEnd": 15 + } + } + }, + "source": { "span": { "start": 425, "length": 7 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "MACRO_2" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 9, + "lineEnd": 13, + "columnEnd": 15 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "MACRO_2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 9, + "lineEnd": 13, + "columnEnd": 15 + } + } + }, + "source": { "span": { "start": 454, "length": 23 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "MACRO_2" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 9, + "lineEnd": 13, + "columnEnd": 15 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "MACRO_3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 9, + "lineEnd": 14, + "columnEnd": 15 + } + } + }, + "source": { "span": { "start": 454, "length": 7 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "MACRO_3" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 9, + "lineEnd": 14, + "columnEnd": 15 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "NESTED_PASTE", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 20 + } + } + }, + "source": { "span": { "start": 484, "length": 12 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "NESTED_PASTE" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 9, + "lineEnd": 10, + "columnEnd": 20 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "PASTE", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 9, + "lineEnd": 9, + "columnEnd": 13 + } + } + }, + "source": { "span": { "start": 404, "length": 5 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "PASTE" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 9, + "lineEnd": 9, + "columnEnd": 13 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "PASTE", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 9, + "lineEnd": 9, + "columnEnd": 13 + } + } + }, + "source": { "span": { "start": 433, "length": 5 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "PASTE" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 9, + "lineEnd": 9, + "columnEnd": 13 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "PASTE", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 9, + "lineEnd": 9, + "columnEnd": 13 + } + } + }, + "source": { "span": { "start": 462, "length": 5 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "PASTE" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 9, + "lineEnd": 9, + "columnEnd": 13 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "PASTE", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 9, + "lineEnd": 9, + "columnEnd": 13 + } + } + }, + "source": { "span": { "start": 484, "length": 21 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "PASTE" }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 9, + "lineEnd": 9, + "columnEnd": 13 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foobar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 16 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 370, "length": 6 } + } + }, + "source": { "span": { "start": 404, "length": 14 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "foobar" } } }, + "scope": { "global_": { } } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 16 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foobar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 16 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 370, "length": 6 } + } + }, + "source": { "span": { "start": 433, "length": 14 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "foobar" } } }, + "scope": { "global_": { } } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 16 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foobar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 16 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 370, "length": 6 } + } + }, + "source": { "span": { "start": 462, "length": 14 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "foobar" } } }, + "scope": { "global_": { } } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 16 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/macro4/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/macro4/fileentityxrefsgeneric.out new file mode 100644 index 000000000..38ad979b4 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/macro4/fileentityxrefsgeneric.out @@ -0,0 +1,529 @@ +[ + "@generated", + { + "key": { + "file": { "key": "a.h" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 247, "length": 1 } + } + }, + "source": { "span": { "start": 242, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 15 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "a.h" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 258, "length": 3 } + } + }, + "source": { "span": { "start": 245, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 15 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "a.h" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 5, + "lineEnd": 20, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "a.h" }, + "span": { "start": 278, "length": 1 } + } + }, + "source": { "span": { "start": 301, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "baz" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "int" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 5, + "lineEnd": 20, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "a.h" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 5, + "lineEnd": 21, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "a.h" }, + "span": { "start": 278, "length": 1 } + } + }, + "source": { "span": { "start": 301, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "baz" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "int" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 5, + "lineEnd": 21, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "a.h" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 5, + "lineEnd": 22, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "a.h" }, + "span": { "start": 278, "length": 1 } + } + }, + "source": { "span": { "start": 301, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "baz" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "int" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 5, + "lineEnd": 22, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "REF_MACRO", + "file": { "key": "a.h" }, + "location": { + "range": { + "file": { "key": "a.h" }, + "lineBegin": 11, + "columnBegin": 9, + "lineEnd": 11, + "columnEnd": 17 + } + } + }, + "source": { "span": { "start": 319, "length": 9 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "REF_MACRO" }, + "source": { + "file": { "key": "a.h" }, + "lineBegin": 11, + "columnBegin": 9, + "lineEnd": 11, + "columnEnd": 17 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "REF_MACRO", + "file": { "key": "a.h" }, + "location": { + "range": { + "file": { "key": "a.h" }, + "lineBegin": 11, + "columnBegin": 9, + "lineEnd": 11, + "columnEnd": 17 + } + } + }, + "source": { "span": { "start": 335, "length": 9 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "REF_MACRO" }, + "source": { + "file": { "key": "a.h" }, + "lineBegin": 11, + "columnBegin": 9, + "lineEnd": 11, + "columnEnd": 17 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "REF_MACRO", + "file": { "key": "a.h" }, + "location": { + "range": { + "file": { "key": "a.h" }, + "lineBegin": 11, + "columnBegin": 9, + "lineEnd": 11, + "columnEnd": 17 + } + } + }, + "source": { "span": { "start": 351, "length": 9 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "REF_MACRO" }, + "source": { + "file": { "key": "a.h" }, + "lineBegin": 11, + "columnBegin": 9, + "lineEnd": 11, + "columnEnd": 17 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "REF_NONMACRO", + "file": { "key": "a.h" }, + "location": { + "range": { + "file": { "key": "a.h" }, + "lineBegin": 9, + "columnBegin": 9, + "lineEnd": 9, + "columnEnd": 20 + } + } + }, + "source": { "span": { "start": 285, "length": 12 } } + }, + "entity": { + "pp": { + "define": { + "key": { + "macro": { "key": "REF_NONMACRO" }, + "source": { + "file": { "key": "a.h" }, + "lineBegin": 9, + "columnBegin": 9, + "lineEnd": 9, + "columnEnd": 20 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "a.h", + "file": { "key": "a.h" }, + "location": { "span": { "start": 0, "length": 0 } } + }, + "source": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 9, + "columnEnd": 14 + } + } + }, + "entity": { "pp": { "include_": { "key": "a.h" } } } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/member-xlang/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/member-xlang/fileentityxrefsgeneric.out new file mode 100644 index 000000000..93092de09 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/member-xlang/fileentityxrefsgeneric.out @@ -0,0 +1,63 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 351, "length": 3 } + } + }, + "source": { "span": { "start": 377, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "bar" } } }, + "scope": { "global_": { } } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "int" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/member1/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/member1/fileentityxrefsgeneric.out new file mode 100644 index 000000000..de18961ee --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/member1/fileentityxrefsgeneric.out @@ -0,0 +1,1397 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 343, "length": 3 } + } + }, + "source": { "span": { "start": 432, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "ptr" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "Ptr" }, + "kind": { "field": { "mutable_": false } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 9 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 24, + "columnEnd": 3 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Ptr", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 228, "length": 3 } + } + }, + "source": { "span": { "start": 351, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Ptr" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "value" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Ptr" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "void *" }, + "kind": { "field": { "mutable_": false } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 13 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { + "conversionOperator": { "key": "bool" } + } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Ptr" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "bool" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 35 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { + "conversionOperator": { "key": "int" } + } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Ptr" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 30 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 325, "length": 3 } + } + }, + "source": { "span": { "start": 389, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "bar" } } }, + "scope": { "global_": { } } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "int" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 325, "length": 3 } + } + }, + "source": { "span": { "start": 452, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "bar" } } }, + "scope": { "global_": { } } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "int" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bool", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 35 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 251, "length": 8 } + } + }, + "source": { "span": { "start": 407, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { + "key": { "conversionOperator": { "key": "bool" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Ptr" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "bool" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 35 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bool", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 35 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 251, "length": 8 } + } + }, + "source": { "span": { "start": 470, "length": 5 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { + "key": { "conversionOperator": { "key": "bool" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Ptr" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "bool" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 35 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "int", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 30 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 287, "length": 8 } + } + }, + "source": { "span": { "start": 393, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { + "key": { "conversionOperator": { "key": "int" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Ptr" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 30 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "int", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 30 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 287, "length": 8 } + } + }, + "source": { "span": { "start": 456, "length": 5 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { + "key": { "conversionOperator": { "key": "int" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Ptr" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 30 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "ptr", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 9 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 355, "length": 3 } + } + }, + "source": { "span": { "start": 380, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "ptr" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "Ptr" }, + "kind": { "field": { "mutable_": false } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 9 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "ptr", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 9 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 355, "length": 3 } + } + }, + "source": { "span": { "start": 393, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "ptr" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "Ptr" }, + "kind": { "field": { "mutable_": false } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 9 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "ptr", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 9 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 355, "length": 3 } + } + }, + "source": { "span": { "start": 407, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "ptr" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "Ptr" }, + "kind": { "field": { "mutable_": false } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 9 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "ptr", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 9 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 355, "length": 3 } + } + }, + "source": { "span": { "start": 445, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "ptr" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "Ptr" }, + "kind": { "field": { "mutable_": false } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 9 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "ptr", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 9 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 355, "length": 3 } + } + }, + "source": { "span": { "start": 458, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "ptr" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "Ptr" }, + "kind": { "field": { "mutable_": false } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 9 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "ptr", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 9 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 355, "length": 3 } + } + }, + "source": { "span": { "start": 472, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "ptr" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "Ptr" }, + "kind": { "field": { "mutable_": false } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 9 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "value", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 242, "length": 5 } + } + }, + "source": { "span": { "start": 276, "length": 5 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "value" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Ptr" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "void *" }, + "kind": { "field": { "mutable_": false } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 27, + "columnBegin": 10, + "lineEnd": 27, + "columnEnd": 14 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 436, "length": 1 } + } + }, + "source": { "span": { "start": 443, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "baz" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "Foo" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 27, + "columnBegin": 10, + "lineEnd": 27, + "columnEnd": 14 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 27, + "columnBegin": 10, + "lineEnd": 27, + "columnEnd": 14 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 436, "length": 1 } + } + }, + "source": { "span": { "start": 456, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "baz" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "Foo" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 27, + "columnBegin": 10, + "lineEnd": 27, + "columnEnd": 14 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 27, + "columnBegin": 10, + "lineEnd": 27, + "columnEnd": 14 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 436, "length": 1 } + } + }, + "source": { "span": { "start": 470, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "baz" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "Foo" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 27, + "columnBegin": 10, + "lineEnd": 27, + "columnEnd": 14 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/multifile-xlang/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/multifile-xlang/fileentityxrefsgeneric.out new file mode 100644 index 000000000..e876a13d1 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/multifile-xlang/fileentityxrefsgeneric.out @@ -0,0 +1,29 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "a.h", + "file": { "key": "a.h" }, + "location": { "span": { "start": 0, "length": 0 } } + }, + "source": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 9, + "columnEnd": 14 + } + } + }, + "entity": { "pp": { "include_": { "key": "a.h" } } } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/multifile1/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/multifile1/fileentityxrefsgeneric.out new file mode 100644 index 000000000..cde8a0bf1 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/multifile1/fileentityxrefsgeneric.out @@ -0,0 +1,55 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "a.h", + "file": { "key": "a.h" }, + "location": { "span": { "start": 0, "length": 0 } } + }, + "source": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 14 + } + } + }, + "entity": { "pp": { "include_": { "key": "a.h" } } } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "a.h", + "file": { "key": "a.h" }, + "location": { "span": { "start": 0, "length": 0 } } + }, + "source": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 23, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 14 + } + } + }, + "entity": { "pp": { "include_": { "key": "a.h" } } } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/multifile2/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/multifile2/fileentityxrefsgeneric.out new file mode 100644 index 000000000..5eb136d8e --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/multifile2/fileentityxrefsgeneric.out @@ -0,0 +1,236 @@ +[ + "@generated", + { + "key": { + "file": { "key": "a.h" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "T", + "file": { "key": "a.h" }, + "location": { + "range": { + "file": { "key": "a.h" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 9, + "columnEnd": 11 + } + }, + "destination": { + "file": { "key": "a.h" }, + "span": { "start": 228, "length": 1 } + } + }, + "source": { "span": { "start": 261, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "a.h" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 9, + "columnEnd": 11 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "a.h" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f", + "file": { "key": "a.h" }, + "location": { + "range": { + "file": { "key": "a.h" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 11 + } + }, + "destination": { + "file": { "key": "a.h" }, + "span": { "start": 239, "length": 1 } + } + }, + "source": { "span": { "start": 268, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { "global_": { } } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "a.h" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 11 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "b.h" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "R", + "file": { "key": "b.h" }, + "location": { + "range": { + "file": { "key": "b.h" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 9, + "columnEnd": 11 + } + }, + "destination": { + "file": { "key": "b.h" }, + "span": { "start": 228, "length": 1 } + } + }, + "source": { "span": { "start": 248, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "R" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "b.h" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 9, + "columnEnd": 11 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "a.h", + "file": { "key": "a.h" }, + "location": { "span": { "start": 0, "length": 0 } } + }, + "source": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 9, + "columnEnd": 14 + } + } + }, + "entity": { "pp": { "include_": { "key": "a.h" } } } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "b.h", + "file": { "key": "b.h" }, + "location": { "span": { "start": 0, "length": 0 } } + }, + "source": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 14 + } + } + }, + "entity": { "pp": { "include_": { "key": "b.h" } } } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/namespace1/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/namespace1/fileentityxrefsgeneric.out new file mode 100644 index 000000000..447678c08 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/namespace1/fileentityxrefsgeneric.out @@ -0,0 +1,1015 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "S", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 245, "length": 1 } + } + }, + "source": { "span": { "start": 354, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "S" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "foo" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "T", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 11 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 314, "length": 1 } + } + }, + "source": { "span": { "start": 371, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "bar" }, + "parent": { + "key": { "name": { "key": "foo" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 11 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 300, "length": 3 } + } + }, + "source": { "span": { "start": 366, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "parent": { "key": { "name": { "key": "foo" } } } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "bar" }, + "parent": { + "key": { "name": { "key": "foo" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "g" } } }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "bar" }, + "parent": { + "key": { "name": { "key": "foo" } } + } + } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 21, + "columnEnd": 8 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 300, "length": 3 } + } + }, + "source": { "span": { "start": 395, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "parent": { "key": { "name": { "key": "foo" } } } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "bar" }, + "parent": { + "key": { "name": { "key": "foo" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "g" } } }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "bar" }, + "parent": { + "key": { "name": { "key": "foo" } } + } + } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 21, + "columnEnd": 8 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 8 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 284, "length": 1 } + } + }, + "source": { "span": { "start": 383, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "namespace_": { "key": { "name": { "key": "foo" } } } + } + } + }, + "signature": { + "key": { "returns": { "key": "void" }, "parameters": [ ] } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 8 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 3 } + } + }, + "source": { "span": { "start": 349, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "S" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "foo" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "namespace_": { + "key": { "name": { "key": "foo" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "parent": { + "key": { "name": { "key": "foo" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 3 } + } + }, + "source": { "span": { "start": 361, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "S" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "foo" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "namespace_": { + "key": { "name": { "key": "foo" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "parent": { + "key": { "name": { "key": "foo" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 3 } + } + }, + "source": { "span": { "start": 378, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "S" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "foo" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "namespace_": { + "key": { "name": { "key": "foo" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "parent": { + "key": { "name": { "key": "foo" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 3 } + } + }, + "source": { "span": { "start": 390, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "S" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "foo" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "namespace_": { + "key": { "name": { "key": "foo" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "parent": { + "key": { "name": { "key": "foo" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 23, + "columnEnd": 1 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "g", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 21, + "columnEnd": 8 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 325, "length": 1 } + } + }, + "source": { "span": { "start": 400, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "g" } } }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "bar" }, + "parent": { "key": { "name": { "key": "foo" } } } + } + } + } + } + }, + "signature": { + "key": { "returns": { "key": "void" }, "parameters": [ ] } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 21, + "columnEnd": 8 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/objc-implicit-class-method1/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/objc-implicit-class-method1/fileentityxrefsgeneric.out new file mode 100644 index 000000000..511056125 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/objc-implicit-class-method1/fileentityxrefsgeneric.out @@ -0,0 +1,235 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.m" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "I", + "file": { "key": "test.m" }, + "location": { + "range": { + "file": { "key": "test.m" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 4 + } + }, + "destination": { + "file": { "key": "test.m" }, + "span": { "start": 232, "length": 1 } + } + }, + "source": { "span": { "start": 263, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "objcContainer": { + "key": { + "declaration": { + "key": { + "id": { "interface_": { "key": "I" } }, + "source": { + "file": { "key": "test.m" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 4 + } + } + }, + "protocols": [ ], + "members": { + "key": [ + { + "objcMethod": { + "key": { + "selector": { "key": [ "foo" ] }, + "locations": [ + { + "file": { "key": "test.m" }, + "span": { "start": 242, "length": 3 } + } + ], + "container": { "interface_": { "key": "I" } }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "isInstance": false, + "isOptional": false, + "isAccessor": false, + "source": { + "file": { "key": "test.m" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.m" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "I", + "file": { "key": "test.m" }, + "location": { + "range": { + "file": { "key": "test.m" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 4 + } + }, + "destination": { + "file": { "key": "test.m" }, + "span": { "start": 232, "length": 1 } + } + }, + "source": { "span": { "start": 280, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "objcContainer": { + "key": { + "declaration": { + "key": { + "id": { "interface_": { "key": "I" } }, + "source": { + "file": { "key": "test.m" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 4 + } + } + }, + "protocols": [ ], + "members": { + "key": [ + { + "objcMethod": { + "key": { + "selector": { "key": [ "foo" ] }, + "locations": [ + { + "file": { "key": "test.m" }, + "span": { "start": 242, "length": 3 } + } + ], + "container": { "interface_": { "key": "I" } }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "isInstance": false, + "isOptional": false, + "isAccessor": false, + "source": { + "file": { "key": "test.m" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.m" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.m" }, + "location": { + "range": { + "file": { "key": "test.m" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + }, + "destination": { + "file": { "key": "test.m" }, + "span": { "start": 242, "length": 3 } + } + }, + "source": { "span": { "start": 282, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "objcMethod": { + "key": { + "selector": { "key": [ "foo" ] }, + "locations": [ + { + "file": { "key": "test.m" }, + "span": { "start": 242, "length": 3 } + } + ], + "container": { "interface_": { "key": "I" } }, + "signature": { + "key": { "returns": { "key": "int" }, "parameters": [ ] } + }, + "isInstance": false, + "isOptional": false, + "isAccessor": false, + "source": { + "file": { "key": "test.m" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/objc-ivar1/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/objc-ivar1/fileentityxrefsgeneric.out new file mode 100644 index 000000000..11798dae5 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/objc-ivar1/fileentityxrefsgeneric.out @@ -0,0 +1,57 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.m" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "_i", + "file": { "key": "test.m" }, + "location": { + "range": { + "file": { "key": "test.m" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 8 + } + }, + "destination": { + "file": { "key": "test.m" }, + "span": { "start": 242, "length": 2 } + } + }, + "source": { "span": { "start": 356, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "_i" }, + "scope": { "global_": { } } + } + }, + "type": { "key": "int" }, + "kind": { "ivar": { "synthesize": false } }, + "source": { + "file": { "key": "test.m" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 8 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/objc-method1/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/objc-method1/fileentityxrefsgeneric.out new file mode 100644 index 000000000..5644469ea --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/objc-method1/fileentityxrefsgeneric.out @@ -0,0 +1,464 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.mm" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.mm" }, + "location": { + "range": { + "file": { "key": "test.mm" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 4 + } + }, + "destination": { + "file": { "key": "test.mm" }, + "span": { "start": 231, "length": 3 } + } + }, + "source": { "span": { "start": 301, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "objcContainer": { + "key": { + "declaration": { + "key": { + "id": { "protocol": { "key": "Foo" } }, + "source": { + "file": { "key": "test.mm" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 4 + } + } + }, + "protocols": [ ], + "members": { + "key": [ + { + "objcMethod": { + "key": { + "selector": { "key": [ "setInt", "setDouble" ] }, + "locations": [ + { + "file": { "key": "test.mm" }, + "span": { "start": 244, "length": 6 } + }, + { + "file": { "key": "test.mm" }, + "span": { "start": 258, "length": 9 } + } + ], + "container": { "protocol": { "key": "Foo" } }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "x" }, + "type": { "key": "int" } + }, + { + "name": { "key": "y" }, + "type": { "key": "double" } + } + ] + } + }, + "isInstance": true, + "isOptional": false, + "isAccessor": false, + "source": { + "file": { "key": "test.mm" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 42 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.mm" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.mm" }, + "location": { + "range": { + "file": { "key": "test.mm" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 4 + } + }, + "destination": { + "file": { "key": "test.mm" }, + "span": { "start": 231, "length": 3 } + } + }, + "source": { "span": { "start": 372, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "objcContainer": { + "key": { + "declaration": { + "key": { + "id": { "protocol": { "key": "Foo" } }, + "source": { + "file": { "key": "test.mm" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 4 + } + } + }, + "protocols": [ ], + "members": { + "key": [ + { + "objcMethod": { + "key": { + "selector": { "key": [ "setInt", "setDouble" ] }, + "locations": [ + { + "file": { "key": "test.mm" }, + "span": { "start": 244, "length": 6 } + }, + { + "file": { "key": "test.mm" }, + "span": { "start": 258, "length": 9 } + } + ], + "container": { "protocol": { "key": "Foo" } }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "x" }, + "type": { "key": "int" } + }, + { + "name": { "key": "y" }, + "type": { "key": "double" } + } + ] + } + }, + "isInstance": true, + "isOptional": false, + "isAccessor": false, + "source": { + "file": { "key": "test.mm" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 42 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.mm" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.mm" }, + "location": { + "range": { + "file": { "key": "test.mm" }, + "lineBegin": 15, + "columnBegin": 13, + "lineEnd": 15, + "columnEnd": 23 + } + }, + "destination": { + "file": { "key": "test.mm" }, + "span": { "start": 306, "length": 3 } + } + }, + "source": { "span": { "start": 316, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "local": { + "key": { + "name": { + "key": { "name": { "key": "setFoo" } } + }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "id" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.mm" }, + "lineBegin": 15, + "columnBegin": 13, + "lineEnd": 15, + "columnEnd": 23 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.mm" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.mm" }, + "location": { + "range": { + "file": { "key": "test.mm" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.mm" }, + "span": { "start": 377, "length": 3 } + } + }, + "source": { "span": { "start": 452, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { "global_": { } } + } + }, + "type": { "key": "id" }, + "kind": { "ivar": { "synthesize": false } }, + "source": { + "file": { "key": "test.mm" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 20, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.mm" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "setInt:setDouble:", + "file": { "key": "test.mm" }, + "location": { + "range": { + "file": { "key": "test.mm" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 42 + } + }, + "destination": { + "file": { "key": "test.mm" }, + "span": { "start": 244, "length": 6 } + } + }, + "source": { "span": { "start": 315, "length": 30 } } + }, + "entity": { + "cxx": { + "decl": { + "objcMethod": { + "key": { + "selector": { "key": [ "setInt", "setDouble" ] }, + "locations": [ + { + "file": { "key": "test.mm" }, + "span": { "start": 244, "length": 6 } + }, + { + "file": { "key": "test.mm" }, + "span": { "start": 258, "length": 9 } + } + ], + "container": { "protocol": { "key": "Foo" } }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "x" }, "type": { "key": "int" } }, + { + "name": { "key": "y" }, + "type": { "key": "double" } + } + ] + } + }, + "isInstance": true, + "isOptional": false, + "isAccessor": false, + "source": { + "file": { "key": "test.mm" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 42 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.mm" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "setInt:setDouble:", + "file": { "key": "test.mm" }, + "location": { + "range": { + "file": { "key": "test.mm" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 42 + } + }, + "destination": { + "file": { "key": "test.mm" }, + "span": { "start": 244, "length": 6 } + } + }, + "source": { "span": { "start": 451, "length": 30 } } + }, + "entity": { + "cxx": { + "decl": { + "objcMethod": { + "key": { + "selector": { "key": [ "setInt", "setDouble" ] }, + "locations": [ + { + "file": { "key": "test.mm" }, + "span": { "start": 244, "length": 6 } + }, + { + "file": { "key": "test.mm" }, + "span": { "start": 258, "length": 9 } + } + ], + "container": { "protocol": { "key": "Foo" } }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "x" }, "type": { "key": "int" } }, + { + "name": { "key": "y" }, + "type": { "key": "double" } + } + ] + } + }, + "isInstance": true, + "isOptional": false, + "isAccessor": false, + "source": { + "file": { "key": "test.mm" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 42 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/objc-property1/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/objc-property1/fileentityxrefsgeneric.out new file mode 100644 index 000000000..c27408deb --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/objc-property1/fileentityxrefsgeneric.out @@ -0,0 +1,557 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.m" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "I", + "file": { "key": "test.m" }, + "location": { + "range": { + "file": { "key": "test.m" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 4 + } + }, + "destination": { + "file": { "key": "test.m" }, + "span": { "start": 232, "length": 1 } + } + }, + "source": { "span": { "start": 289, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "objcContainer": { + "key": { + "declaration": { + "key": { + "id": { "interface_": { "key": "I" } }, + "source": { + "file": { "key": "test.m" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 4 + } + } + }, + "protocols": [ ], + "members": { + "key": [ + { + "objcMethod": { + "key": { + "selector": { "key": [ "foo" ] }, + "locations": [ + { + "file": { "key": "test.m" }, + "span": { "start": 242, "length": 3 } + } + ], + "container": { "interface_": { "key": "I" } }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "isInstance": true, + "isOptional": false, + "isAccessor": false, + "source": { + "file": { "key": "test.m" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "objcMethod": { + "key": { + "selector": { "key": [ "setFoo" ] }, + "locations": [ + { + "file": { "key": "test.m" }, + "span": { "start": 255, "length": 6 } + } + ], + "container": { "interface_": { "key": "I" } }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "x" }, + "type": { "key": "int" } + } + ] + } + }, + "isInstance": true, + "isOptional": false, + "isAccessor": false, + "source": { + "file": { "key": "test.m" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 24 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.m" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.m" }, + "location": { + "range": { + "file": { "key": "test.m" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + }, + "destination": { + "file": { "key": "test.m" }, + "span": { "start": 242, "length": 3 } + } + }, + "source": { "span": { "start": 314, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "objcMethod": { + "key": { + "selector": { "key": [ "foo" ] }, + "locations": [ + { + "file": { "key": "test.m" }, + "span": { "start": 242, "length": 3 } + } + ], + "container": { "interface_": { "key": "I" } }, + "signature": { + "key": { "returns": { "key": "int" }, "parameters": [ ] } + }, + "isInstance": true, + "isOptional": false, + "isAccessor": false, + "source": { + "file": { "key": "test.m" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.m" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.m" }, + "location": { + "range": { + "file": { "key": "test.m" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + }, + "destination": { + "file": { "key": "test.m" }, + "span": { "start": 242, "length": 3 } + } + }, + "source": { "span": { "start": 335, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "objcMethod": { + "key": { + "selector": { "key": [ "foo" ] }, + "locations": [ + { + "file": { "key": "test.m" }, + "span": { "start": 242, "length": 3 } + } + ], + "container": { "interface_": { "key": "I" } }, + "signature": { + "key": { "returns": { "key": "int" }, "parameters": [ ] } + }, + "isInstance": true, + "isOptional": false, + "isAccessor": false, + "source": { + "file": { "key": "test.m" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.m" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "setFoo:", + "file": { "key": "test.m" }, + "location": { + "range": { + "file": { "key": "test.m" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 24 + } + }, + "destination": { + "file": { "key": "test.m" }, + "span": { "start": 255, "length": 6 } + } + }, + "source": { "span": { "start": 301, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "objcMethod": { + "key": { + "selector": { "key": [ "setFoo" ] }, + "locations": [ + { + "file": { "key": "test.m" }, + "span": { "start": 255, "length": 6 } + } + ], + "container": { "interface_": { "key": "I" } }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "x" }, "type": { "key": "int" } } + ] + } + }, + "isInstance": true, + "isOptional": false, + "isAccessor": false, + "source": { + "file": { "key": "test.m" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 24 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.m" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "setFoo:", + "file": { "key": "test.m" }, + "location": { + "range": { + "file": { "key": "test.m" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 24 + } + }, + "destination": { + "file": { "key": "test.m" }, + "span": { "start": 255, "length": 6 } + } + }, + "source": { "span": { "start": 314, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "objcMethod": { + "key": { + "selector": { "key": [ "setFoo" ] }, + "locations": [ + { + "file": { "key": "test.m" }, + "span": { "start": 255, "length": 6 } + } + ], + "container": { "interface_": { "key": "I" } }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "x" }, "type": { "key": "int" } } + ] + } + }, + "isInstance": true, + "isOptional": false, + "isAccessor": false, + "source": { + "file": { "key": "test.m" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 24 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.m" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.m" }, + "location": { + "range": { + "file": { "key": "test.m" }, + "lineBegin": 16, + "columnBegin": 10, + "lineEnd": 16, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.m" }, + "span": { "start": 292, "length": 1 } + } + }, + "source": { "span": { "start": 299, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "call" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "I *" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.m" }, + "lineBegin": 16, + "columnBegin": 10, + "lineEnd": 16, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.m" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.m" }, + "location": { + "range": { + "file": { "key": "test.m" }, + "lineBegin": 16, + "columnBegin": 10, + "lineEnd": 16, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.m" }, + "span": { "start": 292, "length": 1 } + } + }, + "source": { "span": { "start": 312, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "call" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "I *" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.m" }, + "lineBegin": 16, + "columnBegin": 10, + "lineEnd": 16, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.m" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.m" }, + "location": { + "range": { + "file": { "key": "test.m" }, + "lineBegin": 16, + "columnBegin": 10, + "lineEnd": 16, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.m" }, + "span": { "start": 292, "length": 1 } + } + }, + "source": { "span": { "start": 333, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "call" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "I *" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.m" }, + "lineBegin": 16, + "columnBegin": 10, + "lineEnd": 16, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/objc-property2/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/objc-property2/fileentityxrefsgeneric.out new file mode 100644 index 000000000..45bcbe3a0 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/objc-property2/fileentityxrefsgeneric.out @@ -0,0 +1,123 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.m" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "i", + "file": { "key": "test.m" }, + "location": { + "range": { + "file": { "key": "test.m" }, + "lineBegin": 11, + "columnBegin": 26, + "lineEnd": 11, + "columnEnd": 26 + } + }, + "destination": { + "file": { "key": "test.m" }, + "span": { "start": 260, "length": 1 } + } + }, + "source": { "span": { "start": 335, "length": 8 } } + }, + "entity": { + "cxx": { + "decl": { + "objcMethod": { + "key": { + "selector": { "key": [ "i" ] }, + "locations": [ ], + "container": { "interface_": { "key": "I" } }, + "signature": { + "key": { "returns": { "key": "int" }, "parameters": [ ] } + }, + "isInstance": true, + "isOptional": false, + "isAccessor": true, + "source": { + "file": { "key": "test.m" }, + "lineBegin": 11, + "columnBegin": 26, + "lineEnd": 11, + "columnEnd": 26 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.m" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "i", + "file": { "key": "test.m" }, + "location": { + "range": { + "file": { "key": "test.m" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.m" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 335, "length": 8 } } + }, + "entity": { + "cxx": { + "defn": { + "objcMethod": { + "key": { + "key": { + "selector": { "key": [ "i" ] }, + "locations": [ + { + "file": { "key": "test.m" }, + "span": { "start": 296, "length": 1 } + } + ], + "container": { "implementation": { "key": "I" } }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "isInstance": true, + "isOptional": false, + "isAccessor": false, + "source": { + "file": { "key": "test.m" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 1 + } + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/objc-protocol1/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/objc-protocol1/fileentityxrefsgeneric.out new file mode 100644 index 000000000..c3b694b5c --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/objc-protocol1/fileentityxrefsgeneric.out @@ -0,0 +1,276 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.m" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.m" }, + "location": { + "range": { + "file": { "key": "test.m" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 4 + } + }, + "destination": { + "file": { "key": "test.m" }, + "span": { "start": 287, "length": 3 } + } + }, + "source": { "span": { "start": 344, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "objcContainer": { + "key": { + "declaration": { + "key": { + "id": { "protocol": { "key": "Foo" } }, + "source": { + "file": { "key": "test.m" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 4 + } + } + }, + "protocols": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.m" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "J", + "file": { "key": "test.m" }, + "location": { + "range": { + "file": { "key": "test.m" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 4 + } + }, + "destination": { + "file": { "key": "test.m" }, + "span": { "start": 232, "length": 1 } + } + }, + "source": { "span": { "start": 307, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "objcContainer": { + "key": { + "declaration": { + "key": { + "id": { "interface_": { "key": "J" } }, + "source": { + "file": { "key": "test.m" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 4 + } + } + }, + "protocols": [ ], + "members": { + "key": [ + { + "objcMethod": { + "key": { + "selector": { "key": [ "checkProtocol" ] }, + "locations": [ + { + "file": { "key": "test.m" }, + "span": { "start": 242, "length": 13 } + } + ], + "container": { "interface_": { "key": "J" } }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "f" }, + "type": { "key": "Protocol *" } + } + ] + } + }, + "isInstance": true, + "isOptional": false, + "isAccessor": false, + "source": { + "file": { "key": "test.m" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 36 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.m" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "checkProtocol:", + "file": { "key": "test.m" }, + "location": { + "range": { + "file": { "key": "test.m" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 36 + } + }, + "destination": { + "file": { "key": "test.m" }, + "span": { "start": 242, "length": 13 } + } + }, + "source": { "span": { "start": 317, "length": 32 } } + }, + "entity": { + "cxx": { + "decl": { + "objcMethod": { + "key": { + "selector": { "key": [ "checkProtocol" ] }, + "locations": [ + { + "file": { "key": "test.m" }, + "span": { "start": 242, "length": 13 } + } + ], + "container": { "interface_": { "key": "J" } }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "f" }, + "type": { "key": "Protocol *" } + } + ] + } + }, + "isInstance": true, + "isOptional": false, + "isAccessor": false, + "source": { + "file": { "key": "test.m" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 36 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.m" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "s", + "file": { "key": "test.m" }, + "location": { + "range": { + "file": { "key": "test.m" }, + "lineBegin": 16, + "columnBegin": 11, + "lineEnd": 16, + "columnEnd": 14 + } + }, + "destination": { + "file": { "key": "test.m" }, + "span": { "start": 310, "length": 1 } + } + }, + "source": { "span": { "start": 318, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "s" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "call" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "J *" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.m" }, + "lineBegin": 16, + "columnBegin": 11, + "lineEnd": 16, + "columnEnd": 14 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/objc-selector1/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/objc-selector1/fileentityxrefsgeneric.out new file mode 100644 index 000000000..f088204ca --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/objc-selector1/fileentityxrefsgeneric.out @@ -0,0 +1,223 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.m" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "J", + "file": { "key": "test.m" }, + "location": { + "range": { + "file": { "key": "test.m" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 4 + } + }, + "destination": { + "file": { "key": "test.m" }, + "span": { "start": 232, "length": 1 } + } + }, + "source": { "span": { "start": 325, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "objcContainer": { + "key": { + "declaration": { + "key": { + "id": { "interface_": { "key": "J" } }, + "source": { + "file": { "key": "test.m" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 4 + } + } + }, + "protocols": [ ], + "members": { + "key": [ + { + "objcMethod": { + "key": { + "selector": { "key": [ "checkSelector" ] }, + "locations": [ + { + "file": { "key": "test.m" }, + "span": { "start": 242, "length": 13 } + } + ], + "container": { "interface_": { "key": "J" } }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "selector" }, + "type": { "key": "SEL" } + } + ] + } + }, + "isInstance": true, + "isOptional": false, + "isAccessor": false, + "source": { + "file": { "key": "test.m" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 36 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.m" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "checkSelector:", + "file": { "key": "test.m" }, + "location": { + "range": { + "file": { "key": "test.m" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 36 + } + }, + "destination": { + "file": { "key": "test.m" }, + "span": { "start": 242, "length": 13 } + } + }, + "source": { "span": { "start": 394, "length": 32 } } + }, + "entity": { + "cxx": { + "decl": { + "objcMethod": { + "key": { + "selector": { "key": [ "checkSelector" ] }, + "locations": [ + { + "file": { "key": "test.m" }, + "span": { "start": 242, "length": 13 } + } + ], + "container": { "interface_": { "key": "J" } }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "selector" }, + "type": { "key": "SEL" } + } + ] + } + }, + "isInstance": true, + "isOptional": false, + "isAccessor": false, + "source": { + "file": { "key": "test.m" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 36 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.m" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "s", + "file": { "key": "test.m" }, + "location": { + "range": { + "file": { "key": "test.m" }, + "lineBegin": 18, + "columnBegin": 11, + "lineEnd": 18, + "columnEnd": 14 + } + }, + "destination": { + "file": { "key": "test.m" }, + "span": { "start": 328, "length": 1 } + } + }, + "source": { "span": { "start": 395, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "s" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "call" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "J *" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.m" }, + "lineBegin": 18, + "columnBegin": 11, + "lineEnd": 18, + "columnEnd": 14 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/template-alias1/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/template-alias1/fileentityxrefsgeneric.out new file mode 100644 index 000000000..40de9ec5a --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/template-alias1/fileentityxrefsgeneric.out @@ -0,0 +1,224 @@ +[ + "@generated", + { + "key": { + "file": { "key": "main.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "F1", + "file": { "key": "main.cpp" }, + "location": { + "range": { + "file": { "key": "main.cpp" }, + "lineBegin": 12, + "columnBegin": 22, + "lineEnd": 12, + "columnEnd": 33 + } + }, + "destination": { + "file": { "key": "main.cpp" }, + "span": { "start": 283, "length": 2 } + } + }, + "source": { "span": { "start": 367, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "F1" }, + "scope": { "global_": { } } + } + }, + "type": { "key": "T" }, + "kind": 1, + "source": { + "file": { "key": "main.cpp" }, + "lineBegin": 12, + "columnBegin": 22, + "lineEnd": 12, + "columnEnd": 33 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "main.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "F2", + "file": { "key": "main.cpp" }, + "location": { + "range": { + "file": { "key": "main.cpp" }, + "lineBegin": 13, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 35 + } + }, + "destination": { + "file": { "key": "main.cpp" }, + "span": { "start": 318, "length": 2 } + } + }, + "source": { "span": { "start": 378, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "F2" }, + "scope": { "global_": { } } + } + }, + "type": { "key": "int" }, + "kind": 1, + "source": { + "file": { "key": "main.cpp" }, + "lineBegin": 13, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 35 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "main.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "F3", + "file": { "key": "main.cpp" }, + "location": { + "range": { + "file": { "key": "main.cpp" }, + "lineBegin": 14, + "columnBegin": 22, + "lineEnd": 14, + "columnEnd": 36 + } + }, + "destination": { + "file": { "key": "main.cpp" }, + "span": { "start": 355, "length": 2 } + } + }, + "source": { "span": { "start": 389, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "F3" }, + "scope": { "global_": { } } + } + }, + "type": { "key": "S" }, + "kind": 1, + "source": { + "file": { "key": "main.cpp" }, + "lineBegin": 14, + "columnBegin": 22, + "lineEnd": 14, + "columnEnd": 36 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "main.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "S", + "file": { "key": "main.cpp" }, + "location": { + "range": { + "file": { "key": "main.cpp" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 11 + } + }, + "destination": { + "file": { "key": "main.cpp" }, + "span": { "start": 249, "length": 1 } + } + }, + "source": { "span": { "start": 360, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "S" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "main.cpp" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 11 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/template-fun1/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/template-fun1/fileentityxrefsgeneric.out new file mode 100644 index 000000000..fb7a56b5d --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/template-fun1/fileentityxrefsgeneric.out @@ -0,0 +1,1910 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 26 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 256, "length": 3 } + } + }, + "source": { "span": { "start": 349, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 26 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "mem" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Bar" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 14, + "lineEnd": 10, + "columnEnd": 23 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 26 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 256, "length": 3 } + } + }, + "source": { "span": { "start": 572, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 26 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "mem" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Bar" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 14, + "lineEnd": 10, + "columnEnd": 23 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 26 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 284, "length": 3 } + } + }, + "source": { "span": { "start": 366, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Baz" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 26 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "mem" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Baz" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 14, + "lineEnd": 11, + "columnEnd": 23 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 26 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 284, "length": 3 } + } + }, + "source": { "span": { "start": 581, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Baz" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 26 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "mem" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Baz" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 14, + "lineEnd": 11, + "columnEnd": 23 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 9, + "columnEnd": 26 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 228, "length": 3 } + } + }, + "source": { "span": { "start": 332, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 9, + "columnEnd": 26 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "mem" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 14, + "lineEnd": 9, + "columnEnd": 23 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 9, + "columnEnd": 26 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 228, "length": 3 } + } + }, + "source": { "span": { "start": 470, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 9, + "columnEnd": 26 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "mem" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 14, + "lineEnd": 9, + "columnEnd": 23 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 9, + "columnEnd": 26 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 228, "length": 3 } + } + }, + "source": { "span": { "start": 563, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 9, + "columnEnd": 26 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "mem" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 14, + "lineEnd": 9, + "columnEnd": 23 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "apply", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 326, "length": 5 } + } + }, + "source": { "span": { "start": 424, "length": 5 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "apply" } } }, + "scope": { "global_": { } } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "Foo" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 15 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "apply", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 326, "length": 5 } + } + }, + "source": { "span": { "start": 494, "length": 5 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "apply" } } }, + "scope": { "global_": { } } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "Foo" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 15 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "apply", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 343, "length": 5 } + } + }, + "source": { "span": { "start": 424, "length": 5 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "apply" } } }, + "scope": { "global_": { } } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "Bar" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 15 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "apply", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 360, "length": 5 } + } + }, + "source": { "span": { "start": 424, "length": 5 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "apply" } } }, + "scope": { "global_": { } } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "Baz" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 15 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 22, + "lineEnd": 22, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 399, "length": 3 } + } + }, + "source": { "span": { "start": 590, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "scope": { "global_": { } } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "x" }, "type": { "key": "T" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 22, + "lineEnd": 22, + "columnEnd": 1 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 22, + "lineEnd": 22, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 399, "length": 3 } + } + }, + "source": { "span": { "start": 600, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "scope": { "global_": { } } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "x" }, "type": { "key": "T" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 22, + "lineEnd": 22, + "columnEnd": 1 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 22, + "lineEnd": 22, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 399, "length": 3 } + } + }, + "source": { "span": { "start": 621, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "scope": { "global_": { } } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "x" }, "type": { "key": "T" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 22, + "lineEnd": 22, + "columnEnd": 1 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 1, + "lineEnd": 28, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 464, "length": 3 } + } + }, + "source": { "span": { "start": 610, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "scope": { "global_": { } } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "x" }, + "type": { "key": "Foo *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 1, + "lineEnd": 28, + "columnEnd": 1 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "global", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 311, "length": 6 } + } + }, + "source": { "span": { "start": 412, "length": 6 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "global" } } }, + "scope": { "global_": { } } + } + }, + "signature": { + "key": { "returns": { "key": "void" }, "parameters": [ ] } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "global", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 311, "length": 6 } + } + }, + "source": { "span": { "start": 507, "length": 6 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "global" } } }, + "scope": { "global_": { } } + } + }, + "signature": { + "key": { "returns": { "key": "void" }, "parameters": [ ] } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "mem", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 14, + "lineEnd": 9, + "columnEnd": 23 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 239, "length": 3 } + } + }, + "source": { "span": { "start": 485, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "mem" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { "returns": { "key": "void" }, "parameters": [ ] } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 14, + "lineEnd": 9, + "columnEnd": 23 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 31, + "lineEnd": 18, + "columnEnd": 33 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 405, "length": 1 } + } + }, + "source": { "span": { "start": 430, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "T" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 31, + "lineEnd": 18, + "columnEnd": 33 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 31, + "lineEnd": 18, + "columnEnd": 33 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 405, "length": 1 } + } + }, + "source": { "span": { "start": 436, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "T" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 31, + "lineEnd": 18, + "columnEnd": 33 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 23, + "lineEnd": 24, + "columnEnd": 28 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 475, "length": 1 } + } + }, + "source": { "span": { "start": 482, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "Foo *" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 23, + "lineEnd": 24, + "columnEnd": 28 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 23, + "lineEnd": 24, + "columnEnd": 28 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 475, "length": 1 } + } + }, + "source": { "span": { "start": 501, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "Foo *" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 23, + "lineEnd": 24, + "columnEnd": 28 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 33, + "columnBegin": 3, + "lineEnd": 33, + "columnEnd": 7 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 567, "length": 1 } + } + }, + "source": { "span": { "start": 594, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "h" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "Foo" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 33, + "columnBegin": 3, + "lineEnd": 33, + "columnEnd": 7 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 33, + "columnBegin": 3, + "lineEnd": 33, + "columnEnd": 7 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 567, "length": 1 } + } + }, + "source": { "span": { "start": 615, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "h" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "Foo" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 33, + "columnBegin": 3, + "lineEnd": 33, + "columnEnd": 7 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "y", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 3, + "lineEnd": 34, + "columnEnd": 7 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 576, "length": 1 } + } + }, + "source": { "span": { "start": 604, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "y" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "h" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "Bar" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 3, + "lineEnd": 34, + "columnEnd": 7 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "z", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 35, + "columnBegin": 3, + "lineEnd": 35, + "columnEnd": 7 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 585, "length": 1 } + } + }, + "source": { "span": { "start": 625, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "z" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "h" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "Baz" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 35, + "columnBegin": 3, + "lineEnd": 35, + "columnEnd": 7 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/template-member-fun1/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/template-member-fun1/fileentityxrefsgeneric.out new file mode 100644 index 000000000..5f40a9937 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/template-member-fun1/fileentityxrefsgeneric.out @@ -0,0 +1,3658 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 249, "length": 1 } + } + }, + "source": { "span": { "start": 363, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 19 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "baz" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + }, + { + "name": { "key": "" }, + "type": { "key": "U" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 43 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 249, "length": 1 } + } + }, + "source": { "span": { "start": 484, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 19 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "baz" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + }, + { + "name": { "key": "" }, + "type": { "key": "U" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 43 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 249, "length": 1 } + } + }, + "source": { "span": { "start": 530, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 19 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "baz" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + }, + { + "name": { "key": "" }, + "type": { "key": "U" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 43 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 249, "length": 1 } + } + }, + "source": { "span": { "start": 577, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 19 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "baz" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + }, + { + "name": { "key": "" }, + "type": { "key": "U" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 43 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 249, "length": 1 } + } + }, + "source": { "span": { "start": 597, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 19 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "baz" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + }, + { + "name": { "key": "" }, + "type": { "key": "U" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 43 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 249, "length": 1 } + } + }, + "source": { "span": { "start": 618, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 19 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "baz" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + }, + { + "name": { "key": "" }, + "type": { "key": "U" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 43 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 249, "length": 1 } + } + }, + "source": { "span": { "start": 642, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 19 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "baz" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + }, + { + "name": { "key": "" }, + "type": { "key": "U" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 43 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 249, "length": 1 } + } + }, + "source": { "span": { "start": 669, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 19 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "baz" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + }, + { + "name": { "key": "" }, + "type": { "key": "U" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 43 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 249, "length": 1 } + } + }, + "source": { "span": { "start": 686, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 19 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "baz" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + }, + { + "name": { "key": "" }, + "type": { "key": "U" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 43 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 249, "length": 1 } + } + }, + "source": { "span": { "start": 704, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 19 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "baz" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + }, + { + "name": { "key": "" }, + "type": { "key": "U" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 43 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 249, "length": 1 } + } + }, + "source": { "span": { "start": 725, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 19 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "baz" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + }, + { + "name": { "key": "" }, + "type": { "key": "U" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 43 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 249, "length": 1 } + } + }, + "source": { "span": { "start": 749, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 19 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "baz" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + }, + { + "name": { "key": "" }, + "type": { "key": "U" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 43 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 249, "length": 1 } + } + }, + "source": { "span": { "start": 767, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 19 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "baz" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + }, + { + "name": { "key": "" }, + "type": { "key": "U" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 43 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 249, "length": 1 } + } + }, + "source": { "span": { "start": 789, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 19 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "baz" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + }, + { + "name": { "key": "" }, + "type": { "key": "U" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 43 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 249, "length": 1 } + } + }, + "source": { "span": { "start": 814, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 19 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "baz" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + }, + { + "name": { "key": "" }, + "type": { "key": "U" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 43 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 20 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 288, "length": 3 } + } + }, + "source": { "span": { "start": 608, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "bar" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "T" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 20 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 20 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 288, "length": 3 } + } + }, + "source": { "span": { "start": 776, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "bar" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "T" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 20 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 3, + "lineEnd": 17, + "columnEnd": 22 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 407, "length": 3 } + } + }, + "source": { "span": { "start": 694, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "bar" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "int" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 3, + "lineEnd": 17, + "columnEnd": 22 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 43 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 331, "length": 3 } + } + }, + "source": { "span": { "start": 629, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "baz" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "T" } }, + { "name": { "key": "" }, "type": { "key": "U" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 43 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 43 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 331, "length": 3 } + } + }, + "source": { "span": { "start": 653, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "baz" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "T" } }, + { "name": { "key": "" }, "type": { "key": "U" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 43 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 43 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 331, "length": 3 } + } + }, + "source": { "span": { "start": 798, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "baz" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "T" } }, + { "name": { "key": "" }, "type": { "key": "U" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 43 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 24, + "lineEnd": 18, + "columnEnd": 45 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 452, "length": 3 } + } + }, + "source": { "span": { "start": 712, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "baz" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "int" } }, + { "name": { "key": "" }, "type": { "key": "U" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 24, + "lineEnd": 18, + "columnEnd": 45 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 24, + "lineEnd": 18, + "columnEnd": 45 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 452, "length": 3 } + } + }, + "source": { "span": { "start": 733, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "baz" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "int" } }, + { "name": { "key": "" }, "type": { "key": "U" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 24, + "lineEnd": 18, + "columnEnd": 45 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 1, + "lineEnd": 26, + "columnEnd": 37 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 539, "length": 3 } + } + }, + "source": { "span": { "start": 823, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "baz" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + }, + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 1, + "lineEnd": 26, + "columnEnd": 37 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 19 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 267, "length": 3 } + } + }, + "source": { "span": { "start": 588, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { "returns": { "key": "void" }, "parameters": [ ] } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 19 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 3, + "lineEnd": 16, + "columnEnd": 19 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 386, "length": 3 } + } + }, + "source": { "span": { "start": 677, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { "returns": { "key": "void" }, "parameters": [ ] } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 3, + "lineEnd": 16, + "columnEnd": 19 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 22, + "columnEnd": 22 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 493, "length": 3 } + } + }, + "source": { "span": { "start": 758, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 22, + "columnEnd": 22 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/template-member-fun2/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/template-member-fun2/fileentityxrefsgeneric.out new file mode 100644 index 000000000..7b3cb6cfb --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/template-member-fun2/fileentityxrefsgeneric.out @@ -0,0 +1,2887 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 249, "length": 1 } + } + }, + "source": { "span": { "start": 342, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 13 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "baz" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + }, + { + "name": { "key": "" }, + "type": { "key": "U" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 36 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 249, "length": 1 } + } + }, + "source": { "span": { "start": 442, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 13 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "baz" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + }, + { + "name": { "key": "" }, + "type": { "key": "U" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 36 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 249, "length": 1 } + } + }, + "source": { "span": { "start": 488, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 13 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "baz" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + }, + { + "name": { "key": "" }, + "type": { "key": "U" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 36 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 249, "length": 1 } + } + }, + "source": { "span": { "start": 535, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 13 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "baz" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + }, + { + "name": { "key": "" }, + "type": { "key": "U" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 36 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 249, "length": 1 } + } + }, + "source": { "span": { "start": 550, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 13 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "baz" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + }, + { + "name": { "key": "" }, + "type": { "key": "U" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 36 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 249, "length": 1 } + } + }, + "source": { "span": { "start": 562, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 13 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "baz" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + }, + { + "name": { "key": "" }, + "type": { "key": "U" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 36 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 274, "length": 3 } + } + }, + "source": { "span": { "start": 589, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "bar" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "T" } } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 274, "length": 3 } + } + }, + "source": { "span": { "start": 701, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "bar" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "T" } } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 3, + "lineEnd": 17, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 372, "length": 3 } + } + }, + "source": { "span": { "start": 645, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "bar" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "int" } } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 3, + "lineEnd": 17, + "columnEnd": 15 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 36 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 310, "length": 3 } + } + }, + "source": { "span": { "start": 601, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "baz" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "T" } }, + { "name": { "key": "" }, "type": { "key": "U" } } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 36 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 36 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 310, "length": 3 } + } + }, + "source": { "span": { "start": 616, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "baz" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "T" } }, + { "name": { "key": "" }, "type": { "key": "U" } } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 36 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 36 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 310, "length": 3 } + } + }, + "source": { "span": { "start": 716, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "baz" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "T" } }, + { "name": { "key": "" }, "type": { "key": "U" } } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 36 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 24, + "lineEnd": 18, + "columnEnd": 38 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 410, "length": 3 } + } + }, + "source": { "span": { "start": 657, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "baz" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "int" } }, + { "name": { "key": "" }, "type": { "key": "U" } } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 24, + "lineEnd": 18, + "columnEnd": 38 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 24, + "lineEnd": 18, + "columnEnd": 38 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 410, "length": 3 } + } + }, + "source": { "span": { "start": 672, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "baz" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "int" } }, + { "name": { "key": "" }, "type": { "key": "U" } } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 24, + "lineEnd": 18, + "columnEnd": 38 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 1, + "lineEnd": 26, + "columnEnd": 37 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 497, "length": 3 } + } + }, + "source": { "span": { "start": 734, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "baz" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + }, + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 1, + "lineEnd": 26, + "columnEnd": 37 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 12 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 260, "length": 3 } + } + }, + "source": { "span": { "start": 578, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { "returns": { "key": "void" }, "parameters": [ ] } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 12 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 3, + "lineEnd": 16, + "columnEnd": 12 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 358, "length": 3 } + } + }, + "source": { "span": { "start": 634, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { "returns": { "key": "void" }, "parameters": [ ] } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 3, + "lineEnd": 16, + "columnEnd": 12 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 22, + "columnEnd": 22 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 451, "length": 3 } + } + }, + "source": { "span": { "start": 690, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 22, + "columnEnd": 22 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 29, + "columnBegin": 3, + "lineEnd": 29, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 545, "length": 1 } + } + }, + "source": { "span": { "start": 576, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "A" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 29, + "columnBegin": 3, + "lineEnd": 29, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 29, + "columnBegin": 3, + "lineEnd": 29, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 545, "length": 1 } + } + }, + "source": { "span": { "start": 587, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "A" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 29, + "columnBegin": 3, + "lineEnd": 29, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 29, + "columnBegin": 3, + "lineEnd": 29, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 545, "length": 1 } + } + }, + "source": { "span": { "start": 599, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "A" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 29, + "columnBegin": 3, + "lineEnd": 29, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 29, + "columnBegin": 3, + "lineEnd": 29, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 545, "length": 1 } + } + }, + "source": { "span": { "start": 614, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "A" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 29, + "columnBegin": 3, + "lineEnd": 29, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "y", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 3, + "lineEnd": 30, + "columnEnd": 10 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 557, "length": 1 } + } + }, + "source": { "span": { "start": 632, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "y" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "A" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 3, + "lineEnd": 30, + "columnEnd": 10 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "y", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 3, + "lineEnd": 30, + "columnEnd": 10 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 557, "length": 1 } + } + }, + "source": { "span": { "start": 643, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "y" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "A" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 3, + "lineEnd": 30, + "columnEnd": 10 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "y", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 3, + "lineEnd": 30, + "columnEnd": 10 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 557, "length": 1 } + } + }, + "source": { "span": { "start": 655, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "y" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "A" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 3, + "lineEnd": 30, + "columnEnd": 10 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "y", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 3, + "lineEnd": 30, + "columnEnd": 10 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 557, "length": 1 } + } + }, + "source": { "span": { "start": 670, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "y" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "A" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 3, + "lineEnd": 30, + "columnEnd": 10 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "z", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 31, + "columnBegin": 3, + "lineEnd": 31, + "columnEnd": 11 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 570, "length": 1 } + } + }, + "source": { "span": { "start": 688, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "z" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "A" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 31, + "columnBegin": 3, + "lineEnd": 31, + "columnEnd": 11 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "z", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 31, + "columnBegin": 3, + "lineEnd": 31, + "columnEnd": 11 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 570, "length": 1 } + } + }, + "source": { "span": { "start": 699, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "z" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "A" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 31, + "columnBegin": 3, + "lineEnd": 31, + "columnEnd": 11 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "z", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 31, + "columnBegin": 3, + "lineEnd": 31, + "columnEnd": 11 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 570, "length": 1 } + } + }, + "source": { "span": { "start": 714, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "z" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "A" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 31, + "columnBegin": 3, + "lineEnd": 31, + "columnEnd": 11 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "z", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 31, + "columnBegin": 3, + "lineEnd": 31, + "columnEnd": 11 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 570, "length": 1 } + } + }, + "source": { "span": { "start": 732, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "z" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "A" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 31, + "columnBegin": 3, + "lineEnd": 31, + "columnEnd": 11 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/template-member-var1/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/template-member-var1/fileentityxrefsgeneric.out new file mode 100644 index 000000000..bfe19a292 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/template-member-var1/fileentityxrefsgeneric.out @@ -0,0 +1,5500 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 398, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 585, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 626, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 660, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 720, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 749, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 769, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 786, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 829, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 856, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 874, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 892, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 916, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 940, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 966, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 983, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 1000, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 1023, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 1046, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 1071, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 1086, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 1101, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 1122, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 1143, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "X", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 34, + "lineEnd": 9, + "columnEnd": 44 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 261, "length": 1 } + } + }, + "source": { "span": { "start": 364, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "X" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 34, + "lineEnd": 9, + "columnEnd": 44 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "X", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 34, + "lineEnd": 9, + "columnEnd": 44 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 261, "length": 1 } + } + }, + "source": { "span": { "start": 473, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "X" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 34, + "lineEnd": 9, + "columnEnd": 44 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "X", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 34, + "lineEnd": 9, + "columnEnd": 44 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 261, "length": 1 } + } + }, + "source": { "span": { "start": 577, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "X" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 34, + "lineEnd": 9, + "columnEnd": 44 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "X", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 34, + "lineEnd": 9, + "columnEnd": 44 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 261, "length": 1 } + } + }, + "source": { "span": { "start": 713, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "X" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 34, + "lineEnd": 9, + "columnEnd": 44 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "X", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 34, + "lineEnd": 9, + "columnEnd": 44 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 261, "length": 1 } + } + }, + "source": { "span": { "start": 820, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "X" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 34, + "lineEnd": 9, + "columnEnd": 44 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 33, + "columnBegin": 1, + "lineEnd": 33, + "columnEnd": 32 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 666, "length": 3 } + } + }, + "source": { "span": { "start": 885, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 33, + "columnBegin": 1, + "lineEnd": 33, + "columnEnd": 32 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 36, + "columnBegin": 1, + "lineEnd": 37, + "columnEnd": 19 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 759, "length": 3 } + } + }, + "source": { "span": { "start": 993, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "char *" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 36, + "columnBegin": 1, + "lineEnd": 37, + "columnEnd": 19 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 40, + "columnBegin": 1, + "lineEnd": 40, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 794, "length": 3 } + } + }, + "source": { "span": { "start": 1094, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 40, + "columnBegin": 1, + "lineEnd": 40, + "columnEnd": 15 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 30, + "columnEnd": 17 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 591, "length": 3 } + } + }, + "source": { "span": { "start": 927, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 30, + "columnEnd": 17 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 30, + "columnEnd": 17 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 591, "length": 3 } + } + }, + "source": { "span": { "start": 951, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 30, + "columnEnd": 17 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 30, + "columnEnd": 17 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 591, "length": 3 } + } + }, + "source": { "span": { "start": 1033, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 30, + "columnEnd": 17 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 30, + "columnEnd": 17 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 591, "length": 3 } + } + }, + "source": { "span": { "start": 1056, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 30, + "columnEnd": 17 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 726, "length": 3 } + } + }, + "source": { "span": { "start": 903, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 726, "length": 3 } + } + }, + "source": { "span": { "start": 1010, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 41, + "columnBegin": 22, + "lineEnd": 41, + "columnEnd": 41 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 837, "length": 3 } + } + }, + "source": { "span": { "start": 1109, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 41, + "columnBegin": 22, + "lineEnd": 41, + "columnEnd": 41 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 41, + "columnBegin": 22, + "lineEnd": 41, + "columnEnd": 41 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 837, "length": 3 } + } + }, + "source": { "span": { "start": 1130, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 41, + "columnBegin": 22, + "lineEnd": 41, + "columnEnd": 41 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 41, + "columnBegin": 22, + "lineEnd": 41, + "columnEnd": 41 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 837, "length": 3 } + } + }, + "source": { "span": { "start": 1151, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 41, + "columnBegin": 22, + "lineEnd": 41, + "columnEnd": 41 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 32, + "columnBegin": 1, + "lineEnd": 32, + "columnEnd": 34 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 632, "length": 3 } + } + }, + "source": { "span": { "start": 867, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 32, + "columnBegin": 1, + "lineEnd": 32, + "columnEnd": 34 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 32, + "columnBegin": 1, + "lineEnd": 32, + "columnEnd": 34 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 632, "length": 3 } + } + }, + "source": { "span": { "start": 976, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 32, + "columnBegin": 1, + "lineEnd": 32, + "columnEnd": 34 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 39, + "columnBegin": 1, + "lineEnd": 39, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 777, "length": 3 } + } + }, + "source": { "span": { "start": 1079, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 39, + "columnBegin": 1, + "lineEnd": 39, + "columnEnd": 15 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/template-member-var1/fileentityxrefsgeneric.platform010-clang-17.out b/glean/lang/codemarkup/tests/clang/xrefs/template-member-var1/fileentityxrefsgeneric.platform010-clang-17.out new file mode 100644 index 000000000..61ce7226b --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/template-member-var1/fileentityxrefsgeneric.platform010-clang-17.out @@ -0,0 +1,5500 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 398, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 585, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 626, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 660, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 720, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 749, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 769, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 786, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 829, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 856, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 874, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 892, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 916, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 940, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 966, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 983, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 1000, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 1023, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 1046, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 1071, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 1086, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 1101, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 1122, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 1 } + } + }, + "source": { "span": { "start": 1143, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 14 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "X", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 34, + "lineEnd": 9, + "columnEnd": 44 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 261, "length": 1 } + } + }, + "source": { "span": { "start": 364, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "X" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 34, + "lineEnd": 9, + "columnEnd": 44 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "X", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 34, + "lineEnd": 9, + "columnEnd": 44 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 261, "length": 1 } + } + }, + "source": { "span": { "start": 473, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "X" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 34, + "lineEnd": 9, + "columnEnd": 44 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "X", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 34, + "lineEnd": 9, + "columnEnd": 44 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 261, "length": 1 } + } + }, + "source": { "span": { "start": 577, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "X" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 34, + "lineEnd": 9, + "columnEnd": 44 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "X", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 34, + "lineEnd": 9, + "columnEnd": 44 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 261, "length": 1 } + } + }, + "source": { "span": { "start": 713, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "X" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 34, + "lineEnd": 9, + "columnEnd": 44 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "X", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 34, + "lineEnd": 9, + "columnEnd": 44 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 261, "length": 1 } + } + }, + "source": { "span": { "start": 820, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "X" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 34, + "lineEnd": 9, + "columnEnd": 44 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 33, + "columnBegin": 1, + "lineEnd": 33, + "columnEnd": 32 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 666, "length": 3 } + } + }, + "source": { "span": { "start": 885, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 33, + "columnBegin": 1, + "lineEnd": 33, + "columnEnd": 32 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 36, + "columnBegin": 1, + "lineEnd": 37, + "columnEnd": 19 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 759, "length": 3 } + } + }, + "source": { "span": { "start": 993, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "char *" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 36, + "columnBegin": 1, + "lineEnd": 37, + "columnEnd": 19 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 40, + "columnBegin": 1, + "lineEnd": 40, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 794, "length": 3 } + } + }, + "source": { "span": { "start": 1094, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 40, + "columnBegin": 1, + "lineEnd": 40, + "columnEnd": 15 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 30, + "columnEnd": 21 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 591, "length": 3 } + } + }, + "source": { "span": { "start": 927, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 30, + "columnEnd": 21 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 30, + "columnEnd": 21 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 591, "length": 3 } + } + }, + "source": { "span": { "start": 951, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 30, + "columnEnd": 21 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 30, + "columnEnd": 21 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 591, "length": 3 } + } + }, + "source": { "span": { "start": 1033, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 30, + "columnEnd": 21 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 30, + "columnEnd": 21 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 591, "length": 3 } + } + }, + "source": { "span": { "start": 1056, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 30, + "columnEnd": 21 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 726, "length": 3 } + } + }, + "source": { "span": { "start": 903, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 726, "length": 3 } + } + }, + "source": { "span": { "start": 1010, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 58 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 41, + "columnBegin": 22, + "lineEnd": 41, + "columnEnd": 41 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 837, "length": 3 } + } + }, + "source": { "span": { "start": 1109, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 41, + "columnBegin": 22, + "lineEnd": 41, + "columnEnd": 41 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 41, + "columnBegin": 22, + "lineEnd": 41, + "columnEnd": 41 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 837, "length": 3 } + } + }, + "source": { "span": { "start": 1130, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 41, + "columnBegin": 22, + "lineEnd": 41, + "columnEnd": 41 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 41, + "columnBegin": 22, + "lineEnd": 41, + "columnEnd": 41 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 837, "length": 3 } + } + }, + "source": { "span": { "start": 1151, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "baz" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "X" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 41, + "columnBegin": 22, + "lineEnd": 41, + "columnEnd": 41 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 32, + "columnBegin": 1, + "lineEnd": 32, + "columnEnd": 34 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 632, "length": 3 } + } + }, + "source": { "span": { "start": 867, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 32, + "columnBegin": 1, + "lineEnd": 32, + "columnEnd": 34 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 32, + "columnBegin": 1, + "lineEnd": 32, + "columnEnd": 34 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 632, "length": 3 } + } + }, + "source": { "span": { "start": 976, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 32, + "columnBegin": 1, + "lineEnd": 32, + "columnEnd": 34 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 39, + "columnBegin": 1, + "lineEnd": 39, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 777, "length": 3 } + } + }, + "source": { "span": { "start": 1079, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 39, + "columnBegin": 1, + "lineEnd": 39, + "columnEnd": 15 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/template-using-fun1/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/template-using-fun1/fileentityxrefsgeneric.out new file mode 100644 index 000000000..170e32dec --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/template-using-fun1/fileentityxrefsgeneric.out @@ -0,0 +1,318 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 366, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 11, + "columnEnd": 33 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 30 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 437, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "T" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 11, + "columnEnd": 33 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 30 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 11, + "columnEnd": 33 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 263, "length": 1 } + } + }, + "source": { "span": { "start": 441, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "T" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 11, + "columnEnd": 33 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/template-using-var1/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/template-using-var1/fileentityxrefsgeneric.out new file mode 100644 index 000000000..9cbb204c7 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/template-using-var1/fileentityxrefsgeneric.out @@ -0,0 +1,361 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 438, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "const int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 2, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 11, + "columnEnd": 42 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "const int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 2, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 46 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "const int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 2, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 38 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 532, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "const int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 2, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 11, + "columnEnd": 42 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "const int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 2, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 46 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "const int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 2, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 38 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 11, + "columnEnd": 42 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 272, "length": 3 } + } + }, + "source": { "span": { "start": 536, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "type": { "key": "const int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 2, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 11, + "columnEnd": 42 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/template-var1/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/template-var1/fileentityxrefsgeneric.out new file mode 100644 index 000000000..5421c9a1e --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/template-var1/fileentityxrefsgeneric.out @@ -0,0 +1,243 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 9, + "columnEnd": 42 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 256, "length": 3 } + } + }, + "source": { "span": { "start": 401, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { "global_": { } } + } + }, + "type": { "key": "const int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 2, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 9, + "columnEnd": 42 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 9, + "columnEnd": 42 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 256, "length": 3 } + } + }, + "source": { "span": { "start": 439, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { "global_": { } } + } + }, + "type": { "key": "const int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 2, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 9, + "columnEnd": 42 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 46 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 300, "length": 3 } + } + }, + "source": { "span": { "start": 413, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { "global_": { } } + } + }, + "type": { "key": "const int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 2, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 46 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 38 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 338, "length": 3 } + } + }, + "source": { "span": { "start": 426, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "foo" }, + "scope": { "global_": { } } + } + }, + "type": { "key": "const int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 2, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 38 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/template1/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/template1/fileentityxrefsgeneric.out new file mode 100644 index 000000000..d07d9b114 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/template1/fileentityxrefsgeneric.out @@ -0,0 +1,670 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 243, "length": 3 } + } + }, + "source": { "span": { "start": 378, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 13 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 243, "length": 3 } + } + }, + "source": { "span": { "start": 400, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 13 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Baz", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 258, "length": 3 } + } + }, + "source": { "span": { "start": 389, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Baz" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 13 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 9, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 228, "length": 3 } + } + }, + "source": { "span": { "start": 301, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 9, + "columnEnd": 13 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 9, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 228, "length": 3 } + } + }, + "source": { "span": { "start": 357, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 9, + "columnEnd": 13 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "S", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 295, "length": 1 } + } + }, + "source": { "span": { "start": 376, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "S" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "S" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "Foo" }, + "kind": { "field": { "mutable_": false } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 3, + "lineEnd": 15, + "columnEnd": 7 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "y" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "S" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { "field": { "mutable_": false } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 3, + "lineEnd": 16, + "columnEnd": 5 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "S", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 295, "length": 1 } + } + }, + "source": { "span": { "start": 387, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "S" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "S" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "Foo" }, + "kind": { "field": { "mutable_": false } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 3, + "lineEnd": 15, + "columnEnd": 7 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "y" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "S" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { "field": { "mutable_": false } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 3, + "lineEnd": 16, + "columnEnd": 5 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "S", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 295, "length": 1 } + } + }, + "source": { "span": { "start": 398, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "S" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "S" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "Foo" }, + "kind": { "field": { "mutable_": false } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 3, + "lineEnd": 15, + "columnEnd": 7 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "y" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "S" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": { "field": { "mutable_": false } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 3, + "lineEnd": 16, + "columnEnd": 5 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/template2/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/template2/fileentityxrefsgeneric.out new file mode 100644 index 000000000..fc3ed1277 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/template2/fileentityxrefsgeneric.out @@ -0,0 +1,277 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 11, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 249, "length": 1 } + } + }, + "source": { "span": { "start": 325, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 11, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "U" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 24, + "lineEnd": 10, + "columnEnd": 39 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 11, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 249, "length": 1 } + } + }, + "source": { "span": { "start": 363, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 22, + "lineEnd": 11, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "U" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 24, + "lineEnd": 10, + "columnEnd": 39 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 24, + "lineEnd": 10, + "columnEnd": 39 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 288, "length": 1 } + } + }, + "source": { "span": { "start": 371, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "A" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "U" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 24, + "lineEnd": 10, + "columnEnd": 39 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/template3/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/template3/fileentityxrefsgeneric.out new file mode 100644 index 000000000..99f785077 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/template3/fileentityxrefsgeneric.out @@ -0,0 +1,657 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 38, + "lineEnd": 12, + "columnEnd": 50 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 317, "length": 3 } + } + }, + "source": { "span": { "start": 340, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 38, + "lineEnd": 12, + "columnEnd": 50 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 38, + "lineEnd": 12, + "columnEnd": 50 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 317, "length": 3 } + } + }, + "source": { "span": { "start": 393, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 38, + "lineEnd": 12, + "columnEnd": 50 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 11, + "columnEnd": 34 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 265, "length": 3 } + } + }, + "source": { "span": { "start": 344, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 11, + "columnEnd": 34 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 11, + "columnEnd": 34 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 265, "length": 3 } + } + }, + "source": { "span": { "start": 382, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 11, + "columnEnd": 34 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 378, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 11, + "columnEnd": 34 + } + } + } + }, + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 38, + "lineEnd": 12, + "columnEnd": 50 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 1 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 389, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 11, + "columnEnd": 34 + } + } + } + }, + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 38, + "lineEnd": 12, + "columnEnd": 50 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 1 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 438, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 22, + "lineEnd": 11, + "columnEnd": 34 + } + } + } + }, + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 38, + "lineEnd": 12, + "columnEnd": 50 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 1 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/using-chain1/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/using-chain1/fileentityxrefsgeneric.out new file mode 100644 index 000000000..bd3cdaea6 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/using-chain1/fileentityxrefsgeneric.out @@ -0,0 +1,269 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 298, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 8 + } + } + } + }, + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "T1" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 21, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 276, "length": 2 } + } + }, + "source": { "span": { "start": 328, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N2" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 21, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 21, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 276, "length": 2 } + } + }, + "source": { "span": { "start": 342, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N2" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 21, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 23, + "columnBegin": 1, + "lineEnd": 28, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 316, "length": 2 } + } + }, + "source": { "span": { "start": 386, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N3" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 23, + "columnBegin": 1, + "lineEnd": 28, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/using-decl1/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/using-decl1/fileentityxrefsgeneric.out new file mode 100644 index 000000000..dc3293f6a --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/using-decl1/fileentityxrefsgeneric.out @@ -0,0 +1,4824 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 448, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 462, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 476, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 513, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 551, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 588, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 632, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 698, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 755, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 800, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 845, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 882, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 922, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 43, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 436, "length": 2 } + } + }, + "source": { "span": { "start": 777, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N2" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 43, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes1" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no1" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 35, + "columnBegin": 1, + "lineEnd": 35, + "columnEnd": 19 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes2" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 36, + "columnBegin": 1, + "lineEnd": 36, + "columnEnd": 15 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no2" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 37, + "columnBegin": 1, + "lineEnd": 37, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes3" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 38, + "columnBegin": 1, + "lineEnd": 38, + "columnEnd": 15 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no3" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 39, + "columnBegin": 1, + "lineEnd": 39, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes4" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 40, + "columnBegin": 1, + "lineEnd": 40, + "columnEnd": 22 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no4" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 41, + "columnBegin": 1, + "lineEnd": 41, + "columnEnd": 25 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 43, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 436, "length": 2 } + } + }, + "source": { "span": { "start": 822, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N2" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 43, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes1" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no1" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 35, + "columnBegin": 1, + "lineEnd": 35, + "columnEnd": 19 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes2" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 36, + "columnBegin": 1, + "lineEnd": 36, + "columnEnd": 15 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no2" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 37, + "columnBegin": 1, + "lineEnd": 37, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes3" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 38, + "columnBegin": 1, + "lineEnd": 38, + "columnEnd": 15 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no3" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 39, + "columnBegin": 1, + "lineEnd": 39, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes4" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 40, + "columnBegin": 1, + "lineEnd": 40, + "columnEnd": 22 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no4" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 41, + "columnBegin": 1, + "lineEnd": 41, + "columnEnd": 25 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 241, "length": 2 } + } + }, + "source": { "span": { "start": 452, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f1" } } }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "int" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 241, "length": 2 } + } + }, + "source": { "span": { "start": 517, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f1" } } }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "int" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 241, "length": 2 } + } + }, + "source": { "span": { "start": 702, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f1" } } }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "int" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 241, "length": 2 } + } + }, + "source": { "span": { "start": 886, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f1" } } }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "int" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 241, "length": 2 } + } + }, + "source": { "span": { "start": 926, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f1" } } }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "int" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 254, "length": 2 } + } + }, + "source": { "span": { "start": 452, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f1" } } }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 254, "length": 2 } + } + }, + "source": { "span": { "start": 636, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f1" } } }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 254, "length": 2 } + } + }, + "source": { "span": { "start": 886, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f1" } } }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 276, "length": 2 } + } + }, + "source": { "span": { "start": 452, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f1" } } }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "bool" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 276, "length": 2 } + } + }, + "source": { "span": { "start": 886, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f1" } } }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "bool" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 13, + "lineEnd": 17, + "columnEnd": 32 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 314, "length": 2 } + } + }, + "source": { "span": { "start": 466, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f3" } } }, + "scope": { + "namespace_": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 13, + "lineEnd": 17, + "columnEnd": 32 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 13, + "lineEnd": 17, + "columnEnd": 32 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 314, "length": 2 } + } + }, + "source": { "span": { "start": 555, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f3" } } }, + "scope": { + "namespace_": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 13, + "lineEnd": 17, + "columnEnd": 32 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 13, + "lineEnd": 17, + "columnEnd": 32 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 314, "length": 2 } + } + }, + "source": { "span": { "start": 759, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f3" } } }, + "scope": { + "namespace_": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 13, + "lineEnd": 17, + "columnEnd": 32 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 13, + "lineEnd": 17, + "columnEnd": 32 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 314, "length": 2 } + } + }, + "source": { "span": { "start": 804, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f3" } } }, + "scope": { + "namespace_": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 13, + "lineEnd": 17, + "columnEnd": 32 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 34, + "lineEnd": 17, + "columnEnd": 56 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 335, "length": 2 } + } + }, + "source": { "span": { "start": 466, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f3" } } }, + "scope": { + "namespace_": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 34, + "lineEnd": 17, + "columnEnd": 56 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f5", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 8 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 416, "length": 2 } + } + }, + "source": { "span": { "start": 480, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f5" } } }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "signature": { + "key": { "returns": { "key": "int" }, "parameters": [ ] } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 8 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f5", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 8 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 416, "length": 2 } + } + }, + "source": { "span": { "start": 592, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f5" } } }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "signature": { + "key": { "returns": { "key": "int" }, "parameters": [ ] } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 8 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f5", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 8 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 416, "length": 2 } + } + }, + "source": { "span": { "start": 849, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f5" } } }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "signature": { + "key": { "returns": { "key": "int" }, "parameters": [ ] } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 8 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/using-decl2/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/using-decl2/fileentityxrefsgeneric.out new file mode 100644 index 000000000..47850a506 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/using-decl2/fileentityxrefsgeneric.out @@ -0,0 +1,2972 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N0", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 448, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N0" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N0" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N0" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N0" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N0" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N0" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N0" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N0", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 462, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N0" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N0" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N0" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N0" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N0" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N0" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N0" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N0", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 476, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N0" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N0" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N0" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N0" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N0" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N0" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N0" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N0", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 510, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N0" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N0" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N0" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N0" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N0" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N0" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N0" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N0", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 524, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N0" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N0" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N0" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N0" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N0" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N0" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N0" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 436, "length": 2 } + } + }, + "source": { "span": { "start": 558, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 436, "length": 2 } + } + }, + "source": { "span": { "start": 572, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 436, "length": 2 } + } + }, + "source": { "span": { "start": 586, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 436, "length": 2 } + } + }, + "source": { "span": { "start": 623, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 436, "length": 2 } + } + }, + "source": { "span": { "start": 661, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 436, "length": 2 } + } + }, + "source": { "span": { "start": 698, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 436, "length": 2 } + } + }, + "source": { "span": { "start": 742, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 436, "length": 2 } + } + }, + "source": { "span": { "start": 808, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 436, "length": 2 } + } + }, + "source": { "span": { "start": 865, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 436, "length": 2 } + } + }, + "source": { "span": { "start": 910, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 436, "length": 2 } + } + }, + "source": { "span": { "start": 955, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 436, "length": 2 } + } + }, + "source": { "span": { "start": 992, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 436, "length": 2 } + } + }, + "source": { "span": { "start": 1032, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 28, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 43, + "columnBegin": 1, + "lineEnd": 58, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 546, "length": 2 } + } + }, + "source": { "span": { "start": 887, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N2" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 43, + "columnBegin": 1, + "lineEnd": 58, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes1" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 49, + "columnBegin": 1, + "lineEnd": 49, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no1" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 50, + "columnBegin": 1, + "lineEnd": 50, + "columnEnd": 19 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes2" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 51, + "columnBegin": 1, + "lineEnd": 51, + "columnEnd": 15 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no2" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 52, + "columnBegin": 1, + "lineEnd": 52, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes3" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 53, + "columnBegin": 1, + "lineEnd": 53, + "columnEnd": 15 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no3" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 54, + "columnBegin": 1, + "lineEnd": 54, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes4" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 55, + "columnBegin": 1, + "lineEnd": 55, + "columnEnd": 22 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no4" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 56, + "columnBegin": 1, + "lineEnd": 56, + "columnEnd": 25 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 43, + "columnBegin": 1, + "lineEnd": 58, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 546, "length": 2 } + } + }, + "source": { "span": { "start": 932, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N2" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 43, + "columnBegin": 1, + "lineEnd": 58, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes1" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 49, + "columnBegin": 1, + "lineEnd": 49, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no1" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 50, + "columnBegin": 1, + "lineEnd": 50, + "columnEnd": 19 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes2" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 51, + "columnBegin": 1, + "lineEnd": 51, + "columnEnd": 15 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no2" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 52, + "columnBegin": 1, + "lineEnd": 52, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes3" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 53, + "columnBegin": 1, + "lineEnd": 53, + "columnEnd": 15 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no3" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 54, + "columnBegin": 1, + "lineEnd": 54, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes4" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 55, + "columnBegin": 1, + "lineEnd": 55, + "columnEnd": 22 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no4" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 56, + "columnBegin": 1, + "lineEnd": 56, + "columnEnd": 25 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 241, "length": 2 } + } + }, + "source": { "span": { "start": 452, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f1" } } }, + "scope": { + "namespace_": { "key": { "name": { "key": "N0" } } } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "int" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 254, "length": 2 } + } + }, + "source": { "span": { "start": 452, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f1" } } }, + "scope": { + "namespace_": { "key": { "name": { "key": "N0" } } } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 276, "length": 2 } + } + }, + "source": { "span": { "start": 452, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f1" } } }, + "scope": { + "namespace_": { "key": { "name": { "key": "N0" } } } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "bool" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 291, "length": 2 } + } + }, + "source": { "span": { "start": 466, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f2" } } }, + "scope": { + "namespace_": { "key": { "name": { "key": "N0" } } } + } + } + }, + "signature": { + "key": { "returns": { "key": "int" }, "parameters": [ ] } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 13, + "lineEnd": 17, + "columnEnd": 32 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 314, "length": 2 } + } + }, + "source": { "span": { "start": 480, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f3" } } }, + "scope": { + "namespace_": { + "key": { + "parent": { + "key": { "name": { "key": "N0" } } + } + } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 13, + "lineEnd": 17, + "columnEnd": 32 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 34, + "lineEnd": 17, + "columnEnd": 56 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 335, "length": 2 } + } + }, + "source": { "span": { "start": 480, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f3" } } }, + "scope": { + "namespace_": { + "key": { + "parent": { + "key": { "name": { "key": "N0" } } + } + } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 34, + "lineEnd": 17, + "columnEnd": 56 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f4", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 24, + "lineEnd": 18, + "columnEnd": 31 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 384, "length": 2 } + } + }, + "source": { "span": { "start": 514, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f4" } } }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "IN1" }, + "parent": { "key": { "name": { "key": "N0" } } } + } + } + } + } + }, + "signature": { + "key": { "returns": { "key": "int" }, "parameters": [ ] } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 24, + "lineEnd": 18, + "columnEnd": 31 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f5", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 8 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 416, "length": 2 } + } + }, + "source": { "span": { "start": 528, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f5" } } }, + "scope": { + "namespace_": { "key": { "name": { "key": "N0" } } } + } + } + }, + "signature": { + "key": { "returns": { "key": "int" }, "parameters": [ ] } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 8 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/using-decl3/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/using-decl3/fileentityxrefsgeneric.out new file mode 100644 index 000000000..311ea6d3b --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/using-decl3/fileentityxrefsgeneric.out @@ -0,0 +1,4977 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "E", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 21 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 292, "length": 1 } + } + }, + "source": { "span": { "start": 482, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "enum_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 21 + } + } + }, + "enumerators": [ + { + "key": { + "name": { "key": "E1" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 21 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 10, + "lineEnd": 15, + "columnEnd": 11 + } + } + }, + { + "key": { + "name": { "key": "E2" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 21 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 14, + "lineEnd": 15, + "columnEnd": 15 + } + } + }, + { + "key": { + "name": { "key": "E3" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 21 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 18, + "lineEnd": 15, + "columnEnd": 19 + } + } + } + ] + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "E", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 21 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 292, "length": 1 } + } + }, + "source": { "span": { "start": 809, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "enum_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 21 + } + } + }, + "enumerators": [ + { + "key": { + "name": { "key": "E1" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 21 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 10, + "lineEnd": 15, + "columnEnd": 11 + } + } + }, + { + "key": { + "name": { "key": "E2" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 21 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 14, + "lineEnd": 15, + "columnEnd": 15 + } + } + }, + { + "key": { + "name": { "key": "E3" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 21 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 18, + "lineEnd": 15, + "columnEnd": 19 + } + } + } + ] + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "E1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 10, + "lineEnd": 15, + "columnEnd": 11 + } + } + }, + "source": { "span": { "start": 495, "length": 2 } } + }, + "entity": { + "cxx": { + "enumerator": { + "key": { + "name": { "key": "E1" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 21 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 10, + "lineEnd": 15, + "columnEnd": 11 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "E1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 10, + "lineEnd": 15, + "columnEnd": 11 + } + } + }, + "source": { "span": { "start": 822, "length": 2 } } + }, + "entity": { + "cxx": { + "enumerator": { + "key": { + "name": { "key": "E1" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 21 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 10, + "lineEnd": 15, + "columnEnd": 11 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "F", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 27 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 321, "length": 1 } + } + }, + "source": { "span": { "start": 509, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "enum_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "F" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 27 + } + } + }, + "enumerators": [ + { + "key": { + "name": { "key": "F1" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "F" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 27 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 16, + "lineEnd": 16, + "columnEnd": 17 + } + } + }, + { + "key": { + "name": { "key": "F2" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "F" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 27 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 20, + "lineEnd": 16, + "columnEnd": 21 + } + } + }, + { + "key": { + "name": { "key": "F3" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "F" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 27 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 24, + "lineEnd": 16, + "columnEnd": 25 + } + } + } + ] + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "F", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 27 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 321, "length": 1 } + } + }, + "source": { "span": { "start": 836, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "enum_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "F" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 27 + } + } + }, + "enumerators": [ + { + "key": { + "name": { "key": "F1" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "F" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 27 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 16, + "lineEnd": 16, + "columnEnd": 17 + } + } + }, + { + "key": { + "name": { "key": "F2" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "F" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 27 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 20, + "lineEnd": 16, + "columnEnd": 21 + } + } + }, + { + "key": { + "name": { "key": "F3" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "F" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 27 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 24, + "lineEnd": 16, + "columnEnd": 25 + } + } + } + ] + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "F2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 20, + "lineEnd": 16, + "columnEnd": 21 + } + } + }, + "source": { "span": { "start": 579, "length": 2 } } + }, + "entity": { + "cxx": { + "enumerator": { + "key": { + "name": { "key": "F2" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "F" }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 27 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 20, + "lineEnd": 16, + "columnEnd": 21 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "F2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 20, + "lineEnd": 16, + "columnEnd": 21 + } + } + }, + "source": { "span": { "start": 693, "length": 2 } } + }, + "entity": { + "cxx": { + "enumerator": { + "key": { + "name": { "key": "F2" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "F" }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 27 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 20, + "lineEnd": 16, + "columnEnd": 21 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "F2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 20, + "lineEnd": 16, + "columnEnd": 21 + } + } + }, + "source": { "span": { "start": 906, "length": 2 } } + }, + "entity": { + "cxx": { + "enumerator": { + "key": { + "name": { "key": "F2" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "F" }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 27 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 20, + "lineEnd": 16, + "columnEnd": 21 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 465, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 1 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 21 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "F" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 27 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "U" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": 1, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 13 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "V" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "bool" }, + "kind": 0, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 14 + } + } + } + }, + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "W" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 1, + "lineEnd": 22, + "columnEnd": 44 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 478, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 1 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 21 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "F" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 27 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "U" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": 1, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 13 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "V" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "bool" }, + "kind": 0, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 14 + } + } + } + }, + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "W" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 1, + "lineEnd": 22, + "columnEnd": 44 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 491, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 1 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 21 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "F" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 27 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "U" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": 1, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 13 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "V" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "bool" }, + "kind": 0, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 14 + } + } + } + }, + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "W" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 1, + "lineEnd": 22, + "columnEnd": 44 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 505, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 1 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 21 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "F" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 27 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "U" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": 1, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 13 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "V" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "bool" }, + "kind": 0, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 14 + } + } + } + }, + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "W" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 1, + "lineEnd": 22, + "columnEnd": 44 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 518, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 1 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 21 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "F" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 27 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "U" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": 1, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 13 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "V" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "bool" }, + "kind": 0, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 14 + } + } + } + }, + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "W" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 1, + "lineEnd": 22, + "columnEnd": 44 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 531, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 1 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 21 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "F" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 27 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "U" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": 1, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 13 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "V" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "bool" }, + "kind": 0, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 14 + } + } + } + }, + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "W" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 1, + "lineEnd": 22, + "columnEnd": 44 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 544, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 1 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 21 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "F" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 27 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "U" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": 1, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 13 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "V" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "bool" }, + "kind": 0, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 14 + } + } + } + }, + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "W" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 1, + "lineEnd": 22, + "columnEnd": 44 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 792, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 1 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 21 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "F" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 27 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "U" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": 1, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 13 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "V" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "bool" }, + "kind": 0, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 14 + } + } + } + }, + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "W" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 1, + "lineEnd": 22, + "columnEnd": 44 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 805, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 1 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 21 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "F" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 27 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "U" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": 1, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 13 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "V" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "bool" }, + "kind": 0, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 14 + } + } + } + }, + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "W" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 1, + "lineEnd": 22, + "columnEnd": 44 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 818, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 1 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 21 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "F" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 27 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "U" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": 1, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 13 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "V" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "bool" }, + "kind": 0, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 14 + } + } + } + }, + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "W" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 1, + "lineEnd": 22, + "columnEnd": 44 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 832, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 1 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 21 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "F" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 27 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "U" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": 1, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 13 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "V" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "bool" }, + "kind": 0, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 14 + } + } + } + }, + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "W" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 1, + "lineEnd": 22, + "columnEnd": 44 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 845, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 1 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 21 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "F" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 27 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "U" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": 1, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 13 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "V" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "bool" }, + "kind": 0, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 14 + } + } + } + }, + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "W" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 1, + "lineEnd": 22, + "columnEnd": 44 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 858, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 1 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 21 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "F" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 27 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "U" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": 1, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 13 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "V" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "bool" }, + "kind": 0, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 14 + } + } + } + }, + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "W" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 1, + "lineEnd": 22, + "columnEnd": 44 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 871, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 1 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 21 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "F" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 27 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "U" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": 1, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 13 + } + } + } + }, + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "V" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "type": { "key": "bool" }, + "kind": 0, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 14 + } + } + } + }, + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "W" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 1, + "lineEnd": 22, + "columnEnd": 44 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "T", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 244, "length": 1 } + } + }, + "source": { "span": { "start": 469, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "U" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": 1, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 17 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "T", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 244, "length": 1 } + } + }, + "source": { "span": { "start": 796, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "U" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": 1, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 3, + "lineEnd": 13, + "columnEnd": 17 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Type", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 12, + "lineEnd": 22, + "columnEnd": 25 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 410, "length": 4 } + } + }, + "source": { "span": { "start": 617, "length": 4 } } + }, + "entity": { + "cxx": { + "decl": { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "Type" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "W" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": 1, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 12, + "lineEnd": 22, + "columnEnd": 25 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Type", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 12, + "lineEnd": 22, + "columnEnd": 25 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 410, "length": 4 } + } + }, + "source": { "span": { "start": 731, "length": 4 } } + }, + "entity": { + "cxx": { + "decl": { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "Type" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "W" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": 1, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 12, + "lineEnd": 22, + "columnEnd": 25 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Type", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 12, + "lineEnd": 22, + "columnEnd": 25 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 410, "length": 4 } + } + }, + "source": { "span": { "start": 944, "length": 4 } } + }, + "entity": { + "cxx": { + "decl": { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "Type" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "W" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": 1, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 12, + "lineEnd": 22, + "columnEnd": 25 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "U", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 346, "length": 1 } + } + }, + "source": { "span": { "start": 522, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "U" }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "type": { "key": "int" }, + "kind": 1, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "U", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 346, "length": 1 } + } + }, + "source": { "span": { "start": 849, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "U" }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "type": { "key": "int" }, + "kind": 1, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "V", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 14 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 368, "length": 1 } + } + }, + "source": { "span": { "start": 535, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "V" }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "type": { "key": "bool" }, + "kind": 0, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 14 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "V", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 14 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 368, "length": 1 } + } + }, + "source": { "span": { "start": 862, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "V" }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "type": { "key": "bool" }, + "kind": 0, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 14 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "W", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 1, + "lineEnd": 22, + "columnEnd": 44 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 400, "length": 1 } + } + }, + "source": { "span": { "start": 548, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "W" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 1, + "lineEnd": 22, + "columnEnd": 44 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "Type" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "W" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": 1, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 12, + "lineEnd": 22, + "columnEnd": 25 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "W" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 28, + "lineEnd": 22, + "columnEnd": 41 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "W", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 1, + "lineEnd": 22, + "columnEnd": 44 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 400, "length": 1 } + } + }, + "source": { "span": { "start": 875, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "W" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 1, + "lineEnd": 22, + "columnEnd": 44 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "typeAlias": { + "key": { + "name": { + "key": { + "name": { "key": "Type" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "W" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "T" }, + "kind": 1, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 12, + "lineEnd": 22, + "columnEnd": 25 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "W" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 28, + "lineEnd": 22, + "columnEnd": 41 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 28, + "lineEnd": 22, + "columnEnd": 41 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 431, "length": 1 } + } + }, + "source": { "span": { "start": 646, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "W" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { "returns": { "key": "int" }, "parameters": [ ] } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 28, + "lineEnd": 22, + "columnEnd": 41 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 28, + "lineEnd": 22, + "columnEnd": 41 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 431, "length": 1 } + } + }, + "source": { "span": { "start": 760, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "W" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { "returns": { "key": "int" }, "parameters": [ ] } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 28, + "lineEnd": 22, + "columnEnd": 41 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 28, + "lineEnd": 22, + "columnEnd": 41 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 431, "length": 1 } + } + }, + "source": { "span": { "start": 973, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "W" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { "returns": { "key": "int" }, "parameters": [ ] } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 28, + "lineEnd": 22, + "columnEnd": 41 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/using-decl4/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/using-decl4/fileentityxrefsgeneric.out new file mode 100644 index 000000000..6b7ae0904 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/using-decl4/fileentityxrefsgeneric.out @@ -0,0 +1,3654 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 450, "length": 3 } + } + }, + "source": { "span": { "start": 490, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 450, "length": 3 } + } + }, + "source": { "span": { "start": 506, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 450, "length": 3 } + } + }, + "source": { "span": { "start": 559, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 450, "length": 3 } + } + }, + "source": { "span": { "start": 747, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 450, "length": 3 } + } + }, + "source": { "span": { "start": 768, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 450, "length": 3 } + } + }, + "source": { "span": { "start": 1201, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 435, "length": 3 } + } + }, + "source": { "span": { "start": 501, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "funfoo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "N1::N2::Foo::Bar" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo::Bar" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 23, + "columnBegin": 3, + "lineEnd": 23, + "columnEnd": 22 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::XXX" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::N3::YYY" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 3, + "lineEnd": 24, + "columnEnd": 20 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 435, "length": 3 } + } + }, + "source": { "span": { "start": 554, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "funfoo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "N1::N2::Foo::Bar" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo::Bar" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 23, + "columnBegin": 3, + "lineEnd": 23, + "columnEnd": 22 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::XXX" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::N3::YYY" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 3, + "lineEnd": 24, + "columnEnd": 20 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 435, "length": 3 } + } + }, + "source": { "span": { "start": 584, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "funfoo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "N1::N2::Foo::Bar" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo::Bar" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 23, + "columnBegin": 3, + "lineEnd": 23, + "columnEnd": 22 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::XXX" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::N3::YYY" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 3, + "lineEnd": 24, + "columnEnd": 20 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 435, "length": 3 } + } + }, + "source": { "span": { "start": 763, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "funfoo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "N1::N2::Foo::Bar" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo::Bar" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 23, + "columnBegin": 3, + "lineEnd": 23, + "columnEnd": 22 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::XXX" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::N3::YYY" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 3, + "lineEnd": 24, + "columnEnd": 20 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 435, "length": 3 } + } + }, + "source": { "span": { "start": 839, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "funfoo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "N1::N2::Foo::Bar" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo::Bar" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 23, + "columnBegin": 3, + "lineEnd": 23, + "columnEnd": 22 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::XXX" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::N3::YYY" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 3, + "lineEnd": 24, + "columnEnd": 20 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 435, "length": 3 } + } + }, + "source": { "span": { "start": 1057, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "funfoo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "N1::N2::Foo::Bar" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo::Bar" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 23, + "columnBegin": 3, + "lineEnd": 23, + "columnEnd": 22 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::XXX" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::N3::YYY" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 3, + "lineEnd": 24, + "columnEnd": 20 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 435, "length": 3 } + } + }, + "source": { "span": { "start": 1196, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "funfoo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "N1::N2::Foo::Bar" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo::Bar" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 23, + "columnBegin": 3, + "lineEnd": 23, + "columnEnd": 22 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::XXX" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::N3::YYY" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 3, + "lineEnd": 24, + "columnEnd": 20 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 435, "length": 3 } + } + }, + "source": { "span": { "start": 1277, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "funfoo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "N1::N2::Foo::Bar" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo::Bar" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 23, + "columnBegin": 3, + "lineEnd": 23, + "columnEnd": 22 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::XXX" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::N3::YYY" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 3, + "lineEnd": 24, + "columnEnd": 20 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "M1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 35, + "columnBegin": 1, + "lineEnd": 35, + "columnEnd": 31 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 603, "length": 2 } + } + }, + "source": { "span": { "start": 712, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "M1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 35, + "columnBegin": 1, + "lineEnd": 35, + "columnEnd": 31 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "ZZZ" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "M1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 35, + "columnBegin": 16, + "lineEnd": 35, + "columnEnd": 28 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 33, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 642, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 33, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 29, + "columnEnd": 1 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 33, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 1177, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 33, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 29, + "columnEnd": 1 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 29, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 247, "length": 2 } + } + }, + "source": { "span": { "start": 580, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "N2" }, + "parent": { "key": { "name": { "key": "N1" } } } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 29, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "XXX" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "N3" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 31 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "N4" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 31 + } + } + } + }, + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "standalone" } } + }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "Foo::Bar" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::N3::YYY" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 27, + "columnBegin": 1, + "lineEnd": 27, + "columnEnd": 30 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 29, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 247, "length": 2 } + } + }, + "source": { "span": { "start": 1181, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "N2" }, + "parent": { "key": { "name": { "key": "N1" } } } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 29, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "XXX" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "N3" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 31 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "N4" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 31 + } + } + } + }, + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "standalone" } } + }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "Foo::Bar" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::N3::YYY" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 27, + "columnBegin": 1, + "lineEnd": 27, + "columnEnd": 30 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 31 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 308, "length": 2 } + } + }, + "source": { "span": { "start": 369, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "N3" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { "key": { "name": { "key": "N1" } } } + } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 31 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "YYY" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N3" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 16, + "lineEnd": 15, + "columnEnd": 28 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N4", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 31 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 340, "length": 2 } + } + }, + "source": { "span": { "start": 423, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "N4" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { "key": { "name": { "key": "N1" } } } + } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 31 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "callme" } } + }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N4" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 16, + "lineEnd": 16, + "columnEnd": 28 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "XXX", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 260, "length": 3 } + } + }, + "source": { "span": { "start": 523, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "XXX" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "XXX", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 260, "length": 3 } + } + }, + "source": { "span": { "start": 777, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "XXX" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "XXX", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 260, "length": 3 } + } + }, + "source": { "span": { "start": 981, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "XXX" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "XXX", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 260, "length": 3 } + } + }, + "source": { "span": { "start": 995, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "XXX" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "XXX", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 260, "length": 3 } + } + }, + "source": { "span": { "start": 1215, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "XXX" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "YYY", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 16, + "lineEnd": 15, + "columnEnd": 28 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 320, "length": 3 } + } + }, + "source": { "span": { "start": 373, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "YYY" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N3" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 16, + "lineEnd": 15, + "columnEnd": 28 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/using-decl4/fileentityxrefsgeneric.platform010-clang-17.out b/glean/lang/codemarkup/tests/clang/xrefs/using-decl4/fileentityxrefsgeneric.platform010-clang-17.out new file mode 100644 index 000000000..a3b13f06c --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/using-decl4/fileentityxrefsgeneric.platform010-clang-17.out @@ -0,0 +1,3654 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 450, "length": 3 } + } + }, + "source": { "span": { "start": 490, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 450, "length": 3 } + } + }, + "source": { "span": { "start": 506, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 450, "length": 3 } + } + }, + "source": { "span": { "start": 559, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 450, "length": 3 } + } + }, + "source": { "span": { "start": 747, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 450, "length": 3 } + } + }, + "source": { "span": { "start": 768, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 450, "length": 3 } + } + }, + "source": { "span": { "start": 1201, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 435, "length": 3 } + } + }, + "source": { "span": { "start": 501, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "funfoo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "N1::N2::Foo::Bar" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo::Bar" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 23, + "columnBegin": 3, + "lineEnd": 23, + "columnEnd": 22 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::XXX" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::N3::YYY" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 3, + "lineEnd": 24, + "columnEnd": 20 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 435, "length": 3 } + } + }, + "source": { "span": { "start": 554, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "funfoo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "N1::N2::Foo::Bar" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo::Bar" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 23, + "columnBegin": 3, + "lineEnd": 23, + "columnEnd": 22 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::XXX" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::N3::YYY" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 3, + "lineEnd": 24, + "columnEnd": 20 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 435, "length": 3 } + } + }, + "source": { "span": { "start": 584, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "funfoo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "N1::N2::Foo::Bar" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo::Bar" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 23, + "columnBegin": 3, + "lineEnd": 23, + "columnEnd": 22 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::XXX" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::N3::YYY" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 3, + "lineEnd": 24, + "columnEnd": 20 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 435, "length": 3 } + } + }, + "source": { "span": { "start": 763, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "funfoo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "N1::N2::Foo::Bar" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo::Bar" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 23, + "columnBegin": 3, + "lineEnd": 23, + "columnEnd": 22 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::XXX" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::N3::YYY" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 3, + "lineEnd": 24, + "columnEnd": 20 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 435, "length": 3 } + } + }, + "source": { "span": { "start": 839, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "funfoo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "N1::N2::Foo::Bar" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo::Bar" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 23, + "columnBegin": 3, + "lineEnd": 23, + "columnEnd": 22 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::XXX" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::N3::YYY" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 3, + "lineEnd": 24, + "columnEnd": 20 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 435, "length": 3 } + } + }, + "source": { "span": { "start": 1057, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "funfoo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "N1::N2::Foo::Bar" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo::Bar" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 23, + "columnBegin": 3, + "lineEnd": 23, + "columnEnd": 22 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::XXX" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::N3::YYY" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 3, + "lineEnd": 24, + "columnEnd": 20 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 435, "length": 3 } + } + }, + "source": { "span": { "start": 1196, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "funfoo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "N1::N2::Foo::Bar" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo::Bar" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 23, + "columnBegin": 3, + "lineEnd": 23, + "columnEnd": 22 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::XXX" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::N3::YYY" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 3, + "lineEnd": 24, + "columnEnd": 20 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 435, "length": 3 } + } + }, + "source": { "span": { "start": 1277, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 3, + "lineEnd": 22, + "columnEnd": 15 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "funfoo" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "N1::N2::Foo::Bar" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo::Bar" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 23, + "columnBegin": 3, + "lineEnd": 23, + "columnEnd": 22 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::XXX" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::N3::YYY" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 3, + "lineEnd": 24, + "columnEnd": 20 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "M1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 35, + "columnBegin": 1, + "lineEnd": 35, + "columnEnd": 31 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 603, "length": 2 } + } + }, + "source": { "span": { "start": 712, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "M1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 35, + "columnBegin": 1, + "lineEnd": 35, + "columnEnd": 31 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "ZZZ" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "M1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 35, + "columnBegin": 16, + "lineEnd": 35, + "columnEnd": 28 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 33, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 642, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 33, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 29, + "columnEnd": 1 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 33, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 1177, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 33, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 29, + "columnEnd": 1 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 29, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 247, "length": 2 } + } + }, + "source": { "span": { "start": 580, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "N2" }, + "parent": { "key": { "name": { "key": "N1" } } } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 29, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "XXX" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "N3" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 31 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "N4" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 31 + } + } + } + }, + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "standalone" } } + }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo::Bar" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::N3::YYY" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 27, + "columnBegin": 1, + "lineEnd": 27, + "columnEnd": 30 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 29, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 247, "length": 2 } + } + }, + "source": { "span": { "start": 1181, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "N2" }, + "parent": { "key": { "name": { "key": "N1" } } } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 29, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "XXX" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "N3" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 31 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "N4" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 31 + } + } + } + }, + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "standalone" } } + }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "N1::N2::Foo::Bar" } + }, + { + "name": { "key": "" }, + "type": { "key": "N1::N2::N3::YYY" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 27, + "columnBegin": 1, + "lineEnd": 27, + "columnEnd": 30 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 31 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 308, "length": 2 } + } + }, + "source": { "span": { "start": 369, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "N3" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { "key": { "name": { "key": "N1" } } } + } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 31 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "YYY" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N3" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 16, + "lineEnd": 15, + "columnEnd": 28 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N4", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 31 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 340, "length": 2 } + } + }, + "source": { "span": { "start": 423, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "N4" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { "key": { "name": { "key": "N1" } } } + } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 31 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "callme" } } + }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N4" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 16, + "lineEnd": 16, + "columnEnd": 28 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "XXX", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 260, "length": 3 } + } + }, + "source": { "span": { "start": 523, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "XXX" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "XXX", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 260, "length": 3 } + } + }, + "source": { "span": { "start": 777, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "XXX" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "XXX", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 260, "length": 3 } + } + }, + "source": { "span": { "start": 981, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "XXX" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "XXX", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 260, "length": 3 } + } + }, + "source": { "span": { "start": 995, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "XXX" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "XXX", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 260, "length": 3 } + } + }, + "source": { "span": { "start": 1215, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "XXX" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 13 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "YYY", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 16, + "lineEnd": 15, + "columnEnd": 28 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 320, "length": 3 } + } + }, + "source": { "span": { "start": 373, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "YYY" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N3" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 16, + "lineEnd": 15, + "columnEnd": 28 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/using-decl5/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/using-decl5/fileentityxrefsgeneric.out new file mode 100644 index 000000000..5886df63d --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/using-decl5/fileentityxrefsgeneric.out @@ -0,0 +1,1307 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 445, "length": 3 } + } + }, + "source": { "span": { "start": 734, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { + "name": { "key": "N1" } + } + } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { + "key": "N1::N2::N3::Foo (*)(N1::N2::N3::Foo)" + }, + "parameters": [ + { + "name": { "key": "x" }, + "type": { "key": "N1::N2::N3::Foo" } + } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 3, + "lineEnd": 24, + "columnEnd": 26 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 16, + "lineEnd": 13, + "columnEnd": 28 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 275, "length": 3 } + } + }, + "source": { "span": { "start": 296, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N3" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 16, + "lineEnd": 13, + "columnEnd": 28 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 16, + "lineEnd": 13, + "columnEnd": 28 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 275, "length": 3 } + } + }, + "source": { "span": { "start": 537, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N3" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 16, + "lineEnd": 13, + "columnEnd": 28 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 29, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 525, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 29, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 27, + "columnEnd": 1 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 29, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 674, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 29, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 27, + "columnEnd": 1 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 29, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 726, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 29, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 27, + "columnEnd": 1 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 27, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 247, "length": 2 } + } + }, + "source": { "span": { "start": 529, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "N2" }, + "parent": { "key": { "name": { "key": "N1" } } } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 27, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "N3" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 31 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "signature": { + "key": { + "returns": { + "key": "N1::N2::N3::Foo (*)(N1::N2::N3::Foo)" + }, + "parameters": [ + { + "name": { "key": "x" }, + "type": { "key": "N1::N2::N3::Foo" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 24 + } + } + } + }, + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 27, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 247, "length": 2 } + } + }, + "source": { "span": { "start": 678, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "N2" }, + "parent": { "key": { "name": { "key": "N1" } } } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 27, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "N3" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 31 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "signature": { + "key": { + "returns": { + "key": "N1::N2::N3::Foo (*)(N1::N2::N3::Foo)" + }, + "parameters": [ + { + "name": { "key": "x" }, + "type": { "key": "N1::N2::N3::Foo" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 24 + } + } + } + }, + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 27, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 247, "length": 2 } + } + }, + "source": { "span": { "start": 730, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "N2" }, + "parent": { "key": { "name": { "key": "N1" } } } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 27, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "N3" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 31 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "signature": { + "key": { + "returns": { + "key": "N1::N2::N3::Foo (*)(N1::N2::N3::Foo)" + }, + "parameters": [ + { + "name": { "key": "x" }, + "type": { "key": "N1::N2::N3::Foo" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 24 + } + } + } + }, + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 22, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 31 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 263, "length": 2 } + } + }, + "source": { "span": { "start": 292, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "N3" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { "key": { "name": { "key": "N1" } } } + } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 31 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N3" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 16, + "lineEnd": 13, + "columnEnd": 28 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 31 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 263, "length": 2 } + } + }, + "source": { "span": { "start": 533, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "N3" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { "key": { "name": { "key": "N1" } } } + } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 31 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "N3" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 16, + "lineEnd": 13, + "columnEnd": 28 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "id", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 33, + "columnBegin": 1, + "lineEnd": 33, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 547, "length": 2 } + } + }, + "source": { "span": { "start": 713, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "id" } } }, + "scope": { "global_": { } } + } + }, + "signature": { + "key": { + "returns": { "key": "N1::N2::N3::Foo" }, + "parameters": [ + { + "name": { "key": "x" }, + "type": { "key": "N1::N2::N3::Foo" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 33, + "columnBegin": 1, + "lineEnd": 33, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "id", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 33, + "columnBegin": 1, + "lineEnd": 33, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 547, "length": 2 } + } + }, + "source": { "span": { "start": 770, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "id" } } }, + "scope": { "global_": { } } + } + }, + "signature": { + "key": { + "returns": { "key": "N1::N2::N3::Foo" }, + "parameters": [ + { + "name": { "key": "x" }, + "type": { "key": "N1::N2::N3::Foo" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 33, + "columnBegin": 1, + "lineEnd": 33, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/using-decl6/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/using-decl6/fileentityxrefsgeneric.out new file mode 100644 index 000000000..e2d8e56ab --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/using-decl6/fileentityxrefsgeneric.out @@ -0,0 +1,529 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 22, + "lineEnd": 14, + "columnEnd": 34 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 296, "length": 3 } + } + }, + "source": { "span": { "start": 376, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 22, + "lineEnd": 14, + "columnEnd": 34 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 12 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 241, "length": 3 } + } + }, + "source": { "span": { "start": 367, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "enum_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 12 + } + } + }, + "enumerators": [ + { + "key": { + "name": { "key": "X" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 12 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 11, + "lineEnd": 10, + "columnEnd": 11 + } + } + } + ] + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 363, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "Foo" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 12 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 263, "length": 2 } + } + }, + "source": { "span": { "start": 372, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N2" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 22, + "lineEnd": 14, + "columnEnd": 34 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 263, "length": 2 } + } + }, + "source": { "span": { "start": 401, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N2" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 16, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "Bar" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 22, + "lineEnd": 14, + "columnEnd": 34 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "bar" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 34 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 330, "length": 3 } + } + }, + "source": { "span": { "start": 405, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "bar" } } }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 22, + "lineEnd": 15, + "columnEnd": 34 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/using-decl7/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/using-decl7/fileentityxrefsgeneric.out new file mode 100644 index 000000000..b4f62b914 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/using-decl7/fileentityxrefsgeneric.out @@ -0,0 +1,527 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 280, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 22, + "lineEnd": 10, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 21, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 349, "length": 2 } + } + }, + "source": { "span": { "start": 427, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N2" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 19, + "columnBegin": 1, + "lineEnd": 21, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 13 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 23, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 382, "length": 2 } + } + }, + "source": { "span": { "start": 442, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N3" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 23, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N3" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 14 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 22, + "lineEnd": 10, + "columnEnd": 34 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 262, "length": 3 } + } + }, + "source": { "span": { "start": 284, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 22, + "lineEnd": 10, + "columnEnd": 34 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 359, "length": 3 } + } + }, + "source": { "span": { "start": 431, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "scope": { + "namespace_": { "key": { "name": { "key": "N2" } } } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "int" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 14 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 392, "length": 3 } + } + }, + "source": { "span": { "start": 446, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "foo" } } }, + "scope": { + "namespace_": { "key": { "name": { "key": "N3" } } } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "bool" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 14 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 31, + "columnBegin": 31, + "lineEnd": 31, + "columnEnd": 33 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 484, "length": 1 } + } + }, + "source": { "span": { "start": 495, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "bar" } } }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N4" } } + } + } + } + } + } + } + }, + "type": { "key": "T" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 31, + "columnBegin": 31, + "lineEnd": 31, + "columnEnd": 33 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/using-directive1/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/using-directive1/fileentityxrefsgeneric.out new file mode 100644 index 000000000..3907287dd --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/using-directive1/fileentityxrefsgeneric.out @@ -0,0 +1,3819 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "IN2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 26, + "columnBegin": 1, + "lineEnd": 26, + "columnEnd": 27 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 433, "length": 3 } + } + }, + "source": { "span": { "start": 692, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "IN2" }, + "parent": { "key": { "name": { "key": "N1" } } } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 26, + "columnBegin": 1, + "lineEnd": 26, + "columnEnd": 27 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f6" } } + }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "IN2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 26, + "columnBegin": 17, + "lineEnd": 26, + "columnEnd": 24 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 487, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 520, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 558, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 595, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 639, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 688, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 752, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 809, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 854, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 899, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 1, + "lineEnd": 45, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 465, "length": 2 } + } + }, + "source": { "span": { "start": 831, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N2" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 1, + "lineEnd": 45, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes1" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no1" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 35, + "columnBegin": 1, + "lineEnd": 35, + "columnEnd": 19 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes2" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 36, + "columnBegin": 1, + "lineEnd": 36, + "columnEnd": 15 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no2" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 37, + "columnBegin": 1, + "lineEnd": 37, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes3" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 38, + "columnBegin": 1, + "lineEnd": 38, + "columnEnd": 15 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no3" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 39, + "columnBegin": 1, + "lineEnd": 39, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes4" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 40, + "columnBegin": 1, + "lineEnd": 40, + "columnEnd": 22 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no4" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 41, + "columnBegin": 1, + "lineEnd": 41, + "columnEnd": 25 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes5" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 42, + "columnBegin": 1, + "lineEnd": 42, + "columnEnd": 20 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no5" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 43, + "columnBegin": 1, + "lineEnd": 43, + "columnEnd": 23 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 1, + "lineEnd": 45, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 465, "length": 2 } + } + }, + "source": { "span": { "start": 876, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N2" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 1, + "lineEnd": 45, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes1" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 34, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no1" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 35, + "columnBegin": 1, + "lineEnd": 35, + "columnEnd": 19 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes2" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 36, + "columnBegin": 1, + "lineEnd": 36, + "columnEnd": 15 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no2" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 37, + "columnBegin": 1, + "lineEnd": 37, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes3" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 38, + "columnBegin": 1, + "lineEnd": 38, + "columnEnd": 15 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no3" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 39, + "columnBegin": 1, + "lineEnd": 39, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes4" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 40, + "columnBegin": 1, + "lineEnd": 40, + "columnEnd": 22 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no4" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 41, + "columnBegin": 1, + "lineEnd": 41, + "columnEnd": 25 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes5" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 42, + "columnBegin": 1, + "lineEnd": 42, + "columnEnd": 20 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no5" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 43, + "columnBegin": 1, + "lineEnd": 43, + "columnEnd": 23 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 241, "length": 2 } + } + }, + "source": { "span": { "start": 524, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f1" } } }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "int" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 241, "length": 2 } + } + }, + "source": { "span": { "start": 756, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f1" } } }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "int" } } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 254, "length": 2 } + } + }, + "source": { "span": { "start": 643, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f1" } } }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 13, + "lineEnd": 17, + "columnEnd": 32 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 314, "length": 2 } + } + }, + "source": { "span": { "start": 562, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f3" } } }, + "scope": { + "namespace_": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 13, + "lineEnd": 17, + "columnEnd": 32 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 13, + "lineEnd": 17, + "columnEnd": 32 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 314, "length": 2 } + } + }, + "source": { "span": { "start": 813, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f3" } } }, + "scope": { + "namespace_": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 13, + "lineEnd": 17, + "columnEnd": 32 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 13, + "lineEnd": 17, + "columnEnd": 32 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 314, "length": 2 } + } + }, + "source": { "span": { "start": 858, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "function_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f3" } } }, + "scope": { + "namespace_": { + "key": { + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 13, + "lineEnd": 17, + "columnEnd": 32 + } + } + }, + "isInline": false + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f5", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 8 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 416, "length": 2 } + } + }, + "source": { "span": { "start": 599, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f5" } } }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "signature": { + "key": { "returns": { "key": "int" }, "parameters": [ ] } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 8 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f5", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 8 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 416, "length": 2 } + } + }, + "source": { "span": { "start": 903, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f5" } } }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "signature": { + "key": { "returns": { "key": "int" }, "parameters": [ ] } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 8 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f6", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 26, + "columnBegin": 17, + "lineEnd": 26, + "columnEnd": 24 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 443, "length": 2 } + } + }, + "source": { "span": { "start": 672, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f6" } } }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "IN2" }, + "parent": { "key": { "name": { "key": "N1" } } } + } + } + } + } + }, + "signature": { + "key": { "returns": { "key": "int" }, "parameters": [ ] } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 26, + "columnBegin": 17, + "lineEnd": 26, + "columnEnd": 24 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f6", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 26, + "columnBegin": 17, + "lineEnd": 26, + "columnEnd": 24 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 443, "length": 2 } + } + }, + "source": { "span": { "start": 697, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f6" } } }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "IN2" }, + "parent": { "key": { "name": { "key": "N1" } } } + } + } + } + } + }, + "signature": { + "key": { "returns": { "key": "int" }, "parameters": [ ] } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 26, + "columnBegin": 17, + "lineEnd": 26, + "columnEnd": 24 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/using-directive2/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/using-directive2/fileentityxrefsgeneric.out new file mode 100644 index 000000000..f35bac983 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/using-directive2/fileentityxrefsgeneric.out @@ -0,0 +1,1612 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N0", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 487, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N0" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 20, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N0" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "int" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N0" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "const char *" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 20 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f1" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N0" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ + { + "name": { "key": "" }, + "type": { "key": "bool" } + } + ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 12 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "f2" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N0" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "int" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 8 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "parent": { + "key": { "name": { "key": "N0" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 17, + "columnEnd": 58 + } + } + } + }, + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "IN1" }, + "parent": { + "key": { "name": { "key": "N0" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 18, + "columnEnd": 34 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 465, "length": 2 } + } + }, + "source": { "span": { "start": 527, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 465, "length": 2 } + } + }, + "source": { "span": { "start": 560, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 465, "length": 2 } + } + }, + "source": { "span": { "start": 598, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 465, "length": 2 } + } + }, + "source": { "span": { "start": 635, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 465, "length": 2 } + } + }, + "source": { "span": { "start": 679, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 465, "length": 2 } + } + }, + "source": { "span": { "start": 728, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 465, "length": 2 } + } + }, + "source": { "span": { "start": 792, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 465, "length": 2 } + } + }, + "source": { "span": { "start": 849, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 465, "length": 2 } + } + }, + "source": { "span": { "start": 894, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 465, "length": 2 } + } + }, + "source": { "span": { "start": 939, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 30, + "columnBegin": 1, + "lineEnd": 34, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 36, + "columnBegin": 1, + "lineEnd": 51, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 505, "length": 2 } + } + }, + "source": { "span": { "start": 871, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N2" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 36, + "columnBegin": 1, + "lineEnd": 51, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes1" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 40, + "columnBegin": 1, + "lineEnd": 40, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no1" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 41, + "columnBegin": 1, + "lineEnd": 41, + "columnEnd": 19 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes2" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 42, + "columnBegin": 1, + "lineEnd": 42, + "columnEnd": 15 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no2" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 43, + "columnBegin": 1, + "lineEnd": 43, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes3" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 44, + "columnBegin": 1, + "lineEnd": 44, + "columnEnd": 15 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no3" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 45, + "columnBegin": 1, + "lineEnd": 45, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes4" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 46, + "columnBegin": 1, + "lineEnd": 46, + "columnEnd": 22 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no4" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 47, + "columnBegin": 1, + "lineEnd": 47, + "columnEnd": 25 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes5" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 48, + "columnBegin": 1, + "lineEnd": 48, + "columnEnd": 20 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no5" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 49, + "columnBegin": 1, + "lineEnd": 49, + "columnEnd": 23 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 36, + "columnBegin": 1, + "lineEnd": 51, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 505, "length": 2 } + } + }, + "source": { "span": { "start": 916, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N2" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 36, + "columnBegin": 1, + "lineEnd": 51, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes1" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 40, + "columnBegin": 1, + "lineEnd": 40, + "columnEnd": 16 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no1" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 41, + "columnBegin": 1, + "lineEnd": 41, + "columnEnd": 19 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes2" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 42, + "columnBegin": 1, + "lineEnd": 42, + "columnEnd": 15 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no2" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 43, + "columnBegin": 1, + "lineEnd": 43, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes3" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 44, + "columnBegin": 1, + "lineEnd": 44, + "columnEnd": 15 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no3" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 45, + "columnBegin": 1, + "lineEnd": 45, + "columnEnd": 18 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes4" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 46, + "columnBegin": 1, + "lineEnd": 46, + "columnEnd": 22 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no4" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 47, + "columnBegin": 1, + "lineEnd": 47, + "columnEnd": 25 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "yes5" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 48, + "columnBegin": 1, + "lineEnd": 48, + "columnEnd": 20 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "no5" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N2" } } + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 49, + "columnBegin": 1, + "lineEnd": 49, + "columnEnd": 23 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f6", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 26, + "columnBegin": 17, + "lineEnd": 26, + "columnEnd": 24 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 443, "length": 2 } + } + }, + "source": { "span": { "start": 712, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f6" } } }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "IN2" }, + "parent": { "key": { "name": { "key": "N0" } } } + } + } + } + } + }, + "signature": { + "key": { "returns": { "key": "int" }, "parameters": [ ] } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 26, + "columnBegin": 17, + "lineEnd": 26, + "columnEnd": 24 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "f6", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 26, + "columnBegin": 17, + "lineEnd": 26, + "columnEnd": 24 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 443, "length": 2 } + } + }, + "source": { "span": { "start": 737, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f6" } } }, + "scope": { + "namespace_": { + "key": { + "name": { "key": "IN2" }, + "parent": { "key": { "name": { "key": "N0" } } } + } + } + } + } + }, + "signature": { + "key": { "returns": { "key": "int" }, "parameters": [ ] } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 26, + "columnBegin": 17, + "lineEnd": 26, + "columnEnd": 24 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/using-directive3/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/using-directive3/fileentityxrefsgeneric.out new file mode 100644 index 000000000..200bbc9a3 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/using-directive3/fileentityxrefsgeneric.out @@ -0,0 +1,207 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N0", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 303, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N0" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "N1" }, + "parent": { + "key": { "name": { "key": "N0" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 1 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N0", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 382, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N0" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "N1" }, + "parent": { + "key": { "name": { "key": "N0" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 1 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "X2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 360, "length": 2 } + } + }, + "source": { "span": { "start": 422, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "X2" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/using-directive5/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/using-directive5/fileentityxrefsgeneric.out new file mode 100644 index 000000000..5d9a01f5c --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/using-directive5/fileentityxrefsgeneric.out @@ -0,0 +1,221 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 260, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 27, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 278, "length": 2 } + } + }, + "source": { "span": { "start": 316, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N2" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 1, + "lineEnd": 27, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "N21" }, + "parent": { + "key": { "name": { "key": "N2" } } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 1, + "lineEnd": 26, + "columnEnd": 1 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "T", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 244, "length": 1 } + } + }, + "source": { "span": { "start": 264, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + }, + "bases": [ ], + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/using-directive6/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/using-directive6/fileentityxrefsgeneric.out new file mode 100644 index 000000000..8293430ad --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/using-directive6/fileentityxrefsgeneric.out @@ -0,0 +1,82 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 270, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "record_": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/using-enum1/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/using-enum1/fileentityxrefsgeneric.out new file mode 100644 index 000000000..5af56d8c6 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/using-enum1/fileentityxrefsgeneric.out @@ -0,0 +1,660 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 324, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "X" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 21 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "Y" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 27 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 369, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "X" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 21 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "Y" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 27 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 385, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "X" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 21 + } + } + } + }, + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "Y" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 27 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "X1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 10, + "lineEnd": 11, + "columnEnd": 11 + } + } + }, + "source": { "span": { "start": 373, "length": 2 } } + }, + "entity": { + "cxx": { + "enumerator": { + "key": { + "name": { "key": "X1" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "X" }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 21 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 10, + "lineEnd": 11, + "columnEnd": 11 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Y", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 27 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 271, "length": 1 } + } + }, + "source": { "span": { "start": 389, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "enum_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "Y" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 27 + } + } + }, + "enumerators": [ + { + "key": { + "name": { "key": "Y1" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "Y" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 27 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 16, + "lineEnd": 12, + "columnEnd": 17 + } + } + }, + { + "key": { + "name": { "key": "Y2" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "Y" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 27 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 20, + "lineEnd": 12, + "columnEnd": 21 + } + } + }, + { + "key": { + "name": { "key": "Y3" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "Y" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 27 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 24, + "lineEnd": 12, + "columnEnd": 25 + } + } + } + ] + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Y1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 16, + "lineEnd": 12, + "columnEnd": 17 + } + } + }, + "source": { "span": { "start": 340, "length": 2 } } + }, + "entity": { + "cxx": { + "enumerator": { + "key": { + "name": { "key": "Y1" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "Y" }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 27 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 16, + "lineEnd": 12, + "columnEnd": 17 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Y1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 16, + "lineEnd": 12, + "columnEnd": 17 + } + } + }, + "source": { "span": { "start": 404, "length": 2 } } + }, + "entity": { + "cxx": { + "enumerator": { + "key": { + "name": { "key": "Y1" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "Y" }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "isScoped": true, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 27 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 16, + "lineEnd": 12, + "columnEnd": 17 + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/using-enum2/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/using-enum2/fileentityxrefsgeneric.out new file mode 100644 index 000000000..a839eac74 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/using-enum2/fileentityxrefsgeneric.out @@ -0,0 +1,151 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 279, "length": 2 } + } + }, + "source": { "span": { "start": 428, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "N2" }, + "parent": { "key": { "name": { "key": "N1" } } } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 15, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "namespace_": { + "key": { + "name": { + "key": { + "name": { "key": "N3" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { + "key": { "name": { "key": "N1" } } + } + } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 1 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 294, "length": 2 } + } + }, + "source": { "span": { "start": 432, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "N3" }, + "parent": { + "key": { + "name": { "key": "N2" }, + "parent": { "key": { "name": { "key": "N1" } } } + } + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 14, + "columnEnd": 1 + } + } + }, + "members": { "key": [ ] } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/using-enum3/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/using-enum3/fileentityxrefsgeneric.out new file mode 100644 index 000000000..cf62cf98c --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/using-enum3/fileentityxrefsgeneric.out @@ -0,0 +1,2077 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 10, + "lineEnd": 11, + "columnEnd": 10 + } + } + }, + "source": { "span": { "start": 513, "length": 1 } } + }, + "entity": { + "cxx": { + "enumerator": { + "key": { + "name": { "key": "A" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 10, + "lineEnd": 11, + "columnEnd": 10 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 10, + "lineEnd": 11, + "columnEnd": 10 + } + } + }, + "source": { "span": { "start": 594, "length": 1 } } + }, + "entity": { + "cxx": { + "enumerator": { + "key": { + "name": { "key": "A" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { "key": { "name": { "key": "N1" } } } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 10, + "lineEnd": 11, + "columnEnd": 10 + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "E", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 242, "length": 1 } + } + }, + "source": { "span": { "start": 307, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "enum_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + }, + "enumerators": [ + { + "key": { + "name": { "key": "A" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 10, + "lineEnd": 11, + "columnEnd": 10 + } + } + }, + { + "key": { + "name": { "key": "B" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 13, + "lineEnd": 11, + "columnEnd": 13 + } + } + }, + { + "key": { + "name": { "key": "C" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 16, + "lineEnd": 11, + "columnEnd": 16 + } + } + } + ] + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "E", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 242, "length": 1 } + } + }, + "source": { "span": { "start": 400, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "enum_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + }, + "enumerators": [ + { + "key": { + "name": { "key": "A" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 10, + "lineEnd": 11, + "columnEnd": 10 + } + } + }, + { + "key": { + "name": { "key": "B" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 13, + "lineEnd": 11, + "columnEnd": 13 + } + } + }, + { + "key": { + "name": { "key": "C" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 16, + "lineEnd": 11, + "columnEnd": 16 + } + } + } + ] + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "E", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 242, "length": 1 } + } + }, + "source": { "span": { "start": 526, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "enum_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + }, + "enumerators": [ + { + "key": { + "name": { "key": "A" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 10, + "lineEnd": 11, + "columnEnd": 10 + } + } + }, + { + "key": { + "name": { "key": "B" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 13, + "lineEnd": 11, + "columnEnd": 13 + } + } + }, + { + "key": { + "name": { "key": "C" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 16, + "lineEnd": 11, + "columnEnd": 16 + } + } + } + ] + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "E", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 242, "length": 1 } + } + }, + "source": { "span": { "start": 581, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "enum_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + }, + "enumerators": [ + { + "key": { + "name": { "key": "A" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 10, + "lineEnd": 11, + "columnEnd": 10 + } + } + }, + { + "key": { + "name": { "key": "B" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 13, + "lineEnd": 11, + "columnEnd": 13 + } + } + }, + { + "key": { + "name": { "key": "C" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 16, + "lineEnd": 11, + "columnEnd": 16 + } + } + } + ] + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "E", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 242, "length": 1 } + } + }, + "source": { "span": { "start": 670, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "enum_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + }, + "enumerators": [ + { + "key": { + "name": { "key": "A" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 10, + "lineEnd": 11, + "columnEnd": 10 + } + } + }, + { + "key": { + "name": { "key": "B" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 13, + "lineEnd": 11, + "columnEnd": 13 + } + } + }, + { + "key": { + "name": { "key": "C" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 16, + "lineEnd": 11, + "columnEnd": 16 + } + } + } + ] + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "E", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 242, "length": 1 } + } + }, + "source": { "span": { "start": 725, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "enum_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + }, + "enumerators": [ + { + "key": { + "name": { "key": "A" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 10, + "lineEnd": 11, + "columnEnd": 10 + } + } + }, + { + "key": { + "name": { "key": "B" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 13, + "lineEnd": 11, + "columnEnd": 13 + } + } + }, + { + "key": { + "name": { "key": "C" }, + "enumeration": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 16, + "lineEnd": 11, + "columnEnd": 16 + } + } + } + ] + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 293, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 303, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 396, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 419, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 509, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 522, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 577, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 590, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 666, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 721, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "enum_": { + "key": { + "name": { + "key": { + "name": { "key": "E" }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "isScoped": false, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 18 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N21", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 271, "length": 3 } + } + }, + "source": { "span": { "start": 655, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N21" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 24, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N21" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 1, + "lineEnd": 22, + "columnEnd": 1 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N22", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 26, + "columnBegin": 1, + "lineEnd": 35, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 383, "length": 3 } + } + }, + "source": { "span": { "start": 744, "length": 3 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N22" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 26, + "columnBegin": 1, + "lineEnd": 35, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N22" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 31, + "columnBegin": 1, + "lineEnd": 33, + "columnEnd": 1 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/using-lambda1/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/using-lambda1/fileentityxrefsgeneric.out new file mode 100644 index 000000000..616619e5b --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/using-lambda1/fileentityxrefsgeneric.out @@ -0,0 +1,608 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 314, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 20 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "N1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 231, "length": 2 } + } + }, + "source": { "span": { "start": 402, "length": 2 } } + }, + "entity": { + "cxx": { + "defn": { + "namespace_": { + "key": { + "declaration": { + "key": { + "name": { "key": { "name": { "key": "N1" } } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 1 + } + } + }, + "members": { + "key": [ + { + "function_": { + "key": { + "name": { + "key": { + "name": { + "key": { "name": { "key": "foo" } } + }, + "scope": { + "namespace_": { + "key": { "name": { "key": "N1" } } + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 20 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 3, + "lineEnd": 19, + "columnEnd": 3 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 280, "length": 3 } + } + }, + "source": { "span": { "start": 336, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "g" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "(lambda)" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 3, + "lineEnd": 19, + "columnEnd": 3 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 3, + "lineEnd": 27, + "columnEnd": 3 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 364, "length": 3 } + } + }, + "source": { "span": { "start": 424, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "h" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "(lambda)" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 3, + "lineEnd": 27, + "columnEnd": 3 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 3, + "lineEnd": 27, + "columnEnd": 3 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 364, "length": 3 } + } + }, + "source": { "span": { "start": 434, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "bar" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "h" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "(lambda)" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 3, + "lineEnd": 27, + "columnEnd": 3 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "operator()", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 18, + "lineEnd": 19, + "columnEnd": 3 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 286, "length": 1 } + } + }, + "source": { "span": { "start": 339, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "operator_": "operator()" } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "" }, + "scope": { + "local": { + "key": { + "name": { + "key": { "name": { "key": "g" } } + }, + "scope": { "global_": { } } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { "returns": { "key": "void" }, "parameters": [ ] } + }, + "method": { + "isVirtual": false, + "isConst": true, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 18, + "lineEnd": 19, + "columnEnd": 3 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "operator()", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 22, + "lineEnd": 27, + "columnEnd": 3 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 370, "length": 1 } + } + }, + "source": { "span": { "start": 427, "length": 3 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "operator_": "operator()" } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "" }, + "scope": { + "local": { + "key": { + "name": { + "key": { "name": { "key": "h" } } + }, + "scope": { "global_": { } } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "auto" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "auto" } } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": true, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 22, + "lineEnd": 27, + "columnEnd": 3 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "operator()", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 22, + "lineEnd": 27, + "columnEnd": 3 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 370, "length": 1 } + } + }, + "source": { "span": { "start": 437, "length": 4 } } + }, + "entity": { + "cxx": { + "decl": { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "operator_": "operator()" } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "" }, + "scope": { + "local": { + "key": { + "name": { + "key": { "name": { "key": "h" } } + }, + "scope": { "global_": { } } + } + } + } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "auto" }, + "parameters": [ + { "name": { "key": "" }, "type": { "key": "auto" } } + ] + } + }, + "method": { + "isVirtual": false, + "isConst": true, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 24, + "columnBegin": 22, + "lineEnd": 27, + "columnEnd": 3 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/var1/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/var1/fileentityxrefsgeneric.out new file mode 100644 index 000000000..778f623c5 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/var1/fileentityxrefsgeneric.out @@ -0,0 +1,1469 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "T", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 304, "length": 1 } + } + }, + "source": { "span": { "start": 482, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m1" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 3, + "lineEnd": 16, + "columnEnd": 15 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m2" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 1, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 3, + "lineEnd": 17, + "columnEnd": 22 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m3" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "const int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 2, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 29 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 24, + "columnEnd": 3 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "T", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 304, "length": 1 } + } + }, + "source": { "span": { "start": 491, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m1" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 3, + "lineEnd": 16, + "columnEnd": 15 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m2" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 1, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 3, + "lineEnd": 17, + "columnEnd": 22 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m3" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "const int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 2, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 29 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 24, + "columnEnd": 3 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "T", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 304, "length": 1 } + } + }, + "source": { "span": { "start": 500, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m1" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 3, + "lineEnd": 16, + "columnEnd": 15 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m2" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 1, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 3, + "lineEnd": 17, + "columnEnd": 22 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m3" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "const int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 2, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 29 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 24, + "columnEnd": 3 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "m1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 3, + "lineEnd": 16, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 321, "length": 2 } + } + }, + "source": { "span": { "start": 405, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m1" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 3, + "lineEnd": 16, + "columnEnd": 15 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "m1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 3, + "lineEnd": 16, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 321, "length": 2 } + } + }, + "source": { "span": { "start": 485, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m1" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 3, + "lineEnd": 16, + "columnEnd": 15 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "m2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 3, + "lineEnd": 17, + "columnEnd": 22 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 345, "length": 2 } + } + }, + "source": { "span": { "start": 413, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m2" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 1, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 3, + "lineEnd": 17, + "columnEnd": 22 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "m2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 3, + "lineEnd": 17, + "columnEnd": 22 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 345, "length": 2 } + } + }, + "source": { "span": { "start": 494, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m2" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 1, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 3, + "lineEnd": 17, + "columnEnd": 22 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "m3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 29 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 372, "length": 2 } + } + }, + "source": { "span": { "start": 421, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m3" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "const int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 2, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 29 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "m3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 29 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 372, "length": 2 } + } + }, + "source": { "span": { "start": 503, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m3" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "const int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 2, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 29 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "v1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 9, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 232, "length": 2 } + } + }, + "source": { "span": { "start": 452, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "v1" }, + "scope": { "global_": { } } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 9, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "v2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 6 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 240, "length": 2 } + } + }, + "source": { "span": { "start": 458, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "v2" }, + "scope": { "global_": { } } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 6 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "v3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 255, "length": 2 } + } + }, + "source": { "span": { "start": 464, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "v3" }, + "scope": { "global_": { } } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 1, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "v4", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 270, "length": 2 } + } + }, + "source": { "span": { "start": 470, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "v4" }, + "scope": { "global_": { } } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 1, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "v5", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 20 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 288, "length": 2 } + } + }, + "source": { "span": { "start": 476, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "v5" }, + "scope": { "global_": { } } + } + }, + "type": { "key": "const int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 2, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 20 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 27, + "columnBegin": 8, + "lineEnd": 27, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 444, "length": 2 } + } + }, + "source": { "span": { "start": 520, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x1" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "g" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "int" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 27, + "columnBegin": 8, + "lineEnd": 27, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 37, + "columnBegin": 3, + "lineEnd": 37, + "columnEnd": 8 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 514, "length": 2 } + } + }, + "source": { "span": { "start": 526, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x2" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "g" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "int" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 37, + "columnBegin": 3, + "lineEnd": 37, + "columnEnd": 8 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/var1/fileentityxrefsgeneric.platform010-clang-17.out b/glean/lang/codemarkup/tests/clang/xrefs/var1/fileentityxrefsgeneric.platform010-clang-17.out new file mode 100644 index 000000000..5e0f932cf --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/var1/fileentityxrefsgeneric.platform010-clang-17.out @@ -0,0 +1,1469 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "T", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 304, "length": 1 } + } + }, + "source": { "span": { "start": 482, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m1" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 3, + "lineEnd": 16, + "columnEnd": 15 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m2" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 1, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 3, + "lineEnd": 17, + "columnEnd": 22 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m3" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "const int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 2, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 29 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 24, + "columnEnd": 3 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "T", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 304, "length": 1 } + } + }, + "source": { "span": { "start": 491, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m1" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 3, + "lineEnd": 16, + "columnEnd": 15 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m2" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 1, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 3, + "lineEnd": 17, + "columnEnd": 22 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m3" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "const int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 2, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 29 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 24, + "columnEnd": 3 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "T", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 304, "length": 1 } + } + }, + "source": { "span": { "start": 500, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 15, + "columnBegin": 1, + "lineEnd": 25, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m1" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 3, + "lineEnd": 16, + "columnEnd": 15 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m2" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 1, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 3, + "lineEnd": 17, + "columnEnd": 22 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m3" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "const int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 2, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 29 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 20, + "columnBegin": 3, + "lineEnd": 24, + "columnEnd": 3 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "m1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 3, + "lineEnd": 16, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 321, "length": 2 } + } + }, + "source": { "span": { "start": 405, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m1" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 3, + "lineEnd": 16, + "columnEnd": 15 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "m1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 3, + "lineEnd": 16, + "columnEnd": 15 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 321, "length": 2 } + } + }, + "source": { "span": { "start": 485, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m1" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 16, + "columnBegin": 3, + "lineEnd": 16, + "columnEnd": 15 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "m2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 3, + "lineEnd": 17, + "columnEnd": 22 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 345, "length": 2 } + } + }, + "source": { "span": { "start": 413, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m2" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 1, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 3, + "lineEnd": 17, + "columnEnd": 22 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "m2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 3, + "lineEnd": 17, + "columnEnd": 22 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 345, "length": 2 } + } + }, + "source": { "span": { "start": 494, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m2" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 1, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 17, + "columnBegin": 3, + "lineEnd": 17, + "columnEnd": 22 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "m3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 29 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 372, "length": 2 } + } + }, + "source": { "span": { "start": 421, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m3" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "const int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 2, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 29 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "m3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 29 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 372, "length": 2 } + } + }, + "source": { "span": { "start": 503, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m3" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "const int" }, + "kind": { + "global_": { + "kind": 2, + "attribute": 2, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 18, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 29 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "v1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 9, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 232, "length": 2 } + } + }, + "source": { "span": { "start": 452, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "v1" }, + "scope": { "global_": { } } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": false + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 9, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "v2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 6 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 240, "length": 2 } + } + }, + "source": { "span": { "start": 458, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "v2" }, + "scope": { "global_": { } } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 1, + "lineEnd": 10, + "columnEnd": 6 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "v3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 255, "length": 2 } + } + }, + "source": { "span": { "start": 464, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "v3" }, + "scope": { "global_": { } } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 1, + "attribute": 0, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 1, + "lineEnd": 11, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "v4", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 270, "length": 2 } + } + }, + "source": { "span": { "start": 470, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "v4" }, + "scope": { "global_": { } } + } + }, + "type": { "key": "int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 1, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 1, + "lineEnd": 12, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "v5", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 20 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 288, "length": 2 } + } + }, + "source": { "span": { "start": 476, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "v5" }, + "scope": { "global_": { } } + } + }, + "type": { "key": "const int" }, + "kind": { + "global_": { + "kind": 0, + "attribute": 2, + "definition": true + } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 13, + "columnBegin": 1, + "lineEnd": 13, + "columnEnd": 20 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 27, + "columnBegin": 8, + "lineEnd": 27, + "columnEnd": 13 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 444, "length": 2 } + } + }, + "source": { "span": { "start": 520, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x1" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "g" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "int" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 27, + "columnBegin": 8, + "lineEnd": 27, + "columnEnd": 13 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 37, + "columnBegin": 3, + "lineEnd": 37, + "columnEnd": 8 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 514, "length": 2 } + } + }, + "source": { "span": { "start": 526, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x2" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "g" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "int" }, + "kind": { "local": { "kind": 0, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 37, + "columnBegin": 3, + "lineEnd": 37, + "columnEnd": 8 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/clang/xrefs/var2/fileentityxrefsgeneric.out b/glean/lang/codemarkup/tests/clang/xrefs/var2/fileentityxrefsgeneric.out new file mode 100644 index 000000000..4983bee98 --- /dev/null +++ b/glean/lang/codemarkup/tests/clang/xrefs/var2/fileentityxrefsgeneric.out @@ -0,0 +1,1865 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "T", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 228, "length": 1 } + } + }, + "source": { "span": { "start": 327, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m1" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { "field": { "mutable_": false } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 8 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m2" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "field": { "mutable_": false, "bitsize": 5 } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 12 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m3" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { "field": { "mutable_": true } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 3 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "T", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 228, "length": 1 } + } + }, + "source": { "span": { "start": 332, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m1" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { "field": { "mutable_": false } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 8 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m2" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "field": { "mutable_": false, "bitsize": 5 } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 12 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m3" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { "field": { "mutable_": true } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 3 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "T", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 228, "length": 1 } + } + }, + "source": { "span": { "start": 394, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m1" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { "field": { "mutable_": false } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 8 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m2" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "field": { "mutable_": false, "bitsize": 5 } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 12 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m3" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { "field": { "mutable_": true } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 3 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "T", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 1 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 228, "length": 1 } + } + }, + "source": { "span": { "start": 404, "length": 1 } } + }, + "entity": { + "cxx": { + "defn": { + "record_": { + "key": { + "declaration": { + "key": { + "name": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "kind": { "struct_": { } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 9, + "columnBegin": 1, + "lineEnd": 19, + "columnEnd": 1 + } + } + }, + "bases": [ ], + "members": { + "key": [ + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m1" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { "field": { "mutable_": false } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 8 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m2" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { + "field": { "mutable_": false, "bitsize": 5 } + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 12 + } + } + } + }, + { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m3" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { "field": { "mutable_": true } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + }, + { + "function_": { + "key": { + "name": { + "key": { + "name": { "key": { "name": { "key": "f" } } }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "signature": { + "key": { + "returns": { "key": "void" }, + "parameters": [ ] + } + }, + "method": { + "isVirtual": false, + "isConst": false, + "isVolatile": false, + "refQualifier": 0 + }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 14, + "columnBegin": 3, + "lineEnd": 18, + "columnEnd": 3 + } + } + } + } + ] + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "m1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 8 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 238, "length": 2 } + } + }, + "source": { "span": { "start": 292, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m1" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { "field": { "mutable_": false } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 8 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "m1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 8 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 238, "length": 2 } + } + }, + "source": { "span": { "start": 344, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m1" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { "field": { "mutable_": false } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 8 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "m1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 8 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 238, "length": 2 } + } + }, + "source": { "span": { "start": 369, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m1" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { "field": { "mutable_": false } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 8 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "m1", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 8 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 238, "length": 2 } + } + }, + "source": { "span": { "start": 397, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m1" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { "field": { "mutable_": false } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 10, + "columnBegin": 3, + "lineEnd": 10, + "columnEnd": 8 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "m2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 12 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 248, "length": 2 } + } + }, + "source": { "span": { "start": 300, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m2" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { "field": { "mutable_": false, "bitsize": 5 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 12 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "m2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 12 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 248, "length": 2 } + } + }, + "source": { "span": { "start": 352, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m2" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { "field": { "mutable_": false, "bitsize": 5 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 12 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "m2", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 12 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 248, "length": 2 } + } + }, + "source": { "span": { "start": 378, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m2" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { "field": { "mutable_": false, "bitsize": 5 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 11, + "columnBegin": 3, + "lineEnd": 11, + "columnEnd": 12 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "m3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 270, "length": 2 } + } + }, + "source": { "span": { "start": 308, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m3" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { "field": { "mutable_": true } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "m3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 270, "length": 2 } + } + }, + "source": { "span": { "start": 360, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m3" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { "field": { "mutable_": true } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "m3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 270, "length": 2 } + } + }, + "source": { "span": { "start": 387, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m3" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { "field": { "mutable_": true } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "m3", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 270, "length": 2 } + } + }, + "source": { "span": { "start": 407, "length": 2 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "m3" }, + "scope": { + "recordWithAccess": { + "record": { + "key": { + "name": { "key": "T" }, + "scope": { "global_": { } } + } + }, + "access": 0 + } + } + } + }, + "type": { "key": "int" }, + "kind": { "field": { "mutable_": true } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 12, + "columnBegin": 3, + "lineEnd": 12, + "columnEnd": 16 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 8, + "lineEnd": 21, + "columnEnd": 10 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 329, "length": 1 } + } + }, + "source": { "span": { "start": 342, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "g" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "T" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 8, + "lineEnd": 21, + "columnEnd": 10 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 8, + "lineEnd": 21, + "columnEnd": 10 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 329, "length": 1 } + } + }, + "source": { "span": { "start": 350, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "g" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "T" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 8, + "lineEnd": 21, + "columnEnd": 10 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 8, + "lineEnd": 21, + "columnEnd": 10 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 329, "length": 1 } + } + }, + "source": { "span": { "start": 358, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "x" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "g" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "T" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 8, + "lineEnd": 21, + "columnEnd": 10 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "y", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 13, + "lineEnd": 21, + "columnEnd": 16 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 335, "length": 1 } + } + }, + "source": { "span": { "start": 366, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "y" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "g" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "T *" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 13, + "lineEnd": 21, + "columnEnd": 16 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "y", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 13, + "lineEnd": 21, + "columnEnd": 16 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 335, "length": 1 } + } + }, + "source": { "span": { "start": 375, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "y" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "g" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "T *" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 13, + "lineEnd": 21, + "columnEnd": 16 + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test.cpp" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "y", + "file": { "key": "test.cpp" }, + "location": { + "range": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 13, + "lineEnd": 21, + "columnEnd": 16 + } + }, + "destination": { + "file": { "key": "test.cpp" }, + "span": { "start": 335, "length": 1 } + } + }, + "source": { "span": { "start": 384, "length": 1 } } + }, + "entity": { + "cxx": { + "decl": { + "variable": { + "key": { + "name": { + "key": { + "name": { "key": "y" }, + "scope": { + "local": { + "key": { + "name": { "key": { "name": { "key": "g" } } }, + "scope": { "global_": { } } + } + } + } + } + }, + "type": { "key": "T *" }, + "kind": { "local": { "kind": 2, "attribute": 0 } }, + "source": { + "file": { "key": "test.cpp" }, + "lineBegin": 21, + "columnBegin": 13, + "lineEnd": 21, + "columnEnd": 16 + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/flow/cases/xrefs/xrefs_generic.out b/glean/lang/codemarkup/tests/flow/cases/xrefs/xrefs_generic.out new file mode 100644 index 000000000..a48fdfde8 --- /dev/null +++ b/glean/lang/codemarkup/tests/flow/cases/xrefs/xrefs_generic.out @@ -0,0 +1,1979 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test/cjs_exports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "plus", + "file": { "key": "test/cjs_exports.js" }, + "location": { "span": { "start": 241, "length": 4 } } + }, + "source": { "span": { "start": 380, "length": 4 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "plus" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/cjs_exports.js" } } + }, + "span": { "start": 241, "length": 4 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/cjs_exports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test/cjs_exports.js" }, + "location": { "span": { "start": 246, "length": 1 } } + }, + "source": { "span": { "start": 274, "length": 1 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "x" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/cjs_exports.js" } } + }, + "span": { "start": 246, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/es_exports.js.flow" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bor", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 324, "length": 3 } } + }, + "source": { "span": { "start": 434, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "bor" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 324, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/es_exports.js.flow" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "d", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 398, "length": 1 } } + }, + "source": { "span": { "start": 463, "length": 1 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "d" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 398, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/es_exports.js.flow" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 268, "length": 3 } } + }, + "source": { "span": { "start": 429, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "foo" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 268, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/es_exports.js.flow" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "name", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 564, "length": 4 } } + }, + "source": { "span": { "start": 605, "length": 4 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "name" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 564, "length": 4 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/es_exports.js.flow" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 328, "length": 1 } } + }, + "source": { "span": { "start": 358, "length": 1 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "x" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 328, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "BazClass", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 381, "length": 8 } } + }, + "source": { "span": { "start": 295, "length": 8 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "BazClass" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 381, "length": 8 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "BazClass", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 381, "length": 8 } } + }, + "source": { "span": { "start": 766, "length": 8 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "BazClass" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 381, "length": 8 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "BazClass", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 295, "length": 8 } } + }, + "source": { "span": { "start": 766, "length": 8 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "BazClass" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 295, "length": 8 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "C", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 632, "length": 1 } } + }, + "source": { "span": { "start": 799, "length": 1 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "C" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 632, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "C", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 632, "length": 1 } } + }, + "source": { "span": { "start": 833, "length": 1 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "C" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 632, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "C", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 799, "length": 1 } } + }, + "source": { "span": { "start": 833, "length": 1 } } + }, + "entity": { + "flow": { + "decl": { + "typeDecl": { + "key": { + "name": { "key": "C" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 799, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Component", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 398, "length": 1 } } + }, + "source": { "span": { "start": 555, "length": 9 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "d" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 398, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "MyT", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 506, "length": 3 } } + }, + "source": { "span": { "start": 599, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "typeDecl": { + "key": { + "name": { "key": "MyT" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 506, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "a", + "file": { "key": "test/cjs_exports.js" }, + "location": { "span": { "start": 298, "length": 1 } } + }, + "source": { "span": { "start": 238, "length": 1 } } + }, + "entity": { + "flow": { + "decl": { + "memberDecl": { + "key": { + "name": { "key": "a" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/cjs_exports.js" } } + }, + "span": { "start": 298, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "a", + "file": { "key": "test/cjs_exports.js" }, + "location": { "span": { "start": 298, "length": 1 } } + }, + "source": { "span": { "start": 663, "length": 1 } } + }, + "entity": { + "flow": { + "decl": { + "memberDecl": { + "key": { + "name": { "key": "a" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/cjs_exports.js" } } + }, + "span": { "start": 298, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "a", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 238, "length": 1 } } + }, + "source": { "span": { "start": 663, "length": 1 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "a" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 238, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "b", + "file": { "key": "test/cjs_exports.js" }, + "location": { "span": { "start": 320, "length": 1 } } + }, + "source": { "span": { "start": 240, "length": 1 } } + }, + "entity": { + "flow": { + "decl": { + "memberDecl": { + "key": { + "name": { "key": "b" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/cjs_exports.js" } } + }, + "span": { "start": 320, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 324, "length": 3 } } + }, + "source": { "span": { "start": 290, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "bor" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 324, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 324, "length": 3 } } + }, + "source": { "span": { "start": 659, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "bor" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 324, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 324, "length": 3 } } + }, + "source": { "span": { "start": 684, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "memberDecl": { + "key": { + "name": { "key": "bar" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 324, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 290, "length": 3 } } + }, + "source": { "span": { "start": 659, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "bar" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 290, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "c", + "file": { "key": "test/cjs_exports.js" }, + "location": { "span": { "start": 345, "length": 1 } } + }, + "source": { "span": { "start": 242, "length": 1 } } + }, + "entity": { + "flow": { + "decl": { + "memberDecl": { + "key": { + "name": { "key": "c" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/cjs_exports.js" } } + }, + "span": { "start": 345, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "d", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 398, "length": 1 } } + }, + "source": { "span": { "start": 281, "length": 1 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "d" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 398, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "d", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 398, "length": 1 } } + }, + "source": { "span": { "start": 642, "length": 1 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "d" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 398, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "d", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 281, "length": 1 } } + }, + "source": { "span": { "start": 642, "length": 1 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "d" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 281, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 268, "length": 3 } } + }, + "source": { "span": { "start": 285, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "foo" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 268, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 268, "length": 3 } } + }, + "source": { "span": { "start": 688, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "foo" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 268, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 285, "length": 3 } } + }, + "source": { "span": { "start": 688, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "foo" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 285, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "num", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 479, "length": 3 } } + }, + "source": { "span": { "start": 521, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "typeDecl": { + "key": { + "name": { "key": "num" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 479, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "num", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 479, "length": 3 } } + }, + "source": { "span": { "start": 653, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "typeDecl": { + "key": { + "name": { "key": "num" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 479, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "num", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 479, "length": 3 } } + }, + "source": { "span": { "start": 674, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "typeDecl": { + "key": { + "name": { "key": "num" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 479, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "num", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 479, "length": 3 } } + }, + "source": { "span": { "start": 701, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "typeDecl": { + "key": { + "name": { "key": "num" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 479, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "num", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 479, "length": 3 } } + }, + "source": { "span": { "start": 724, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "typeDecl": { + "key": { + "name": { "key": "num" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 479, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "num", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 521, "length": 3 } } + }, + "source": { "span": { "start": 653, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "typeDecl": { + "key": { + "name": { "key": "num" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 521, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "num", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 521, "length": 3 } } + }, + "source": { "span": { "start": 674, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "typeDecl": { + "key": { + "name": { "key": "num" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 521, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "num", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 521, "length": 3 } } + }, + "source": { "span": { "start": 701, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "typeDecl": { + "key": { + "name": { "key": "num" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 521, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "num", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 521, "length": 3 } } + }, + "source": { "span": { "start": 724, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "typeDecl": { + "key": { + "name": { "key": "num" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 521, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "plus", + "file": { "key": "test/cjs_exports.js" }, + "location": { "span": { "start": 373, "length": 4 } } + }, + "source": { "span": { "start": 414, "length": 4 } } + }, + "entity": { + "flow": { + "decl": { + "memberDecl": { + "key": { + "name": { "key": "plus" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/cjs_exports.js" } } + }, + "span": { "start": 373, "length": 4 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "plus", + "file": { "key": "test/cjs_exports.js" }, + "location": { "span": { "start": 373, "length": 4 } } + }, + "source": { "span": { "start": 707, "length": 4 } } + }, + "entity": { + "flow": { + "decl": { + "memberDecl": { + "key": { + "name": { "key": "plus" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/cjs_exports.js" } } + }, + "span": { "start": 373, "length": 4 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "plus", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 414, "length": 4 } } + }, + "source": { "span": { "start": 707, "length": 4 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "plus" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 414, "length": 4 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "qux", + "file": { "key": "test/es_exports.js" }, + "location": { "span": { "start": 0, "length": 0 } } + }, + "source": { "span": { "start": 338, "length": 3 } } + }, + "entity": { + "flow": { + "module_": { "key": { "file": { "key": "test/es_exports.js" } } } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "qux", + "file": { "key": "test/es_exports.js" }, + "location": { "span": { "start": 0, "length": 0 } } + }, + "source": { "span": { "start": 680, "length": 3 } } + }, + "entity": { + "flow": { + "module_": { "key": { "file": { "key": "test/es_exports.js" } } } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "qux", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 338, "length": 3 } } + }, + "source": { "span": { "start": 680, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "qux" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 338, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "str", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 398, "length": 1 } } + }, + "source": { "span": { "start": 793, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "d" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 398, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "str", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 398, "length": 1 } } + }, + "source": { "span": { "start": 843, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "d" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 398, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "str", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 793, "length": 3 } } + }, + "source": { "span": { "start": 843, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "typeDecl": { + "key": { + "name": { "key": "str" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 793, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "times", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 370, "length": 5 } } + }, + "source": { "span": { "start": 730, "length": 5 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "times" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 370, "length": 5 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "times", + "file": { "key": "test/subdir/more_cjs.js" }, + "location": { "span": { "start": 240, "length": 5 } } + }, + "source": { "span": { "start": 370, "length": 5 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "times" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/subdir/more_cjs.js" } + } + }, + "span": { "start": 240, "length": 5 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "times", + "file": { "key": "test/subdir/more_cjs.js" }, + "location": { "span": { "start": 240, "length": 5 } } + }, + "source": { "span": { "start": 730, "length": 5 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "times" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/subdir/more_cjs.js" } + } + }, + "span": { "start": 240, "length": 5 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/subdir/more_cjs.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "times", + "file": { "key": "test/subdir/more_cjs.js" }, + "location": { "span": { "start": 240, "length": 5 } } + }, + "source": { "span": { "start": 311, "length": 5 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "times" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/subdir/more_cjs.js" } + } + }, + "span": { "start": 240, "length": 5 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/subdir/more_cjs.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "x", + "file": { "key": "test/subdir/more_cjs.js" }, + "location": { "span": { "start": 246, "length": 1 } } + }, + "source": { "span": { "start": 285, "length": 1 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "x" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/subdir/more_cjs.js" } + } + }, + "span": { "start": 246, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/subdir/more_cjs.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "y", + "file": { "key": "test/subdir/more_cjs.js" }, + "location": { "span": { "start": 257, "length": 1 } } + }, + "source": { "span": { "start": 287, "length": 1 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "y" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/subdir/more_cjs.js" } + } + }, + "span": { "start": 257, "length": 1 } + } + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/flow/cases/xrefs/xrefs_generic.query b/glean/lang/codemarkup/tests/flow/cases/xrefs/xrefs_generic.query new file mode 100644 index 000000000..26267d2db --- /dev/null +++ b/glean/lang/codemarkup/tests/flow/cases/xrefs/xrefs_generic.query @@ -0,0 +1,2 @@ +query: codemarkup.FileXRefsGenericEntities _ +transform: [gensort, []] diff --git a/glean/lang/codemarkup/tests/flow/cases/xrefs/xrefs_generic_by_file.out b/glean/lang/codemarkup/tests/flow/cases/xrefs/xrefs_generic_by_file.out new file mode 100644 index 000000000..548204190 --- /dev/null +++ b/glean/lang/codemarkup/tests/flow/cases/xrefs/xrefs_generic_by_file.out @@ -0,0 +1,1603 @@ +[ + "@generated", + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "BazClass", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 381, "length": 8 } } + }, + "source": { "span": { "start": 295, "length": 8 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "BazClass" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 381, "length": 8 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "BazClass", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 381, "length": 8 } } + }, + "source": { "span": { "start": 766, "length": 8 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "BazClass" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 381, "length": 8 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "BazClass", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 295, "length": 8 } } + }, + "source": { "span": { "start": 766, "length": 8 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "BazClass" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 295, "length": 8 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "C", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 632, "length": 1 } } + }, + "source": { "span": { "start": 799, "length": 1 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "C" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 632, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "C", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 632, "length": 1 } } + }, + "source": { "span": { "start": 833, "length": 1 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "C" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 632, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "C", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 799, "length": 1 } } + }, + "source": { "span": { "start": 833, "length": 1 } } + }, + "entity": { + "flow": { + "decl": { + "typeDecl": { + "key": { + "name": { "key": "C" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 799, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Component", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 398, "length": 1 } } + }, + "source": { "span": { "start": 555, "length": 9 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "d" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 398, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "MyT", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 506, "length": 3 } } + }, + "source": { "span": { "start": 599, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "typeDecl": { + "key": { + "name": { "key": "MyT" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 506, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "a", + "file": { "key": "test/cjs_exports.js" }, + "location": { "span": { "start": 298, "length": 1 } } + }, + "source": { "span": { "start": 238, "length": 1 } } + }, + "entity": { + "flow": { + "decl": { + "memberDecl": { + "key": { + "name": { "key": "a" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/cjs_exports.js" } } + }, + "span": { "start": 298, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "a", + "file": { "key": "test/cjs_exports.js" }, + "location": { "span": { "start": 298, "length": 1 } } + }, + "source": { "span": { "start": 663, "length": 1 } } + }, + "entity": { + "flow": { + "decl": { + "memberDecl": { + "key": { + "name": { "key": "a" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/cjs_exports.js" } } + }, + "span": { "start": 298, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "a", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 238, "length": 1 } } + }, + "source": { "span": { "start": 663, "length": 1 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "a" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 238, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "b", + "file": { "key": "test/cjs_exports.js" }, + "location": { "span": { "start": 320, "length": 1 } } + }, + "source": { "span": { "start": 240, "length": 1 } } + }, + "entity": { + "flow": { + "decl": { + "memberDecl": { + "key": { + "name": { "key": "b" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/cjs_exports.js" } } + }, + "span": { "start": 320, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 324, "length": 3 } } + }, + "source": { "span": { "start": 290, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "bor" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 324, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 324, "length": 3 } } + }, + "source": { "span": { "start": 659, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "bor" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 324, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 324, "length": 3 } } + }, + "source": { "span": { "start": 684, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "memberDecl": { + "key": { + "name": { "key": "bar" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 324, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bar", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 290, "length": 3 } } + }, + "source": { "span": { "start": 659, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "bar" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 290, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "c", + "file": { "key": "test/cjs_exports.js" }, + "location": { "span": { "start": 345, "length": 1 } } + }, + "source": { "span": { "start": 242, "length": 1 } } + }, + "entity": { + "flow": { + "decl": { + "memberDecl": { + "key": { + "name": { "key": "c" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/cjs_exports.js" } } + }, + "span": { "start": 345, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "d", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 398, "length": 1 } } + }, + "source": { "span": { "start": 281, "length": 1 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "d" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 398, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "d", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 398, "length": 1 } } + }, + "source": { "span": { "start": 642, "length": 1 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "d" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 398, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "d", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 281, "length": 1 } } + }, + "source": { "span": { "start": 642, "length": 1 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "d" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 281, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 268, "length": 3 } } + }, + "source": { "span": { "start": 285, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "foo" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 268, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 268, "length": 3 } } + }, + "source": { "span": { "start": 688, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "foo" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 268, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 285, "length": 3 } } + }, + "source": { "span": { "start": 688, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "foo" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 285, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "num", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 479, "length": 3 } } + }, + "source": { "span": { "start": 521, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "typeDecl": { + "key": { + "name": { "key": "num" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 479, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "num", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 479, "length": 3 } } + }, + "source": { "span": { "start": 653, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "typeDecl": { + "key": { + "name": { "key": "num" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 479, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "num", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 479, "length": 3 } } + }, + "source": { "span": { "start": 674, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "typeDecl": { + "key": { + "name": { "key": "num" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 479, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "num", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 479, "length": 3 } } + }, + "source": { "span": { "start": 701, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "typeDecl": { + "key": { + "name": { "key": "num" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 479, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "num", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 479, "length": 3 } } + }, + "source": { "span": { "start": 724, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "typeDecl": { + "key": { + "name": { "key": "num" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 479, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "num", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 521, "length": 3 } } + }, + "source": { "span": { "start": 653, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "typeDecl": { + "key": { + "name": { "key": "num" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 521, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "num", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 521, "length": 3 } } + }, + "source": { "span": { "start": 674, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "typeDecl": { + "key": { + "name": { "key": "num" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 521, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "num", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 521, "length": 3 } } + }, + "source": { "span": { "start": 701, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "typeDecl": { + "key": { + "name": { "key": "num" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 521, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "num", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 521, "length": 3 } } + }, + "source": { "span": { "start": 724, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "typeDecl": { + "key": { + "name": { "key": "num" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 521, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "plus", + "file": { "key": "test/cjs_exports.js" }, + "location": { "span": { "start": 373, "length": 4 } } + }, + "source": { "span": { "start": 414, "length": 4 } } + }, + "entity": { + "flow": { + "decl": { + "memberDecl": { + "key": { + "name": { "key": "plus" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/cjs_exports.js" } } + }, + "span": { "start": 373, "length": 4 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "plus", + "file": { "key": "test/cjs_exports.js" }, + "location": { "span": { "start": 373, "length": 4 } } + }, + "source": { "span": { "start": 707, "length": 4 } } + }, + "entity": { + "flow": { + "decl": { + "memberDecl": { + "key": { + "name": { "key": "plus" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/cjs_exports.js" } } + }, + "span": { "start": 373, "length": 4 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "plus", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 414, "length": 4 } } + }, + "source": { "span": { "start": 707, "length": 4 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "plus" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 414, "length": 4 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "qux", + "file": { "key": "test/es_exports.js" }, + "location": { "span": { "start": 0, "length": 0 } } + }, + "source": { "span": { "start": 338, "length": 3 } } + }, + "entity": { + "flow": { + "module_": { "key": { "file": { "key": "test/es_exports.js" } } } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "qux", + "file": { "key": "test/es_exports.js" }, + "location": { "span": { "start": 0, "length": 0 } } + }, + "source": { "span": { "start": 680, "length": 3 } } + }, + "entity": { + "flow": { + "module_": { "key": { "file": { "key": "test/es_exports.js" } } } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "qux", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 338, "length": 3 } } + }, + "source": { "span": { "start": 680, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "qux" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 338, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "str", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 398, "length": 1 } } + }, + "source": { "span": { "start": 793, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "d" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 398, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "str", + "file": { "key": "test/es_exports.js.flow" }, + "location": { "span": { "start": 398, "length": 1 } } + }, + "source": { "span": { "start": 843, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "d" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/es_exports.js.flow" } + } + }, + "span": { "start": 398, "length": 1 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "str", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 793, "length": 3 } } + }, + "source": { "span": { "start": 843, "length": 3 } } + }, + "entity": { + "flow": { + "decl": { + "typeDecl": { + "key": { + "name": { "key": "str" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 793, "length": 3 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "times", + "file": { "key": "test/imports.js" }, + "location": { "span": { "start": 370, "length": 5 } } + }, + "source": { "span": { "start": 730, "length": 5 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "times" }, + "loc": { + "key": { + "module": { + "key": { "file": { "key": "test/imports.js" } } + }, + "span": { "start": 370, "length": 5 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "times", + "file": { "key": "test/subdir/more_cjs.js" }, + "location": { "span": { "start": 240, "length": 5 } } + }, + "source": { "span": { "start": 370, "length": 5 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "times" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/subdir/more_cjs.js" } + } + }, + "span": { "start": 240, "length": 5 } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "test/imports.js" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "times", + "file": { "key": "test/subdir/more_cjs.js" }, + "location": { "span": { "start": 240, "length": 5 } } + }, + "source": { "span": { "start": 730, "length": 5 } } + }, + "entity": { + "flow": { + "decl": { + "localDecl": { + "key": { + "name": { "key": "times" }, + "loc": { + "key": { + "module": { + "key": { + "file": { "key": "test/subdir/more_cjs.js" } + } + }, + "span": { "start": 240, "length": 5 } + } + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/flow/cases/xrefs/xrefs_generic_by_file.perf b/glean/lang/codemarkup/tests/flow/cases/xrefs/xrefs_generic_by_file.perf new file mode 100644 index 000000000..98abb181a --- /dev/null +++ b/glean/lang/codemarkup/tests/flow/cases/xrefs/xrefs_generic_by_file.perf @@ -0,0 +1,19 @@ +{ + "@generated": null, + "facts_searched": { + "flow.Export.3": 7, + "flow.FileDeclaration.3": 24, + "flow.FileOfStringModule.3": 30, + "flow.FileXRef.3": 15, + "flow.ImportDeclaration.3": 19, + "flow.Module.3": 8, + "flow.ModuleExport.3": 25, + "flow.ModuleTypeExport.3": 6, + "flow.SourceOfExport.3": 21, + "flow.SourceOfTypeExport.3": 6, + "flow.StringToFileModule.3": 4, + "flow.TypeImportDeclaration.3": 10, + "src.File.1": 1 + }, + "full_scans": [ ] +} \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/flow/cases/xrefs/xrefs_generic_by_file.query b/glean/lang/codemarkup/tests/flow/cases/xrefs/xrefs_generic_by_file.query new file mode 100644 index 000000000..58b72a2ff --- /dev/null +++ b/glean/lang/codemarkup/tests/flow/cases/xrefs/xrefs_generic_by_file.query @@ -0,0 +1,3 @@ +query: codemarkup.FileXRefsGenericEntities { file = "test/imports.js" } +perf: true +transform: [gensort, []] diff --git a/glean/lang/codemarkup/tests/hack/cases/xrefs/xrefs_generic.out b/glean/lang/codemarkup/tests/hack/cases/xrefs/xrefs_generic.out new file mode 100644 index 000000000..b5e72d768 --- /dev/null +++ b/glean/lang/codemarkup/tests/hack/cases/xrefs/xrefs_generic.out @@ -0,0 +1,1583 @@ +[ + "@generated", + { + "key": { + "file": { "key": "www/ModuleMember.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "InterfaceThis", + "file": { "key": "www/ModuleMember.php" }, + "location": { "span": { "start": 580, "length": 13 } } + }, + "source": { "span": { "start": 543, "length": 13 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "interface_": { + "key": { + "name": { "key": { "name": { "key": "InterfaceThis" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/ModuleMember.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "glean.test.thing", + "file": { "key": "www/Module.php" }, + "location": { "span": { "start": 237, "length": 16 } } + }, + "source": { "span": { "start": 233, "length": 16 } } + }, + "entity": { + "hack": { + "decl": { + "module": { "key": { "name": { "key": "glean.test.thing" } } } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "BAZ", + "file": { "key": "www/SourceClass.php" }, + "location": { "span": { "start": 332, "length": 3 } } + }, + "source": { "span": { "start": 740, "length": 3 } } + }, + "entity": { + "hack": { + "decl": { + "classConst": { + "key": { + "name": { "key": "BAZ" }, + "container": { + "class_": { + "key": { + "name": { + "key": { "name": { "key": "SourceClass" } } + } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Center", + "file": { "key": "www/TopLevel.php" }, + "location": { "span": { "start": 380, "length": 6 } } + }, + "source": { "span": { "start": 987, "length": 6 } } + }, + "entity": { + "hack": { + "decl": { + "enumerator": { + "key": { + "name": { "key": "Center" }, + "enumeration": { + "key": { + "name": { "key": { "name": { "key": "Position" } } } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "JAZZ", + "file": { "key": "www/RefClass.php" }, + "location": { "span": { "start": 347, "length": 4 } } + }, + "source": { "span": { "start": 768, "length": 4 } } + }, + "entity": { + "hack": { + "decl": { + "classConst": { + "key": { + "name": { "key": "JAZZ" }, + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "RefClass" } } } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Position", + "file": { "key": "www/TopLevel.php" }, + "location": { "span": { "start": 305, "length": 8 } } + }, + "source": { "span": { "start": 821, "length": 8 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "enum_": { + "key": { + "name": { "key": { "name": { "key": "Position" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Position", + "file": { "key": "www/TopLevel.php" }, + "location": { "span": { "start": 305, "length": 8 } } + }, + "source": { "span": { "start": 977, "length": 8 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "enum_": { + "key": { + "name": { "key": { "name": { "key": "Position" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Right", + "file": { "key": "www/TopLevel.php" }, + "location": { "span": { "start": 367, "length": 5 } } + }, + "source": { "span": { "start": 831, "length": 5 } } + }, + "entity": { + "hack": { + "decl": { + "enumerator": { + "key": { + "name": { "key": "Right" }, + "enumeration": { + "key": { + "name": { "key": { "name": { "key": "Position" } } } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "SourceClass", + "file": { "key": "www/SourceClass.php" }, + "location": { "span": { "start": 286, "length": 11 } } + }, + "source": { "span": { "start": 249, "length": 11 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "SourceClass" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "SourceClass", + "file": { "key": "www/SourceClass.php" }, + "location": { "span": { "start": 286, "length": 11 } } + }, + "source": { "span": { "start": 639, "length": 11 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "SourceClass" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "SourceClass", + "file": { "key": "www/SourceClass.php" }, + "location": { "span": { "start": 286, "length": 11 } } + }, + "source": { "span": { "start": 687, "length": 11 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "SourceClass" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "SourceClass", + "file": { "key": "www/SourceClass.php" }, + "location": { "span": { "start": 286, "length": 11 } } + }, + "source": { "span": { "start": 727, "length": 11 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "SourceClass" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "SourceClass", + "file": { "key": "www/SourceClass.php" }, + "location": { "span": { "start": 286, "length": 11 } } + }, + "source": { "span": { "start": 898, "length": 11 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "SourceClass" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "SourceInterface", + "file": { "key": "www/SourceInterface.php" }, + "location": { "span": { "start": 236, "length": 15 } } + }, + "source": { "span": { "start": 272, "length": 15 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "interface_": { + "key": { + "name": { + "key": { "name": { "key": "SourceInterface" } } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "SourceSecretTrait", + "file": { "key": "www/SourceTrait.php" }, + "location": { "span": { "start": 483, "length": 17 } } + }, + "source": { "span": { "start": 315, "length": 17 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "trait": { + "key": { + "name": { + "key": { "name": { "key": "SourceSecretTrait" } } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "SourceTrait", + "file": { "key": "www/SourceTrait.php" }, + "location": { "span": { "start": 232, "length": 11 } } + }, + "source": { "span": { "start": 296, "length": 11 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "trait": { + "key": { + "name": { "key": { "name": { "key": "SourceTrait" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "T", + "file": { "key": "www/SourceClass.php" }, + "location": { "span": { "start": 355, "length": 1 } } + }, + "source": { "span": { "start": 652, "length": 1 } } + }, + "entity": { + "hack": { + "decl": { + "typeConst": { + "key": { + "name": { "key": "T" }, + "container": { + "class_": { + "key": { + "name": { + "key": { "name": { "key": "SourceClass" } } + } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "WALDO", + "file": { "key": "www/TopLevel.php" }, + "location": { "span": { "start": 236, "length": 5 } } + }, + "source": { "span": { "start": 445, "length": 5 } } + }, + "entity": { + "hack": { + "decl": { + "globalConst": { + "key": { "name": { "key": { "name": { "key": "WALDO" } } } } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "WALDO", + "file": { "key": "www/TopLevel.php" }, + "location": { "span": { "start": 236, "length": 5 } } + }, + "source": { "span": { "start": 775, "length": 5 } } + }, + "entity": { + "hack": { + "decl": { + "globalConst": { + "key": { "name": { "key": { "name": { "key": "WALDO" } } } } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bazza", + "file": { "key": "www/RefClass.php" }, + "location": { "span": { "start": 475, "length": 5 } } + }, + "source": { "span": { "start": 888, "length": 5 } } + }, + "entity": { + "hack": { + "decl": { + "method": { + "key": { + "name": { "key": "bazza" }, + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "RefClass" } } } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "corge", + "file": { "key": "www/TopLevel.php" }, + "location": { "span": { "start": 258, "length": 5 } } + }, + "source": { "span": { "start": 435, "length": 5 } } + }, + "entity": { + "hack": { + "decl": { + "function_": { + "key": { "name": { "key": { "name": { "key": "corge" } } } } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "corge", + "file": { "key": "www/TopLevel.php" }, + "location": { "span": { "start": 258, "length": 5 } } + }, + "source": { "span": { "start": 506, "length": 5 } } + }, + "entity": { + "hack": { + "decl": { + "function_": { + "key": { "name": { "key": { "name": { "key": "corge" } } } } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "corge", + "file": { "key": "www/TopLevel.php" }, + "location": { "span": { "start": 258, "length": 5 } } + }, + "source": { "span": { "start": 717, "length": 5 } } + }, + "entity": { + "hack": { + "decl": { + "function_": { + "key": { "name": { "key": { "name": { "key": "corge" } } } } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "corge", + "file": { "key": "www/TopLevel.php" }, + "location": { "span": { "start": 258, "length": 5 } } + }, + "source": { "span": { "start": 997, "length": 5 } } + }, + "entity": { + "hack": { + "decl": { + "function_": { + "key": { "name": { "key": { "name": { "key": "corge" } } } } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "daz", + "file": { "key": "www/SourceClass.php" }, + "location": { "span": { "start": 378, "length": 4 } } + }, + "source": { "span": { "start": 755, "length": 3 } } + }, + "entity": { + "hack": { + "decl": { + "property_": { + "key": { + "name": { "key": "daz" }, + "container": { + "class_": { + "key": { + "name": { + "key": { "name": { "key": "SourceClass" } } + } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "www/RefClass.php" }, + "location": { "span": { "start": 411, "length": 3 } } + }, + "source": { "span": { "start": 846, "length": 3 } } + }, + "entity": { + "hack": { + "decl": { + "method": { + "key": { + "name": { "key": "foo" }, + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "RefClass" } } } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "quux", + "file": { "key": "www/SourceTrait.php" }, + "location": { "span": { "start": 264, "length": 4 } } + }, + "source": { "span": { "start": 804, "length": 4 } } + }, + "entity": { + "hack": { + "decl": { + "method": { + "key": { + "name": { "key": "quux" }, + "container": { + "trait": { + "key": { + "name": { + "key": { "name": { "key": "SourceTrait" } } + } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "raz", + "file": { "key": "www/RefClass.php" }, + "location": { "span": { "start": 373, "length": 4 } } + }, + "source": { "span": { "start": 875, "length": 3 } } + }, + "entity": { + "hack": { + "decl": { + "property_": { + "key": { + "name": { "key": "raz" }, + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "RefClass" } } } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "superAdd", + "file": { "key": "www/SuperClass.php" }, + "location": { "span": { "start": 288, "length": 8 } } + }, + "source": { "span": { "start": 911, "length": 8 } } + }, + "entity": { + "hack": { + "decl": { + "method": { + "key": { + "name": { "key": "superAdd" }, + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "SuperClass" } } } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/Require.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "AirBus", + "file": { "key": "www/Require.php" }, + "location": { "span": { "start": 769, "length": 6 } } + }, + "source": { "span": { "start": 605, "length": 6 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "AirBus" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/Require.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "CoolStuff", + "file": { "key": "www/Require.php" }, + "location": { "span": { "start": 451, "length": 9 } } + }, + "source": { "span": { "start": 634, "length": 9 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "interface_": { + "key": { + "name": { "key": { "name": { "key": "CoolStuff" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/Require.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "CoolStuff", + "file": { "key": "www/Require.php" }, + "location": { "span": { "start": 451, "length": 9 } } + }, + "source": { "span": { "start": 811, "length": 9 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "interface_": { + "key": { + "name": { "key": { "name": { "key": "CoolStuff" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/Require.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Fliers", + "file": { "key": "www/Require.php" }, + "location": { "span": { "start": 476, "length": 6 } } + }, + "source": { "span": { "start": 581, "length": 6 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "interface_": { + "key": { + "name": { "key": { "name": { "key": "Fliers" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/Require.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Fliers", + "file": { "key": "www/Require.php" }, + "location": { "span": { "start": 476, "length": 6 } } + }, + "source": { "span": { "start": 803, "length": 6 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "interface_": { + "key": { + "name": { "key": { "name": { "key": "Fliers" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/Require.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Machine", + "file": { "key": "www/Require.php" }, + "location": { "span": { "start": 279, "length": 7 } } + }, + "source": { "span": { "start": 551, "length": 7 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "Machine" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/Require.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Machine", + "file": { "key": "www/Require.php" }, + "location": { "span": { "start": 279, "length": 7 } } + }, + "source": { "span": { "start": 784, "length": 7 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "Machine" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/Require.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Machine", + "file": { "key": "www/Require.php" }, + "location": { "span": { "start": 279, "length": 7 } } + }, + "source": { "span": { "start": 927, "length": 7 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "Machine" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/Require.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Plane", + "file": { "key": "www/Require.php" }, + "location": { "span": { "start": 525, "length": 5 } } + }, + "source": { "span": { "start": 829, "length": 5 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "trait": { + "key": { "name": { "key": { "name": { "key": "Plane" } } } } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/Require.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "SuperEngine", + "file": { "key": "www/Require.php" }, + "location": { "span": { "start": 407, "length": 11 } } + }, + "source": { "span": { "start": 954, "length": 11 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "SuperEngine" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/Require.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "closeDoors", + "file": { "key": "www/Require.php" }, + "location": { "span": { "start": 361, "length": 10 } } + }, + "source": { "span": { "start": 717, "length": 10 } } + }, + "entity": { + "hack": { + "decl": { + "method": { + "key": { + "name": { "key": "closeDoors" }, + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "Machine" } } } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/Require.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "fly", + "file": { "key": "www/Require.php" }, + "location": { "span": { "start": 503, "length": 3 } } + }, + "source": { "span": { "start": 749, "length": 3 } } + }, + "entity": { + "hack": { + "decl": { + "method": { + "key": { + "name": { "key": "fly" }, + "container": { + "interface_": { + "key": { + "name": { "key": { "name": { "key": "Fliers" } } } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/Require.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "fly", + "file": { "key": "www/Require.php" }, + "location": { "span": { "start": 855, "length": 3 } } + }, + "source": { "span": { "start": 749, "length": 3 } } + }, + "entity": { + "hack": { + "decl": { + "method": { + "key": { + "name": { "key": "fly" }, + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "AirBus" } } } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/Require.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "openDoors", + "file": { "key": "www/Require.php" }, + "location": { "span": { "start": 307, "length": 9 } } + }, + "source": { "span": { "start": 693, "length": 9 } } + }, + "entity": { + "hack": { + "decl": { + "method": { + "key": { + "name": { "key": "openDoors" }, + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "Machine" } } } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/SourceClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "FancyTypes", + "file": { "key": "www/SourceClass.php" }, + "location": { "span": { "start": 1095, "length": 10 } } + }, + "source": { "span": { "start": 1237, "length": 10 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "FancyTypes" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/SourceClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "SourceClass", + "file": { "key": "www/SourceClass.php" }, + "location": { "span": { "start": 286, "length": 11 } } + }, + "source": { "span": { "start": 729, "length": 11 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "SourceClass" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/SourceClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "SuperClass", + "file": { "key": "www/SuperClass.php" }, + "location": { "span": { "start": 232, "length": 10 } } + }, + "source": { "span": { "start": 306, "length": 10 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "SuperClass" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/SourceClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "TestAnnotation", + "file": { "key": "www/SourceClass.php" }, + "location": { "span": { "start": 853, "length": 14 } } + }, + "source": { "span": { "start": 255, "length": 14 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "TestAnnotation" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/SourceClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "corge", + "file": { "key": "www/TopLevel.php" }, + "location": { "span": { "start": 258, "length": 5 } } + }, + "source": { "span": { "start": 451, "length": 5 } } + }, + "entity": { + "hack": { + "decl": { + "function_": { + "key": { "name": { "key": { "name": { "key": "corge" } } } } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/SourceClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "test", + "file": { "key": "www/SourceClass.php" }, + "location": { "span": { "start": 944, "length": 5 } } + }, + "source": { "span": { "start": 944, "length": 5 } } + }, + "entity": { + "hack": { + "decl": { + "property_": { + "key": { + "name": { "key": "test" }, + "container": { + "class_": { + "key": { + "name": { + "key": { "name": { "key": "TestAnnotation" } } + } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/SourceEnum.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "IAInterface", + "file": { "key": "www/SourceEnum.php" }, + "location": { "span": { "start": 362, "length": 11 } } + }, + "source": { "span": { "start": 407, "length": 11 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "interface_": { + "key": { + "name": { "key": { "name": { "key": "IAInterface" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/TopLevel.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "WALDO", + "file": { "key": "www/TopLevel.php" }, + "location": { "span": { "start": 236, "length": 5 } } + }, + "source": { "span": { "start": 290, "length": 5 } } + }, + "entity": { + "hack": { + "decl": { + "globalConst": { + "key": { "name": { "key": { "name": { "key": "WALDO" } } } } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/hack/cases/xrefs/xrefs_generic.query b/glean/lang/codemarkup/tests/hack/cases/xrefs/xrefs_generic.query new file mode 100644 index 000000000..26267d2db --- /dev/null +++ b/glean/lang/codemarkup/tests/hack/cases/xrefs/xrefs_generic.query @@ -0,0 +1,2 @@ +query: codemarkup.FileXRefsGenericEntities _ +transform: [gensort, []] diff --git a/glean/lang/codemarkup/tests/hack/cases/xrefs/xrefs_generic_by_file.out b/glean/lang/codemarkup/tests/hack/cases/xrefs/xrefs_generic_by_file.out new file mode 100644 index 000000000..c1004d61f --- /dev/null +++ b/glean/lang/codemarkup/tests/hack/cases/xrefs/xrefs_generic_by_file.out @@ -0,0 +1,852 @@ +[ + "@generated", + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "BAZ", + "file": { "key": "www/SourceClass.php" }, + "location": { "span": { "start": 332, "length": 3 } } + }, + "source": { "span": { "start": 740, "length": 3 } } + }, + "entity": { + "hack": { + "decl": { + "classConst": { + "key": { + "name": { "key": "BAZ" }, + "container": { + "class_": { + "key": { + "name": { + "key": { "name": { "key": "SourceClass" } } + } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Center", + "file": { "key": "www/TopLevel.php" }, + "location": { "span": { "start": 380, "length": 6 } } + }, + "source": { "span": { "start": 987, "length": 6 } } + }, + "entity": { + "hack": { + "decl": { + "enumerator": { + "key": { + "name": { "key": "Center" }, + "enumeration": { + "key": { + "name": { "key": { "name": { "key": "Position" } } } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "JAZZ", + "file": { "key": "www/RefClass.php" }, + "location": { "span": { "start": 347, "length": 4 } } + }, + "source": { "span": { "start": 768, "length": 4 } } + }, + "entity": { + "hack": { + "decl": { + "classConst": { + "key": { + "name": { "key": "JAZZ" }, + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "RefClass" } } } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Position", + "file": { "key": "www/TopLevel.php" }, + "location": { "span": { "start": 305, "length": 8 } } + }, + "source": { "span": { "start": 821, "length": 8 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "enum_": { + "key": { + "name": { "key": { "name": { "key": "Position" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Position", + "file": { "key": "www/TopLevel.php" }, + "location": { "span": { "start": 305, "length": 8 } } + }, + "source": { "span": { "start": 977, "length": 8 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "enum_": { + "key": { + "name": { "key": { "name": { "key": "Position" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Right", + "file": { "key": "www/TopLevel.php" }, + "location": { "span": { "start": 367, "length": 5 } } + }, + "source": { "span": { "start": 831, "length": 5 } } + }, + "entity": { + "hack": { + "decl": { + "enumerator": { + "key": { + "name": { "key": "Right" }, + "enumeration": { + "key": { + "name": { "key": { "name": { "key": "Position" } } } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "SourceClass", + "file": { "key": "www/SourceClass.php" }, + "location": { "span": { "start": 286, "length": 11 } } + }, + "source": { "span": { "start": 249, "length": 11 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "SourceClass" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "SourceClass", + "file": { "key": "www/SourceClass.php" }, + "location": { "span": { "start": 286, "length": 11 } } + }, + "source": { "span": { "start": 639, "length": 11 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "SourceClass" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "SourceClass", + "file": { "key": "www/SourceClass.php" }, + "location": { "span": { "start": 286, "length": 11 } } + }, + "source": { "span": { "start": 687, "length": 11 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "SourceClass" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "SourceClass", + "file": { "key": "www/SourceClass.php" }, + "location": { "span": { "start": 286, "length": 11 } } + }, + "source": { "span": { "start": 727, "length": 11 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "SourceClass" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "SourceClass", + "file": { "key": "www/SourceClass.php" }, + "location": { "span": { "start": 286, "length": 11 } } + }, + "source": { "span": { "start": 898, "length": 11 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "SourceClass" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "SourceInterface", + "file": { "key": "www/SourceInterface.php" }, + "location": { "span": { "start": 236, "length": 15 } } + }, + "source": { "span": { "start": 272, "length": 15 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "interface_": { + "key": { + "name": { + "key": { "name": { "key": "SourceInterface" } } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "SourceSecretTrait", + "file": { "key": "www/SourceTrait.php" }, + "location": { "span": { "start": 483, "length": 17 } } + }, + "source": { "span": { "start": 315, "length": 17 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "trait": { + "key": { + "name": { + "key": { "name": { "key": "SourceSecretTrait" } } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "SourceTrait", + "file": { "key": "www/SourceTrait.php" }, + "location": { "span": { "start": 232, "length": 11 } } + }, + "source": { "span": { "start": 296, "length": 11 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "trait": { + "key": { + "name": { "key": { "name": { "key": "SourceTrait" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "T", + "file": { "key": "www/SourceClass.php" }, + "location": { "span": { "start": 355, "length": 1 } } + }, + "source": { "span": { "start": 652, "length": 1 } } + }, + "entity": { + "hack": { + "decl": { + "typeConst": { + "key": { + "name": { "key": "T" }, + "container": { + "class_": { + "key": { + "name": { + "key": { "name": { "key": "SourceClass" } } + } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "WALDO", + "file": { "key": "www/TopLevel.php" }, + "location": { "span": { "start": 236, "length": 5 } } + }, + "source": { "span": { "start": 445, "length": 5 } } + }, + "entity": { + "hack": { + "decl": { + "globalConst": { + "key": { "name": { "key": { "name": { "key": "WALDO" } } } } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "WALDO", + "file": { "key": "www/TopLevel.php" }, + "location": { "span": { "start": 236, "length": 5 } } + }, + "source": { "span": { "start": 775, "length": 5 } } + }, + "entity": { + "hack": { + "decl": { + "globalConst": { + "key": { "name": { "key": { "name": { "key": "WALDO" } } } } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "bazza", + "file": { "key": "www/RefClass.php" }, + "location": { "span": { "start": 475, "length": 5 } } + }, + "source": { "span": { "start": 888, "length": 5 } } + }, + "entity": { + "hack": { + "decl": { + "method": { + "key": { + "name": { "key": "bazza" }, + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "RefClass" } } } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "corge", + "file": { "key": "www/TopLevel.php" }, + "location": { "span": { "start": 258, "length": 5 } } + }, + "source": { "span": { "start": 435, "length": 5 } } + }, + "entity": { + "hack": { + "decl": { + "function_": { + "key": { "name": { "key": { "name": { "key": "corge" } } } } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "corge", + "file": { "key": "www/TopLevel.php" }, + "location": { "span": { "start": 258, "length": 5 } } + }, + "source": { "span": { "start": 506, "length": 5 } } + }, + "entity": { + "hack": { + "decl": { + "function_": { + "key": { "name": { "key": { "name": { "key": "corge" } } } } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "corge", + "file": { "key": "www/TopLevel.php" }, + "location": { "span": { "start": 258, "length": 5 } } + }, + "source": { "span": { "start": 717, "length": 5 } } + }, + "entity": { + "hack": { + "decl": { + "function_": { + "key": { "name": { "key": { "name": { "key": "corge" } } } } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "corge", + "file": { "key": "www/TopLevel.php" }, + "location": { "span": { "start": 258, "length": 5 } } + }, + "source": { "span": { "start": 997, "length": 5 } } + }, + "entity": { + "hack": { + "decl": { + "function_": { + "key": { "name": { "key": { "name": { "key": "corge" } } } } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "daz", + "file": { "key": "www/SourceClass.php" }, + "location": { "span": { "start": 378, "length": 4 } } + }, + "source": { "span": { "start": 755, "length": 3 } } + }, + "entity": { + "hack": { + "decl": { + "property_": { + "key": { + "name": { "key": "daz" }, + "container": { + "class_": { + "key": { + "name": { + "key": { "name": { "key": "SourceClass" } } + } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "foo", + "file": { "key": "www/RefClass.php" }, + "location": { "span": { "start": 411, "length": 3 } } + }, + "source": { "span": { "start": 846, "length": 3 } } + }, + "entity": { + "hack": { + "decl": { + "method": { + "key": { + "name": { "key": "foo" }, + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "RefClass" } } } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "quux", + "file": { "key": "www/SourceTrait.php" }, + "location": { "span": { "start": 264, "length": 4 } } + }, + "source": { "span": { "start": 804, "length": 4 } } + }, + "entity": { + "hack": { + "decl": { + "method": { + "key": { + "name": { "key": "quux" }, + "container": { + "trait": { + "key": { + "name": { + "key": { "name": { "key": "SourceTrait" } } + } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "raz", + "file": { "key": "www/RefClass.php" }, + "location": { "span": { "start": 373, "length": 4 } } + }, + "source": { "span": { "start": 875, "length": 3 } } + }, + "entity": { + "hack": { + "decl": { + "property_": { + "key": { + "name": { "key": "raz" }, + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "RefClass" } } } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/RefClass.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "superAdd", + "file": { "key": "www/SuperClass.php" }, + "location": { "span": { "start": 288, "length": 8 } } + }, + "source": { "span": { "start": 911, "length": 8 } } + }, + "entity": { + "hack": { + "decl": { + "method": { + "key": { + "name": { "key": "superAdd" }, + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "SuperClass" } } } + } + } + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/hack/cases/xrefs/xrefs_generic_by_file.perf b/glean/lang/codemarkup/tests/hack/cases/xrefs/xrefs_generic_by_file.perf new file mode 100644 index 000000000..10003a87d --- /dev/null +++ b/glean/lang/codemarkup/tests/hack/cases/xrefs/xrefs_generic_by_file.perf @@ -0,0 +1,9 @@ +{ + "@generated": null, + "facts_searched": { + "hack.DeclarationLocation.6": 18, + "hack.FileXRefs.6": 1, + "src.File.1": 1 + }, + "full_scans": [ ] +} \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/hack/cases/xrefs/xrefs_generic_by_file.query b/glean/lang/codemarkup/tests/hack/cases/xrefs/xrefs_generic_by_file.query new file mode 100644 index 000000000..e93133d81 --- /dev/null +++ b/glean/lang/codemarkup/tests/hack/cases/xrefs/xrefs_generic_by_file.query @@ -0,0 +1,3 @@ +query: codemarkup.FileXRefsGenericEntities { file = "www/RefClass.php" } +perf: true +transform: [gensort, []] diff --git a/glean/lang/codemarkup/tests/hack/glass/hack-xlang/filexrefsgenericentities.out b/glean/lang/codemarkup/tests/hack/glass/hack-xlang/filexrefsgenericentities.out new file mode 100644 index 000000000..46b455afe --- /dev/null +++ b/glean/lang/codemarkup/tests/hack/glass/hack-xlang/filexrefsgenericentities.out @@ -0,0 +1,1165 @@ +[ + "@generated", + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "CountOnlyMode", + "file": { "key": "www/test_types.php" }, + "location": { "span": { "start": 216, "length": 13 } } + }, + "source": { "span": { "start": 1080, "length": 13 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "enum_": { + "key": { + "name": { "key": { "name": { "key": "CountOnlyMode" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "Disabled", + "file": { "key": "www/test_types.php" }, + "location": { "span": { "start": 239, "length": 8 } } + }, + "source": { "span": { "start": 1095, "length": 8 } } + }, + "entity": { + "hack": { + "decl": { + "enumerator": { + "key": { + "name": { "key": "Disabled" }, + "enumeration": { + "key": { + "name": { + "key": { "name": { "key": "CountOnlyMode" } } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "ENGINE_STRMATCH", + "file": { "key": "www/test_constants.php" }, + "location": { "span": { "start": 299, "length": 15 } } + }, + "source": { "span": { "start": 1160, "length": 15 } } + }, + "entity": { + "hack": { + "decl": { + "classConst": { + "key": { + "name": { "key": "ENGINE_STRMATCH" }, + "container": { + "class_": { + "key": { + "name": { + "key": { "name": { "key": "test_CONSTANTS" } } + } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "GetCardRequest", + "file": { "key": "www/test_types.php" }, + "location": { "span": { "start": 9945, "length": 14 } } + }, + "source": { "span": { "start": 853, "length": 14 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "GetCardRequest" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "GetNavigationException", + "file": { "key": "www/test_types.php" }, + "location": { "span": { "start": 7945, "length": 22 } } + }, + "source": { "span": { "start": 492, "length": 22 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "class_": { + "key": { + "name": { + "key": { "name": { "key": "GetNavigationException" } } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "GetNavigationRequest", + "file": { "key": "www/test_types.php" }, + "location": { "span": { "start": 4086, "length": 20 } } + }, + "source": { "span": { "start": 380, "length": 20 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "class_": { + "key": { + "name": { + "key": { "name": { "key": "GetNavigationRequest" } } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "TestServiceAsyncClient", + "file": { "key": "www/TestService.php" }, + "location": { "span": { "start": 2297, "length": 22 } } + }, + "source": { "span": { "start": 335, "length": 22 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "class_": { + "key": { + "name": { + "key": { "name": { "key": "TestServiceAsyncClient" } } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "TestServiceAsyncClient", + "file": { "key": "www/TestService.php" }, + "location": { "span": { "start": 2297, "length": 22 } } + }, + "source": { "span": { "start": 808, "length": 22 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "class_": { + "key": { + "name": { + "key": { "name": { "key": "TestServiceAsyncClient" } } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "__construct", + "file": { "key": "www/test_types.php" }, + "location": { "span": { "start": 4645, "length": 11 } } + }, + "source": { "span": { "start": 380, "length": 20 } } + }, + "entity": { + "hack": { + "decl": { + "method": { + "key": { + "name": { "key": "__construct" }, + "container": { + "class_": { + "key": { + "name": { + "key": { "name": { "key": "GetNavigationRequest" } } + } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "__construct", + "file": { "key": "www/test_types.php" }, + "location": { "span": { "start": 8549, "length": 11 } } + }, + "source": { "span": { "start": 492, "length": 22 } } + }, + "entity": { + "hack": { + "decl": { + "method": { + "key": { + "name": { "key": "__construct" }, + "container": { + "class_": { + "key": { + "name": { + "key": { + "name": { "key": "GetNavigationException" } + } + } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "__construct", + "file": { "key": "www/test_types.php" }, + "location": { "span": { "start": 10726, "length": 11 } } + }, + "source": { "span": { "start": 853, "length": 14 } } + }, + "entity": { + "hack": { + "decl": { + "method": { + "key": { + "name": { "key": "__construct" }, + "container": { + "class_": { + "key": { + "name": { + "key": { "name": { "key": "GetCardRequest" } } + } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "card", + "file": { "key": "www/test_types.php" }, + "location": { "span": { "start": 13089, "length": 5 } } + }, + "source": { "span": { "start": 990, "length": 4 } } + }, + "entity": { + "hack": { + "decl": { + "property_": { + "key": { + "name": { "key": "card" }, + "container": { + "class_": { + "key": { + "name": { + "key": { "name": { "key": "GetCardResponse" } } + } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "get_static_card", + "file": { "key": "www/test_types.php" }, + "location": { "span": { "start": 2778, "length": 15 } } + }, + "source": { "span": { "start": 1194, "length": 15 } } + }, + "entity": { + "hack": { + "decl": { + "method": { + "key": { + "name": { "key": "get_static_card" }, + "container": { + "class_": { + "key": { + "name": { + "key": { "name": { "key": "ResponseCard" } } + } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "identifier", + "file": { "key": "www/test_types.php" }, + "location": { "span": { "start": 4613, "length": 11 } } + }, + "source": { "span": { "start": 435, "length": 10 } } + }, + "entity": { + "hack": { + "decl": { + "property_": { + "key": { + "name": { "key": "identifier" }, + "container": { + "class_": { + "key": { + "name": { + "key": { "name": { "key": "GetNavigationRequest" } } + } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "message_detail", + "file": { "key": "www/test_types.php" }, + "location": { "span": { "start": 8513, "length": 15 } } + }, + "source": { "span": { "start": 554, "length": 14 } } + }, + "entity": { + "hack": { + "decl": { + "property_": { + "key": { + "name": { "key": "message_detail" }, + "container": { + "class_": { + "key": { + "name": { + "key": { + "name": { "key": "GetNavigationException" } + } + } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "static_card", + "file": { "key": "www/test_types.php" }, + "location": { "span": { "start": 1558, "length": 12 } } + }, + "source": { "span": { "start": 1036, "length": 11 } } + }, + "entity": { + "hack": { + "decl": { + "property_": { + "key": { + "name": { "key": "static_card" }, + "container": { + "class_": { + "key": { + "name": { + "key": { "name": { "key": "ResponseCard" } } + } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "tab_group", + "file": { "key": "www/test_types.php" }, + "location": { "span": { "start": 6541, "length": 10 } } + }, + "source": { "span": { "start": 711, "length": 9 } } + }, + "entity": { + "hack": { + "decl": { + "property_": { + "key": { + "name": { "key": "tab_group" }, + "container": { + "class_": { + "key": { + "name": { + "key": { + "name": { "key": "GetNavigationResponse" } + } + } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "test_CONSTANTS", + "file": { "key": "www/test_constants.php" }, + "location": { "span": { "start": 166, "length": 14 } } + }, + "source": { "span": { "start": 1144, "length": 14 } } + }, + "entity": { + "hack": { + "decl": { + "container": { + "class_": { + "key": { + "name": { "key": { "name": { "key": "test_CONSTANTS" } } } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "thrift1", + "file": { "key": "www/TestService.php" }, + "location": { "span": { "start": 2627, "length": 7 } } + }, + "source": { "span": { "start": 635, "length": 7 } } + }, + "entity": { + "hack": { + "decl": { + "method": { + "key": { + "name": { "key": "thrift1" }, + "container": { + "class_": { + "key": { + "name": { + "key": { + "name": { "key": "TestServiceAsyncClient" } + } + } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "thrift2", + "file": { "key": "www/TestService.php" }, + "location": { "span": { "start": 3493, "length": 7 } } + }, + "source": { "span": { "start": 919, "length": 7 } } + }, + "entity": { + "hack": { + "decl": { + "method": { + "key": { + "name": { "key": "thrift2" }, + "container": { + "class_": { + "key": { + "name": { + "key": { + "name": { "key": "TestServiceAsyncClient" } + } + } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "xlangEntity": { + "source": { "span": { "start": 380, "length": 20 } }, + "entity": { + "lang": 8, + "file": { "key": "www/test.thrift" }, + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "name": { + "key": { + "file": { "key": { "key": "www/test.thrift" } }, + "name": { "key": "GetNavigationRequest" } + } + }, + "kind": 2 + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "xlangEntity": { + "source": { "span": { "start": 435, "length": 10 } }, + "entity": { + "lang": 8, + "file": { "key": "www/test.thrift" }, + "entity": { + "fbthrift": { + "decl": { + "field": { + "key": { + "qname": { + "key": { + "file": { "key": { "key": "www/test.thrift" } }, + "name": { "key": "GetNavigationRequest" } + } + }, + "kind": 0, + "name": { "key": "identifier" } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "xlangEntity": { + "source": { "span": { "start": 492, "length": 22 } }, + "entity": { + "lang": 8, + "file": { "key": "www/test.thrift" }, + "entity": { + "fbthrift": { + "decl": { + "exception_": { + "key": { + "name": { + "key": { + "file": { "key": { "key": "www/test.thrift" } }, + "name": { "key": "GetNavigationException" } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "xlangEntity": { + "source": { "span": { "start": 554, "length": 14 } }, + "entity": { + "lang": 8, + "file": { "key": "www/test.thrift" }, + "entity": { + "fbthrift": { + "decl": { + "field": { + "key": { + "qname": { + "key": { + "file": { "key": { "key": "www/test.thrift" } }, + "name": { "key": "GetNavigationException" } + } + }, + "kind": 2, + "name": { "key": "message_detail" } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "xlangEntity": { + "source": { "span": { "start": 635, "length": 7 } }, + "entity": { + "lang": 8, + "file": { "key": "www/test.thrift" }, + "entity": { + "fbthrift": { + "decl": { + "function_": { + "key": { + "service_": { + "key": { + "name": { + "key": { + "file": { "key": { "key": "www/test.thrift" } }, + "name": { "key": "TestService" } + } + } + } + }, + "name": { "key": "thrift1" } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "xlangEntity": { + "source": { "span": { "start": 711, "length": 9 } }, + "entity": { + "lang": 8, + "file": { "key": "www/test.thrift" }, + "entity": { + "fbthrift": { + "decl": { + "field": { + "key": { + "qname": { + "key": { + "file": { "key": { "key": "www/test.thrift" } }, + "name": { "key": "GetNavigationResponse" } + } + }, + "kind": 0, + "name": { "key": "tab_group" } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "xlangEntity": { + "source": { "span": { "start": 853, "length": 14 } }, + "entity": { + "lang": 8, + "file": { "key": "www/test.thrift" }, + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "name": { + "key": { + "file": { "key": { "key": "www/test.thrift" } }, + "name": { "key": "GetCardRequest" } + } + }, + "kind": 2 + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "xlangEntity": { + "source": { "span": { "start": 919, "length": 7 } }, + "entity": { + "lang": 8, + "file": { "key": "www/test.thrift" }, + "entity": { + "fbthrift": { + "decl": { + "function_": { + "key": { + "service_": { + "key": { + "name": { + "key": { + "file": { "key": { "key": "www/test.thrift" } }, + "name": { "key": "TestService" } + } + } + } + }, + "name": { "key": "thrift2" } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "xlangEntity": { + "source": { "span": { "start": 990, "length": 4 } }, + "entity": { + "lang": 8, + "file": { "key": "www/test.thrift" }, + "entity": { + "fbthrift": { + "decl": { + "field": { + "key": { + "qname": { + "key": { + "file": { "key": { "key": "www/test.thrift" } }, + "name": { "key": "GetCardResponse" } + } + }, + "kind": 0, + "name": { "key": "card" } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "xlangEntity": { + "source": { "span": { "start": 1036, "length": 11 } }, + "entity": { + "lang": 8, + "file": { "key": "www/test.thrift" }, + "entity": { + "fbthrift": { + "decl": { + "field": { + "key": { + "qname": { + "key": { + "file": { "key": { "key": "www/test.thrift" } }, + "name": { "key": "ResponseCard" } + } + }, + "kind": 1, + "name": { "key": "static_card" } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "xlangEntity": { + "source": { "span": { "start": 1080, "length": 13 } }, + "entity": { + "lang": 8, + "file": { "key": "www/test.thrift" }, + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "name": { + "key": { + "file": { "key": { "key": "www/test.thrift" } }, + "name": { "key": "CountOnlyMode" } + } + }, + "kind": 1 + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "xlangEntity": { + "source": { "span": { "start": 1095, "length": 8 } }, + "entity": { + "lang": 8, + "file": { "key": "www/test.thrift" }, + "entity": { + "fbthrift": { + "decl": { + "enumValue": { + "key": { + "enum_": { + "name": { + "key": { + "file": { "key": { "key": "www/test.thrift" } }, + "name": { "key": "CountOnlyMode" } + } + }, + "kind": 1 + }, + "name": { "key": "Disabled" } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "xlangEntity": { + "source": { "span": { "start": 1160, "length": 15 } }, + "entity": { + "lang": 8, + "file": { "key": "www/test.thrift" }, + "entity": { + "fbthrift": { + "decl": { + "constant": { + "key": { + "name": { + "key": { + "file": { "key": { "key": "www/test.thrift" } }, + "name": { "key": "ENGINE_STRMATCH" } + } + } + } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "www/test.php" }, + "genEntity": { + "xlangEntity": { + "source": { "span": { "start": 1194, "length": 15 } }, + "entity": { + "lang": 8, + "file": { "key": "www/test.thrift" }, + "entity": { + "fbthrift": { + "decl": { + "field": { + "key": { + "qname": { + "key": { + "file": { "key": { "key": "www/test.thrift" } }, + "name": { "key": "ResponseCard" } + } + }, + "kind": 1, + "name": { "key": "static_card" } + } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/hack/glass/hack-xlang/filexrefsgenericentities.perf b/glean/lang/codemarkup/tests/hack/glass/hack-xlang/filexrefsgenericentities.perf new file mode 100644 index 000000000..c63a52709 --- /dev/null +++ b/glean/lang/codemarkup/tests/hack/glass/hack-xlang/filexrefsgenericentities.perf @@ -0,0 +1,10 @@ +{ + "@generated": null, + "facts_searched": { + "hack.DeclarationLocation.6": 38, + "hack.FileXRefs.6": 2, + "hack.HackToThrift.6": 14, + "src.File.1": 1 + }, + "full_scans": [ ] +} \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/hack/glass/hack-xlang/filexrefsgenericentities.query b/glean/lang/codemarkup/tests/hack/glass/hack-xlang/filexrefsgenericentities.query new file mode 100644 index 000000000..c14c7031c --- /dev/null +++ b/glean/lang/codemarkup/tests/hack/glass/hack-xlang/filexrefsgenericentities.query @@ -0,0 +1,3 @@ +query: codemarkup.FileXRefsGenericEntities { file = "www/test.php" } +perf: true +transform: [gensort, []] diff --git a/glean/lang/codemarkup/tests/haskell/cases/input_key/file_entity_xrefs_generic.out b/glean/lang/codemarkup/tests/haskell/cases/input_key/file_entity_xrefs_generic.out new file mode 100644 index 000000000..489167752 --- /dev/null +++ b/glean/lang/codemarkup/tests/haskell/cases/input_key/file_entity_xrefs_generic.out @@ -0,0 +1,227 @@ +[ + "@generated", + { + "key": { + "file": { "key": "fbcode/glean/lang/haskell/tests/code/A.hs" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A.a", + "file": { "key": "fbcode/glean/lang/haskell/tests/code/A.hs" }, + "location": { "span": { "start": 281, "length": 1 } } + }, + "source": { "span": { "start": 228, "length": 1 } } + }, + "entity": { + "hs": { + "definition": { + "key": { + "name": { "key": "A.a" }, + "source": { + "file": { + "key": "fbcode/glean/lang/haskell/tests/code/A.hs" + }, + "span": { "start": 281, "length": 1 } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "fbcode/glean/lang/haskell/tests/code/A.hs" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A.a", + "file": { "key": "fbcode/glean/lang/haskell/tests/code/A.hs" }, + "location": { "span": { "start": 281, "length": 1 } } + }, + "source": { "span": { "start": 269, "length": 1 } } + }, + "entity": { + "hs": { + "definition": { + "key": { + "name": { "key": "A.a" }, + "source": { + "file": { + "key": "fbcode/glean/lang/haskell/tests/code/A.hs" + }, + "span": { "start": 281, "length": 1 } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "fbcode/glean/lang/haskell/tests/code/A.hs" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A.a", + "file": { "key": "fbcode/glean/lang/haskell/tests/code/A.hs" }, + "location": { "span": { "start": 281, "length": 1 } } + }, + "source": { "span": { "start": 281, "length": 1 } } + }, + "entity": { + "hs": { + "definition": { + "key": { + "name": { "key": "A.a" }, + "source": { + "file": { + "key": "fbcode/glean/lang/haskell/tests/code/A.hs" + }, + "span": { "start": 281, "length": 1 } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "fbcode/glean/lang/haskell/tests/code/B.hs" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "A.a", + "file": { "key": "fbcode/glean/lang/haskell/tests/code/A.hs" }, + "location": { "span": { "start": 281, "length": 1 } } + }, + "source": { "span": { "start": 306, "length": 1 } } + }, + "entity": { + "hs": { + "definition": { + "key": { + "name": { "key": "A.a" }, + "source": { + "file": { + "key": "fbcode/glean/lang/haskell/tests/code/A.hs" + }, + "span": { "start": 281, "length": 1 } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "fbcode/glean/lang/haskell/tests/code/B.hs" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "B.b", + "file": { "key": "fbcode/glean/lang/haskell/tests/code/B.hs" }, + "location": { "span": { "start": 284, "length": 1 } } + }, + "source": { "span": { "start": 228, "length": 1 } } + }, + "entity": { + "hs": { + "definition": { + "key": { + "name": { "key": "B.b" }, + "source": { + "file": { + "key": "fbcode/glean/lang/haskell/tests/code/B.hs" + }, + "span": { "start": 284, "length": 1 } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "fbcode/glean/lang/haskell/tests/code/B.hs" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "B.b", + "file": { "key": "fbcode/glean/lang/haskell/tests/code/B.hs" }, + "location": { "span": { "start": 284, "length": 1 } } + }, + "source": { "span": { "start": 273, "length": 1 } } + }, + "entity": { + "hs": { + "definition": { + "key": { + "name": { "key": "B.b" }, + "source": { + "file": { + "key": "fbcode/glean/lang/haskell/tests/code/B.hs" + }, + "span": { "start": 284, "length": 1 } + } + } + } + } + } + } + } + } + }, + { + "key": { + "file": { "key": "fbcode/glean/lang/haskell/tests/code/B.hs" }, + "genEntity": { + "plainEntity": { + "xref": { + "target": { + "name": "B.b", + "file": { "key": "fbcode/glean/lang/haskell/tests/code/B.hs" }, + "location": { "span": { "start": 284, "length": 1 } } + }, + "source": { "span": { "start": 284, "length": 1 } } + }, + "entity": { + "hs": { + "definition": { + "key": { + "name": { "key": "B.b" }, + "source": { + "file": { + "key": "fbcode/glean/lang/haskell/tests/code/B.hs" + }, + "span": { "start": 284, "length": 1 } + } + } + } + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/haskell/cases/input_key/file_entity_xrefs_generic.perf b/glean/lang/codemarkup/tests/haskell/cases/input_key/file_entity_xrefs_generic.perf new file mode 100644 index 000000000..c5040f9c2 --- /dev/null +++ b/glean/lang/codemarkup/tests/haskell/cases/input_key/file_entity_xrefs_generic.perf @@ -0,0 +1,9 @@ +{ + "@generated": null, + "facts_searched": { + "hs.Definition.2": 7, + "hs.DefinitionName.1": 12, + "hs.FileXRefMap.2": 2 + }, + "full_scans": [ "hs.FileXRefMap.2" ] +} \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/haskell/cases/input_key/file_entity_xrefs_generic.query b/glean/lang/codemarkup/tests/haskell/cases/input_key/file_entity_xrefs_generic.query new file mode 100644 index 000000000..60e969c9a --- /dev/null +++ b/glean/lang/codemarkup/tests/haskell/cases/input_key/file_entity_xrefs_generic.query @@ -0,0 +1,3 @@ +query: codemarkup.FileXRefsGenericEntities _ +perf: true +transform: [gensort, []] diff --git a/glean/lang/codemarkup/tests/python/cases/xrefs/entity_xref_generic.out b/glean/lang/codemarkup/tests/python/cases/xrefs/entity_xref_generic.out new file mode 100644 index 000000000..7e91e1e2d --- /dev/null +++ b/glean/lang/codemarkup/tests/python/cases/xrefs/entity_xref_generic.out @@ -0,0 +1,536 @@ +[ + "@generated", + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "cls": { "key": { "name": { "key": "all.LocalClass" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 12, "start": 457 } }, + "target": { + "file": { "key": "all.py" }, + "location": { "span": { "length": 37, "start": 384 } }, + "name": "all.LocalClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "cls": { "key": { "name": { "key": "big_lib.BaseClass" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 9, "start": 229 } }, + "target": { + "file": { "key": "big_lib/_inner.py" }, + "location": { "span": { "length": 25, "start": 226 } }, + "name": "big_lib._inner.BaseClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "cls": { "key": { "name": { "key": "big_lib.BaseClass" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 9, "start": 401 } }, + "target": { + "file": { "key": "big_lib/_inner.py" }, + "location": { "span": { "length": 25, "start": 226 } }, + "name": "big_lib._inner.BaseClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "cls": { "key": { "name": { "key": "lib.HelperClass" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 8, "start": 435 } }, + "target": { + "file": { "key": "lib.py" }, + "location": { "span": { "length": 451, "start": 351 } }, + "name": "lib.HelperClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "cls": { "key": { "name": { "key": "lib.HelperClass" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 8, "start": 484 } }, + "target": { + "file": { "key": "lib.py" }, + "location": { "span": { "length": 451, "start": 351 } }, + "name": "lib.HelperClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "cls": { "key": { "name": { "key": "lib.HelperClass" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 11, "start": 274 } }, + "target": { + "file": { "key": "lib.py" }, + "location": { "span": { "length": 451, "start": 351 } }, + "name": "lib.HelperClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { "func": { "key": { "name": { "key": "all.fn" } } } } + } + }, + "xref": { + "source": { "span": { "length": 4, "start": 471 } }, + "target": { + "file": { "key": "all.py" }, + "location": { "span": { "length": 72, "start": 309 } }, + "name": "all.fn" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "func": { "key": { "name": { "key": "big_lib.big_func" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 8, "start": 240 } }, + "target": { + "file": { "key": "big_lib/__init__.py" }, + "location": { "span": { "length": 140, "start": 261 } }, + "name": "big_lib.big_func" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "func": { "key": { "name": { "key": "big_lib.big_func" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 10, "start": 445 } }, + "target": { + "file": { "key": "big_lib/__init__.py" }, + "location": { "span": { "length": 140, "start": 261 } }, + "name": "big_lib.big_func" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "imp": { + "key": { + "as_name": { "key": "all.BaseClass" }, + "from_name": { "key": "big_lib.BaseClass" } + } + } + } + } + }, + "xref": { + "source": { "span": { "length": 9, "start": 401 } }, + "target": { + "file": { "key": "all.py" }, + "location": { "span": { "length": 9, "start": 229 } }, + "name": "big_lib.BaseClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "imp": { + "key": { + "as_name": { "key": "all.Helper" }, + "from_name": { "key": "lib.HelperClass" } + } + } + } + } + }, + "xref": { + "source": { "span": { "length": 8, "start": 435 } }, + "target": { + "file": { "key": "all.py" }, + "location": { "span": { "length": 11, "start": 274 } }, + "name": "lib.HelperClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "imp": { + "key": { + "as_name": { "key": "all.Helper" }, + "from_name": { "key": "lib.HelperClass" } + } + } + } + } + }, + "xref": { + "source": { "span": { "length": 8, "start": 484 } }, + "target": { + "file": { "key": "all.py" }, + "location": { "span": { "length": 11, "start": 274 } }, + "name": "lib.HelperClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "imp": { + "key": { + "as_name": { "key": "all.big_func" }, + "from_name": { "key": "big_lib.big_func" } + } + } + } + } + }, + "xref": { + "source": { "span": { "length": 10, "start": 445 } }, + "target": { + "file": { "key": "all.py" }, + "location": { "span": { "length": 8, "start": 240 } }, + "name": "big_lib.big_func" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "imp": { + "key": { + "as_name": { "key": "all.big_var" }, + "from_name": { "key": "big_lib.big_var" } + } + } + } + } + }, + "xref": { + "source": { "span": { "length": 9, "start": 494 } }, + "target": { + "file": { "key": "all.py" }, + "location": { "span": { "length": 7, "start": 250 } }, + "name": "big_lib.big_var" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "imp": { + "key": { + "as_name": { "key": "big_lib.BaseClass" }, + "from_name": { "key": "big_lib._inner.BaseClass" } + } + } + } + } + }, + "xref": { + "source": { "span": { "length": 9, "start": 229 } }, + "target": { + "file": { "key": "big_lib/__init__.py" }, + "location": { "span": { "length": 9, "start": 236 } }, + "name": "big_lib._inner.BaseClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "imp": { + "key": { + "as_name": { "key": "big_lib.BaseClass" }, + "from_name": { "key": "big_lib._inner.BaseClass" } + } + } + } + } + }, + "xref": { + "source": { "span": { "length": 9, "start": 401 } }, + "target": { + "file": { "key": "big_lib/__init__.py" }, + "location": { "span": { "length": 9, "start": 236 } }, + "name": "big_lib._inner.BaseClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { "module": { "key": { "name": { "key": "big_lib" } } } } + } + }, + "xref": { + "source": { "span": { "length": 7, "start": 214 } }, + "target": { + "file": { "key": "big_lib/__init__.py" }, + "location": { "span": { "length": 518, "start": 0 } }, + "name": "big_lib" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { "module": { "key": { "name": { "key": "lib" } } } } + } + }, + "xref": { + "source": { "span": { "length": 3, "start": 263 } }, + "target": { + "file": { "key": "lib.py" }, + "location": { "span": { "length": 1026, "start": 0 } }, + "name": "lib" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "variable": { "key": { "name": { "key": "all.var" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 5, "start": 477 } }, + "target": { + "file": { "key": "all.py" }, + "location": { "span": { "length": 9, "start": 297 } }, + "name": "all.var" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "variable": { "key": { "name": { "key": "big_lib.big_var" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 7, "start": 250 } }, + "target": { + "file": { "key": "big_lib/__init__.py" }, + "location": { "span": { "length": 11, "start": 247 } }, + "name": "big_lib.big_var" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "variable": { "key": { "name": { "key": "big_lib.big_var" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 9, "start": 494 } }, + "target": { + "file": { "key": "big_lib/__init__.py" }, + "location": { "span": { "length": 11, "start": 247 } }, + "name": "big_lib.big_var" + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/python/cases/xrefs/entity_xref_generic.perf b/glean/lang/codemarkup/tests/python/cases/xrefs/entity_xref_generic.perf new file mode 100644 index 000000000..f02d4c1e5 --- /dev/null +++ b/glean/lang/codemarkup/tests/python/cases/xrefs/entity_xref_generic.perf @@ -0,0 +1,16 @@ +{ + "@generated": null, + "facts_searched": { + "python.ClassDeclaration.4": 11, + "python.DeclarationDefinition.4": 15, + "python.DeclarationLocation.4": 26, + "python.DeclarationsByFile.4": 9, + "python.FunctionDeclaration.4": 4, + "python.ImportStatementByAsName.4": 11, + "python.Module.4": 2, + "python.VariableDeclaration.4": 4, + "python.XRefsViaNameByFile.4": 1, + "src.File.1": 1 + }, + "full_scans": [ ] +} \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/python/cases/xrefs/entity_xref_generic.query b/glean/lang/codemarkup/tests/python/cases/xrefs/entity_xref_generic.query new file mode 100644 index 000000000..2bd55028e --- /dev/null +++ b/glean/lang/codemarkup/tests/python/cases/xrefs/entity_xref_generic.query @@ -0,0 +1,3 @@ +query: codemarkup.FileXRefsGenericEntities { file = "all.py" } +transform: [normord, []] +perf: true diff --git a/glean/lang/codemarkup/tests/python/cases/xrefs/entity_xrefs_generic.out b/glean/lang/codemarkup/tests/python/cases/xrefs/entity_xrefs_generic.out new file mode 100644 index 000000000..9140f95d2 --- /dev/null +++ b/glean/lang/codemarkup/tests/python/cases/xrefs/entity_xrefs_generic.out @@ -0,0 +1,538 @@ +[ + "@generated", + { + "key": { + "file": { "key": "main.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "cls": { "key": { "name": { "key": "lib.HelperClass" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 6, "start": 392 } }, + "target": { + "file": { "key": "lib.py" }, + "location": { "span": { "length": 451, "start": 351 } }, + "name": "lib.HelperClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "main.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "cls": { "key": { "name": { "key": "lib.HelperClass" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 11, "start": 297 } }, + "target": { + "file": { "key": "lib.py" }, + "location": { "span": { "length": 451, "start": 351 } }, + "name": "lib.HelperClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "main.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "cls": { "key": { "name": { "key": "lib.HelperClass" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 11, "start": 468 } }, + "target": { + "file": { "key": "lib.py" }, + "location": { "span": { "length": 451, "start": 351 } }, + "name": "lib.HelperClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "main.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "cls": { "key": { "name": { "key": "lib.HelperClass" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 11, "start": 509 } }, + "target": { + "file": { "key": "lib.py" }, + "location": { "span": { "length": 451, "start": 351 } }, + "name": "lib.HelperClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "main.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "func": { "key": { "name": { "key": "big_lib.big_func" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 8, "start": 245 } }, + "target": { + "file": { "key": "big_lib/__init__.py" }, + "location": { "span": { "length": 140, "start": 261 } }, + "name": "big_lib.big_func" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "main.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "func": { "key": { "name": { "key": "big_lib.big_func" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 8, "start": 362 } }, + "target": { + "file": { "key": "big_lib/__init__.py" }, + "location": { "span": { "length": 140, "start": 261 } }, + "name": "big_lib.big_func" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "main.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "func": { "key": { "name": { "key": "lib.helper_func" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 11, "start": 284 } }, + "target": { + "file": { "key": "lib.py" }, + "location": { "span": { "length": 43, "start": 805 } }, + "name": "lib.helper_func" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "main.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "func": { "key": { "name": { "key": "lib.helper_func" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 11, "start": 344 } }, + "target": { + "file": { "key": "lib.py" }, + "location": { "span": { "length": 43, "start": 805 } }, + "name": "lib.helper_func" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "main.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { "func": { "key": { "name": { "key": "main.f" } } } } + } + }, + "xref": { + "source": { "span": { "length": 1, "start": 577 } }, + "target": { + "file": { "key": "main.py" }, + "location": { "span": { "length": 107, "start": 321 } }, + "name": "main.f" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "main.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "imp": { + "key": { + "as_name": { "key": "lib.func" }, + "from_name": { "key": "big_lib.big_func" } + } + } + } + } + }, + "xref": { + "source": { "span": { "length": 4, "start": 278 } }, + "target": { + "file": { "key": "lib.py" }, + "location": { "span": { "length": 8, "start": 317 } }, + "name": "big_lib.big_func" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "main.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "imp": { + "key": { + "as_name": { "key": "lib.func" }, + "from_name": { "key": "big_lib.big_func" } + } + } + } + } + }, + "xref": { + "source": { "span": { "length": 4, "start": 377 } }, + "target": { + "file": { "key": "lib.py" }, + "location": { "span": { "length": 8, "start": 317 } }, + "name": "big_lib.big_func" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "main.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "imp": { + "key": { + "as_name": { "key": "main.Helper" }, + "from_name": { "key": "lib.HelperClass" } + } + } + } + } + }, + "xref": { + "source": { "span": { "length": 6, "start": 392 } }, + "target": { + "file": { "key": "main.py" }, + "location": { "span": { "length": 11, "start": 297 } }, + "name": "lib.HelperClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "main.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "imp": { + "key": { + "as_name": { "key": "main.OtherHelper" }, + "from_name": { "key": "lib.HelperClass" } + } + } + } + } + }, + "xref": { + "source": { "span": { "length": 11, "start": 509 } }, + "target": { + "file": { "key": "main.py" }, + "location": { "span": { "length": 11, "start": 468 } }, + "name": "lib.HelperClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "main.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "imp": { + "key": { + "as_name": { "key": "main.big_func" }, + "from_name": { "key": "big_lib.big_func" } + } + } + } + } + }, + "xref": { + "source": { "span": { "length": 8, "start": 362 } }, + "target": { + "file": { "key": "main.py" }, + "location": { "span": { "length": 8, "start": 245 } }, + "name": "big_lib.big_func" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "main.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "imp": { + "key": { + "as_name": { "key": "main.func" }, + "from_name": { "key": "lib.func" } + } + } + } + } + }, + "xref": { + "source": { "span": { "length": 4, "start": 377 } }, + "target": { + "file": { "key": "main.py" }, + "location": { "span": { "length": 4, "start": 278 } }, + "name": "lib.func" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "main.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "imp": { + "key": { + "as_name": { "key": "main.helper_func" }, + "from_name": { "key": "lib.helper_func" } + } + } + } + } + }, + "xref": { + "source": { "span": { "length": 11, "start": 344 } }, + "target": { + "file": { "key": "main.py" }, + "location": { "span": { "length": 11, "start": 284 } }, + "name": "lib.helper_func" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "main.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { "module": { "key": { "name": { "key": "big_lib" } } } } + } + }, + "xref": { + "source": { "span": { "length": 7, "start": 230 } }, + "target": { + "file": { "key": "big_lib/__init__.py" }, + "location": { "span": { "length": 518, "start": 0 } }, + "name": "big_lib" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "main.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { "module": { "key": { "name": { "key": "lib" } } } } + } + }, + "xref": { + "source": { "span": { "length": 3, "start": 267 } }, + "target": { + "file": { "key": "lib.py" }, + "location": { "span": { "length": 1026, "start": 0 } }, + "name": "lib" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "main.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { "module": { "key": { "name": { "key": "lib" } } } } + } + }, + "xref": { + "source": { "span": { "length": 3, "start": 457 } }, + "target": { + "file": { "key": "lib.py" }, + "location": { "span": { "length": 1026, "start": 0 } }, + "name": "lib" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "main.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "variable": { + "key": { "name": { "key": "main.f..c" } } + } + } + } + }, + "xref": { + "source": { "span": { "length": 1, "start": 405 } }, + "target": { + "file": { "key": "main.py" }, + "location": { "span": { "length": 12, "start": 388 } }, + "name": "main.f..c" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "main.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "variable": { + "key": { "name": { "key": "main.f..c" } } + } + } + } + }, + "xref": { + "source": { "span": { "length": 1, "start": 427 } }, + "target": { + "file": { "key": "main.py" }, + "location": { "span": { "length": 12, "start": 388 } }, + "name": "main.f..c" + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/python/cases/xrefs/entity_xrefs_generic.perf b/glean/lang/codemarkup/tests/python/cases/xrefs/entity_xrefs_generic.perf new file mode 100644 index 000000000..e112cec11 --- /dev/null +++ b/glean/lang/codemarkup/tests/python/cases/xrefs/entity_xrefs_generic.perf @@ -0,0 +1,16 @@ +{ + "@generated": null, + "facts_searched": { + "python.ClassDeclaration.4": 6, + "python.DeclarationDefinition.4": 18, + "python.DeclarationLocation.4": 26, + "python.DeclarationsByFile.4": 10, + "python.FunctionDeclaration.4": 7, + "python.ImportStatementByAsName.4": 8, + "python.Module.4": 3, + "python.VariableDeclaration.4": 2, + "python.XRefsViaNameByFile.4": 1, + "src.File.1": 1 + }, + "full_scans": [ ] +} \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/python/cases/xrefs/entity_xrefs_generic.query b/glean/lang/codemarkup/tests/python/cases/xrefs/entity_xrefs_generic.query new file mode 100644 index 000000000..485d1a75f --- /dev/null +++ b/glean/lang/codemarkup/tests/python/cases/xrefs/entity_xrefs_generic.query @@ -0,0 +1,3 @@ +query: codemarkup.FileXRefsGenericEntities { file = "main.py" } +transform: [normord, []] +perf: true diff --git a/glean/lang/codemarkup/tests/python/cases/xrefs/xrefs_generic_by_file.out b/glean/lang/codemarkup/tests/python/cases/xrefs/xrefs_generic_by_file.out new file mode 100644 index 000000000..7e91e1e2d --- /dev/null +++ b/glean/lang/codemarkup/tests/python/cases/xrefs/xrefs_generic_by_file.out @@ -0,0 +1,536 @@ +[ + "@generated", + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "cls": { "key": { "name": { "key": "all.LocalClass" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 12, "start": 457 } }, + "target": { + "file": { "key": "all.py" }, + "location": { "span": { "length": 37, "start": 384 } }, + "name": "all.LocalClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "cls": { "key": { "name": { "key": "big_lib.BaseClass" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 9, "start": 229 } }, + "target": { + "file": { "key": "big_lib/_inner.py" }, + "location": { "span": { "length": 25, "start": 226 } }, + "name": "big_lib._inner.BaseClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "cls": { "key": { "name": { "key": "big_lib.BaseClass" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 9, "start": 401 } }, + "target": { + "file": { "key": "big_lib/_inner.py" }, + "location": { "span": { "length": 25, "start": 226 } }, + "name": "big_lib._inner.BaseClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "cls": { "key": { "name": { "key": "lib.HelperClass" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 8, "start": 435 } }, + "target": { + "file": { "key": "lib.py" }, + "location": { "span": { "length": 451, "start": 351 } }, + "name": "lib.HelperClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "cls": { "key": { "name": { "key": "lib.HelperClass" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 8, "start": 484 } }, + "target": { + "file": { "key": "lib.py" }, + "location": { "span": { "length": 451, "start": 351 } }, + "name": "lib.HelperClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "cls": { "key": { "name": { "key": "lib.HelperClass" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 11, "start": 274 } }, + "target": { + "file": { "key": "lib.py" }, + "location": { "span": { "length": 451, "start": 351 } }, + "name": "lib.HelperClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { "func": { "key": { "name": { "key": "all.fn" } } } } + } + }, + "xref": { + "source": { "span": { "length": 4, "start": 471 } }, + "target": { + "file": { "key": "all.py" }, + "location": { "span": { "length": 72, "start": 309 } }, + "name": "all.fn" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "func": { "key": { "name": { "key": "big_lib.big_func" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 8, "start": 240 } }, + "target": { + "file": { "key": "big_lib/__init__.py" }, + "location": { "span": { "length": 140, "start": 261 } }, + "name": "big_lib.big_func" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "func": { "key": { "name": { "key": "big_lib.big_func" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 10, "start": 445 } }, + "target": { + "file": { "key": "big_lib/__init__.py" }, + "location": { "span": { "length": 140, "start": 261 } }, + "name": "big_lib.big_func" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "imp": { + "key": { + "as_name": { "key": "all.BaseClass" }, + "from_name": { "key": "big_lib.BaseClass" } + } + } + } + } + }, + "xref": { + "source": { "span": { "length": 9, "start": 401 } }, + "target": { + "file": { "key": "all.py" }, + "location": { "span": { "length": 9, "start": 229 } }, + "name": "big_lib.BaseClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "imp": { + "key": { + "as_name": { "key": "all.Helper" }, + "from_name": { "key": "lib.HelperClass" } + } + } + } + } + }, + "xref": { + "source": { "span": { "length": 8, "start": 435 } }, + "target": { + "file": { "key": "all.py" }, + "location": { "span": { "length": 11, "start": 274 } }, + "name": "lib.HelperClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "imp": { + "key": { + "as_name": { "key": "all.Helper" }, + "from_name": { "key": "lib.HelperClass" } + } + } + } + } + }, + "xref": { + "source": { "span": { "length": 8, "start": 484 } }, + "target": { + "file": { "key": "all.py" }, + "location": { "span": { "length": 11, "start": 274 } }, + "name": "lib.HelperClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "imp": { + "key": { + "as_name": { "key": "all.big_func" }, + "from_name": { "key": "big_lib.big_func" } + } + } + } + } + }, + "xref": { + "source": { "span": { "length": 10, "start": 445 } }, + "target": { + "file": { "key": "all.py" }, + "location": { "span": { "length": 8, "start": 240 } }, + "name": "big_lib.big_func" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "imp": { + "key": { + "as_name": { "key": "all.big_var" }, + "from_name": { "key": "big_lib.big_var" } + } + } + } + } + }, + "xref": { + "source": { "span": { "length": 9, "start": 494 } }, + "target": { + "file": { "key": "all.py" }, + "location": { "span": { "length": 7, "start": 250 } }, + "name": "big_lib.big_var" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "imp": { + "key": { + "as_name": { "key": "big_lib.BaseClass" }, + "from_name": { "key": "big_lib._inner.BaseClass" } + } + } + } + } + }, + "xref": { + "source": { "span": { "length": 9, "start": 229 } }, + "target": { + "file": { "key": "big_lib/__init__.py" }, + "location": { "span": { "length": 9, "start": 236 } }, + "name": "big_lib._inner.BaseClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "imp": { + "key": { + "as_name": { "key": "big_lib.BaseClass" }, + "from_name": { "key": "big_lib._inner.BaseClass" } + } + } + } + } + }, + "xref": { + "source": { "span": { "length": 9, "start": 401 } }, + "target": { + "file": { "key": "big_lib/__init__.py" }, + "location": { "span": { "length": 9, "start": 236 } }, + "name": "big_lib._inner.BaseClass" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { "module": { "key": { "name": { "key": "big_lib" } } } } + } + }, + "xref": { + "source": { "span": { "length": 7, "start": 214 } }, + "target": { + "file": { "key": "big_lib/__init__.py" }, + "location": { "span": { "length": 518, "start": 0 } }, + "name": "big_lib" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { "module": { "key": { "name": { "key": "lib" } } } } + } + }, + "xref": { + "source": { "span": { "length": 3, "start": 263 } }, + "target": { + "file": { "key": "lib.py" }, + "location": { "span": { "length": 1026, "start": 0 } }, + "name": "lib" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "variable": { "key": { "name": { "key": "all.var" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 5, "start": 477 } }, + "target": { + "file": { "key": "all.py" }, + "location": { "span": { "length": 9, "start": 297 } }, + "name": "all.var" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "variable": { "key": { "name": { "key": "big_lib.big_var" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 7, "start": 250 } }, + "target": { + "file": { "key": "big_lib/__init__.py" }, + "location": { "span": { "length": 11, "start": 247 } }, + "name": "big_lib.big_var" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "all.py" }, + "genEntity": { + "plainEntity": { + "entity": { + "python": { + "decl": { + "variable": { "key": { "name": { "key": "big_lib.big_var" } } } + } + } + }, + "xref": { + "source": { "span": { "length": 9, "start": 494 } }, + "target": { + "file": { "key": "big_lib/__init__.py" }, + "location": { "span": { "length": 11, "start": 247 } }, + "name": "big_lib.big_var" + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/python/cases/xrefs/xrefs_generic_by_file.perf b/glean/lang/codemarkup/tests/python/cases/xrefs/xrefs_generic_by_file.perf new file mode 100644 index 000000000..f02d4c1e5 --- /dev/null +++ b/glean/lang/codemarkup/tests/python/cases/xrefs/xrefs_generic_by_file.perf @@ -0,0 +1,16 @@ +{ + "@generated": null, + "facts_searched": { + "python.ClassDeclaration.4": 11, + "python.DeclarationDefinition.4": 15, + "python.DeclarationLocation.4": 26, + "python.DeclarationsByFile.4": 9, + "python.FunctionDeclaration.4": 4, + "python.ImportStatementByAsName.4": 11, + "python.Module.4": 2, + "python.VariableDeclaration.4": 4, + "python.XRefsViaNameByFile.4": 1, + "src.File.1": 1 + }, + "full_scans": [ ] +} \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/python/cases/xrefs/xrefs_generic_by_file.query b/glean/lang/codemarkup/tests/python/cases/xrefs/xrefs_generic_by_file.query new file mode 100644 index 000000000..f9d081a63 --- /dev/null +++ b/glean/lang/codemarkup/tests/python/cases/xrefs/xrefs_generic_by_file.query @@ -0,0 +1,3 @@ +query: codemarkup.FileXRefsGenericEntities { file = "all.py" } +perf: true +transform: [normord, []] diff --git a/glean/lang/codemarkup/tests/thrift/cases/xrefs/entity_xref_generic.out b/glean/lang/codemarkup/tests/thrift/cases/xrefs/entity_xref_generic.out new file mode 100644 index 000000000..fe0c4e866 --- /dev/null +++ b/glean/lang/codemarkup/tests/thrift/cases/xrefs/entity_xref_generic.out @@ -0,0 +1,4491 @@ +[ + "@generated", + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "exception_": { + "key": { + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "ServerException" } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 8, + "columnEnd": 22, + "file": { "key": "lib.thrift" }, + "lineBegin": 249, + "lineEnd": 249 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 141, + "lineEnd": 143 + } + }, + "name": "ServerException" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "exception_": { + "key": { + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "ServerException" } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 8, + "columnEnd": 22, + "file": { "key": "lib.thrift" }, + "lineBegin": 263, + "lineEnd": 263 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 141, + "lineEnd": 143 + } + }, + "name": "ServerException" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "exception_": { + "key": { + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "ServerException" } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 16, + "columnEnd": 30, + "file": { "key": "lib.thrift" }, + "lineBegin": 241, + "lineEnd": 241 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 141, + "lineEnd": 143 + } + }, + "name": "ServerException" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "exception_": { + "key": { + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "ServerException" } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 16, + "columnEnd": 30, + "file": { "key": "lib.thrift" }, + "lineBegin": 246, + "lineEnd": 246 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 141, + "lineEnd": 143 + } + }, + "name": "ServerException" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "exception_": { + "key": { + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "ServerException" } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 16, + "columnEnd": 30, + "file": { "key": "lib.thrift" }, + "lineBegin": 255, + "lineEnd": 255 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 141, + "lineEnd": 143 + } + }, + "name": "ServerException" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "exception_": { + "key": { + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "ServerException" } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 16, + "columnEnd": 30, + "file": { "key": "lib.thrift" }, + "lineBegin": 260, + "lineEnd": 260 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 141, + "lineEnd": 143 + } + }, + "name": "ServerException" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "exception_": { + "key": { + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "ServerException" } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 16, + "columnEnd": 30, + "file": { "key": "lib.thrift" }, + "lineBegin": 269, + "lineEnd": 269 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 141, + "lineEnd": 143 + } + }, + "name": "ServerException" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "exception_": { + "key": { + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "ServerException" } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 16, + "columnEnd": 30, + "file": { "key": "lib.thrift" }, + "lineBegin": 274, + "lineEnd": 274 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 141, + "lineEnd": 143 + } + }, + "name": "ServerException" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "exception_": { + "key": { + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "ServerException" } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 16, + "columnEnd": 30, + "file": { "key": "lib.thrift" }, + "lineBegin": 279, + "lineEnd": 279 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 141, + "lineEnd": 143 + } + }, + "name": "ServerException" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "exception_": { + "key": { + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "ServerException" } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 16, + "columnEnd": 30, + "file": { "key": "lib.thrift" }, + "lineBegin": 284, + "lineEnd": 284 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 141, + "lineEnd": 143 + } + }, + "name": "ServerException" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "AttributeList" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 18, + "file": { "key": "lib.thrift" }, + "lineBegin": 96, + "lineEnd": 96 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 55, + "file": { "key": "lib.thrift" }, + "lineBegin": 87, + "lineEnd": 87 + } + }, + "name": "AttributeList" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "AttributeList" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 18, + "file": { "key": "lib.thrift" }, + "lineBegin": 104, + "lineEnd": 104 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 55, + "file": { "key": "lib.thrift" }, + "lineBegin": 87, + "lineEnd": 87 + } + }, + "name": "AttributeList" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "Attributes" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 15, + "file": { "key": "lib.thrift" }, + "lineBegin": 114, + "lineEnd": 114 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 54, + "file": { "key": "lib.thrift" }, + "lineBegin": 80, + "lineEnd": 80 + } + }, + "name": "Attributes" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "Name" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 9, + "file": { "key": "lib.thrift" }, + "lineBegin": 148, + "lineEnd": 148 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 32, + "file": { "key": "lib.thrift" }, + "lineBegin": 145, + "lineEnd": 145 + } + }, + "name": "Name" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "Name" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 9, + "file": { "key": "lib.thrift" }, + "lineBegin": 149, + "lineEnd": 149 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 32, + "file": { "key": "lib.thrift" }, + "lineBegin": 145, + "lineEnd": 145 + } + }, + "name": "Name" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "Path" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 9, + "file": { "key": "lib.thrift" }, + "lineBegin": 43, + "lineEnd": 43 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 32, + "file": { "key": "lib.thrift" }, + "lineBegin": 18, + "lineEnd": 18 + } + }, + "name": "Path" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "Path" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 9, + "file": { "key": "lib.thrift" }, + "lineBegin": 51, + "lineEnd": 51 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 32, + "file": { "key": "lib.thrift" }, + "lineBegin": 18, + "lineEnd": 18 + } + }, + "name": "Path" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "Path" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 9, + "file": { "key": "lib.thrift" }, + "lineBegin": 65, + "lineEnd": 65 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 32, + "file": { "key": "lib.thrift" }, + "lineBegin": 18, + "lineEnd": 18 + } + }, + "name": "Path" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "Path" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 9, + "file": { "key": "lib.thrift" }, + "lineBegin": 120, + "lineEnd": 120 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 32, + "file": { "key": "lib.thrift" }, + "lineBegin": 18, + "lineEnd": 18 + } + }, + "name": "Path" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "RepoName" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 13, + "file": { "key": "lib.thrift" }, + "lineBegin": 41, + "lineEnd": 41 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 36, + "file": { "key": "lib.thrift" }, + "lineBegin": 16, + "lineEnd": 16 + } + }, + "name": "RepoName" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "RepoName" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 13, + "file": { "key": "lib.thrift" }, + "lineBegin": 49, + "lineEnd": 49 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 36, + "file": { "key": "lib.thrift" }, + "lineBegin": 16, + "lineEnd": 16 + } + }, + "name": "RepoName" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "RepoName" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 13, + "file": { "key": "lib.thrift" }, + "lineBegin": 63, + "lineEnd": 63 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 36, + "file": { "key": "lib.thrift" }, + "lineBegin": 16, + "lineEnd": 16 + } + }, + "name": "RepoName" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "RepoName" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 13, + "file": { "key": "lib.thrift" }, + "lineBegin": 118, + "lineEnd": 118 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 36, + "file": { "key": "lib.thrift" }, + "lineBegin": 16, + "lineEnd": 16 + } + }, + "name": "RepoName" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "RepoName" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 13, + "file": { "key": "lib.thrift" }, + "lineBegin": 160, + "lineEnd": 160 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 36, + "file": { "key": "lib.thrift" }, + "lineBegin": 16, + "lineEnd": 16 + } + }, + "name": "RepoName" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "Revision" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 13, + "file": { "key": "lib.thrift" }, + "lineBegin": 130, + "lineEnd": 130 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 36, + "file": { "key": "lib.thrift" }, + "lineBegin": 20, + "lineEnd": 20 + } + }, + "name": "Revision" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "Revision" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 13, + "file": { "key": "lib.thrift" }, + "lineBegin": 136, + "lineEnd": 136 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 36, + "file": { "key": "lib.thrift" }, + "lineBegin": 20, + "lineEnd": 20 + } + }, + "name": "Revision" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "Revision" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 15, + "columnEnd": 22, + "file": { "key": "lib.thrift" }, + "lineBegin": 57, + "lineEnd": 57 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 36, + "file": { "key": "lib.thrift" }, + "lineBegin": 20, + "lineEnd": 20 + } + }, + "name": "Revision" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "SymbolId" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 13, + "file": { "key": "lib.thrift" }, + "lineBegin": 90, + "lineEnd": 90 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 36, + "file": { "key": "lib.thrift" }, + "lineBegin": 70, + "lineEnd": 70 + } + }, + "name": "SymbolId" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "SymbolId" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 13, + "file": { "key": "lib.thrift" }, + "lineBegin": 100, + "lineEnd": 100 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 36, + "file": { "key": "lib.thrift" }, + "lineBegin": 70, + "lineEnd": 70 + } + }, + "name": "SymbolId" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "SymbolId" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 13, + "file": { "key": "lib.thrift" }, + "lineBegin": 108, + "lineEnd": 108 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 36, + "file": { "key": "lib.thrift" }, + "lineBegin": 70, + "lineEnd": 70 + } + }, + "name": "SymbolId" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "SymbolId" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 13, + "file": { "key": "lib.thrift" }, + "lineBegin": 153, + "lineEnd": 153 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 36, + "file": { "key": "lib.thrift" }, + "lineBegin": 70, + "lineEnd": 70 + } + }, + "name": "SymbolId" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "SymbolId" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 8, + "columnEnd": 15, + "file": { "key": "lib.thrift" }, + "lineBegin": 253, + "lineEnd": 253 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 36, + "file": { "key": "lib.thrift" }, + "lineBegin": 70, + "lineEnd": 70 + } + }, + "name": "SymbolId" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "SymbolId" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 8, + "columnEnd": 15, + "file": { "key": "lib.thrift" }, + "lineBegin": 258, + "lineEnd": 258 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 36, + "file": { "key": "lib.thrift" }, + "lineBegin": 70, + "lineEnd": 70 + } + }, + "name": "SymbolId" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "SymbolId" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 8, + "columnEnd": 15, + "file": { "key": "lib.thrift" }, + "lineBegin": 267, + "lineEnd": 267 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 36, + "file": { "key": "lib.thrift" }, + "lineBegin": 70, + "lineEnd": 70 + } + }, + "name": "SymbolId" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "SymbolId" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 8, + "columnEnd": 15, + "file": { "key": "lib.thrift" }, + "lineBegin": 282, + "lineEnd": 282 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 36, + "file": { "key": "lib.thrift" }, + "lineBegin": 70, + "lineEnd": 70 + } + }, + "name": "SymbolId" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "SymbolId" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 11, + "columnEnd": 18, + "file": { "key": "lib.thrift" }, + "lineBegin": 223, + "lineEnd": 223 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 36, + "file": { "key": "lib.thrift" }, + "lineBegin": 70, + "lineEnd": 70 + } + }, + "name": "SymbolId" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "SymbolId" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 11, + "columnEnd": 18, + "file": { "key": "lib.thrift" }, + "lineBegin": 228, + "lineEnd": 228 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 36, + "file": { "key": "lib.thrift" }, + "lineBegin": 70, + "lineEnd": 70 + } + }, + "name": "SymbolId" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 0, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "SymbolId" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 29, + "columnEnd": 36, + "file": { "key": "lib.thrift" }, + "lineBegin": 262, + "lineEnd": 262 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 36, + "file": { "key": "lib.thrift" }, + "lineBegin": 70, + "lineEnd": 70 + } + }, + "name": "SymbolId" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 1, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "Language" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 13, + "file": { "key": "lib.thrift" }, + "lineBegin": 161, + "lineEnd": 161 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 198, + "lineEnd": 210 + } + }, + "name": "Language" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 1, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "SymbolKind" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 10, + "columnEnd": 19, + "file": { "key": "lib.thrift" }, + "lineBegin": 162, + "lineEnd": 162 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 165, + "lineEnd": 196 + } + }, + "name": "SymbolKind" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 1, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "SymbolKind" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 15, + "columnEnd": 24, + "file": { "key": "lib.thrift" }, + "lineBegin": 156, + "lineEnd": 156 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 165, + "lineEnd": 196 + } + }, + "name": "SymbolKind" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "ByteSpan" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 13, + "file": { "key": "lib.thrift" }, + "lineBegin": 45, + "lineEnd": 45 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 35, + "lineEnd": 38 + } + }, + "name": "ByteSpan" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "DefinitionSymbolX" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 11, + "columnEnd": 27, + "file": { "key": "lib.thrift" }, + "lineBegin": 128, + "lineEnd": 128 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 99, + "lineEnd": 105 + } + }, + "name": "DefinitionSymbolX" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "DocumentSymbolIndex" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 3, + "columnEnd": 21, + "file": { "key": "lib.thrift" }, + "lineBegin": 243, + "lineEnd": 243 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 133, + "lineEnd": 139 + } + }, + "name": "DocumentSymbolIndex" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "DocumentSymbolListXResult" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 3, + "columnEnd": 27, + "file": { "key": "lib.thrift" }, + "lineBegin": 238, + "lineEnd": 238 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 125, + "lineEnd": 131 + } + }, + "name": "DocumentSymbolListXResult" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "DocumentSymbolsRequest" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 8, + "columnEnd": 29, + "file": { "key": "lib.thrift" }, + "lineBegin": 239, + "lineEnd": 239 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 62, + "lineEnd": 68 + } + }, + "name": "DocumentSymbolsRequest" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "DocumentSymbolsRequest" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 8, + "columnEnd": 29, + "file": { "key": "lib.thrift" }, + "lineBegin": 244, + "lineEnd": 244 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 62, + "lineEnd": 68 + } + }, + "name": "DocumentSymbolsRequest" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "KeyedAttribute" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 14, + "columnEnd": 27, + "file": { "key": "lib.thrift" }, + "lineBegin": 87, + "lineEnd": 87 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 82, + "lineEnd": 85 + } + }, + "name": "KeyedAttribute" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "LineRange" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 20, + "columnEnd": 28, + "file": { "key": "lib.thrift" }, + "lineBegin": 67, + "lineEnd": 67 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 22, + "lineEnd": 26 + } + }, + "name": "LineRange" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "Location" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 3, + "columnEnd": 10, + "file": { "key": "lib.thrift" }, + "lineBegin": 262, + "lineEnd": 262 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 40, + "lineEnd": 46 + } + }, + "name": "Location" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "Location" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 8, + "columnEnd": 15, + "file": { "key": "lib.thrift" }, + "lineBegin": 252, + "lineEnd": 252 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 40, + "lineEnd": 46 + } + }, + "name": "Location" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "Location" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 19, + "columnEnd": 26, + "file": { "key": "lib.thrift" }, + "lineBegin": 248, + "lineEnd": 248 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 40, + "lineEnd": 46 + } + }, + "name": "Location" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "LocationRange" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 18, + "file": { "key": "lib.thrift" }, + "lineBegin": 94, + "lineEnd": 94 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 48, + "lineEnd": 54 + } + }, + "name": "LocationRange" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "LocationRange" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 8, + "columnEnd": 20, + "file": { "key": "lib.thrift" }, + "lineBegin": 257, + "lineEnd": 257 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 48, + "lineEnd": 54 + } + }, + "name": "LocationRange" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "LocationRange" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 15, + "columnEnd": 27, + "file": { "key": "lib.thrift" }, + "lineBegin": 112, + "lineEnd": 112 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 48, + "lineEnd": 54 + } + }, + "name": "LocationRange" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "QualifiedName" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 18, + "file": { "key": "lib.thrift" }, + "lineBegin": 155, + "lineEnd": 155 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 147, + "lineEnd": 150 + } + }, + "name": "QualifiedName" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "Range" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 3, + "columnEnd": 7, + "file": { "key": "lib.thrift" }, + "lineBegin": 248, + "lineEnd": 248 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 28, + "lineEnd": 33 + } + }, + "name": "Range" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "Range" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 10, + "file": { "key": "lib.thrift" }, + "lineBegin": 53, + "lineEnd": 53 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 28, + "lineEnd": 33 + } + }, + "name": "Range" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "Range" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 10, + "file": { "key": "lib.thrift" }, + "lineBegin": 92, + "lineEnd": 92 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 28, + "lineEnd": 33 + } + }, + "name": "Range" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "Range" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 10, + "file": { "key": "lib.thrift" }, + "lineBegin": 102, + "lineEnd": 102 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 28, + "lineEnd": 33 + } + }, + "name": "Range" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "Range" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 10, + "file": { "key": "lib.thrift" }, + "lineBegin": 110, + "lineEnd": 110 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 28, + "lineEnd": 33 + } + }, + "name": "Range" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "Range" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 10, + "file": { "key": "lib.thrift" }, + "lineBegin": 122, + "lineEnd": 122 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 28, + "lineEnd": 33 + } + }, + "name": "Range" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "ReferenceRangeSymbolX" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 11, + "columnEnd": 31, + "file": { "key": "lib.thrift" }, + "lineBegin": 126, + "lineEnd": 126 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 89, + "lineEnd": 97 + } + }, + "name": "ReferenceRangeSymbolX" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "RequestOptions" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 8, + "columnEnd": 21, + "file": { "key": "lib.thrift" }, + "lineBegin": 240, + "lineEnd": 240 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 56, + "lineEnd": 60 + } + }, + "name": "RequestOptions" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "RequestOptions" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 8, + "columnEnd": 21, + "file": { "key": "lib.thrift" }, + "lineBegin": 245, + "lineEnd": 245 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 56, + "lineEnd": 60 + } + }, + "name": "RequestOptions" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "RequestOptions" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 8, + "columnEnd": 21, + "file": { "key": "lib.thrift" }, + "lineBegin": 254, + "lineEnd": 254 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 56, + "lineEnd": 60 + } + }, + "name": "RequestOptions" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "RequestOptions" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 8, + "columnEnd": 21, + "file": { "key": "lib.thrift" }, + "lineBegin": 259, + "lineEnd": 259 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 56, + "lineEnd": 60 + } + }, + "name": "RequestOptions" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "RequestOptions" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 8, + "columnEnd": 21, + "file": { "key": "lib.thrift" }, + "lineBegin": 268, + "lineEnd": 268 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 56, + "lineEnd": 60 + } + }, + "name": "RequestOptions" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "RequestOptions" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 8, + "columnEnd": 21, + "file": { "key": "lib.thrift" }, + "lineBegin": 273, + "lineEnd": 273 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 56, + "lineEnd": 60 + } + }, + "name": "RequestOptions" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "RequestOptions" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 8, + "columnEnd": 21, + "file": { "key": "lib.thrift" }, + "lineBegin": 278, + "lineEnd": 278 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 56, + "lineEnd": 60 + } + }, + "name": "RequestOptions" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "RequestOptions" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 8, + "columnEnd": 21, + "file": { "key": "lib.thrift" }, + "lineBegin": 283, + "lineEnd": 283 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 56, + "lineEnd": 60 + } + }, + "name": "RequestOptions" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "RequestOptions" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 42, + "columnEnd": 55, + "file": { "key": "lib.thrift" }, + "lineBegin": 248, + "lineEnd": 248 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 56, + "lineEnd": 60 + } + }, + "name": "RequestOptions" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "RequestOptions" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 49, + "columnEnd": 62, + "file": { "key": "lib.thrift" }, + "lineBegin": 262, + "lineEnd": 262 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 56, + "lineEnd": 60 + } + }, + "name": "RequestOptions" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "SearchByNameRequest" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 8, + "columnEnd": 26, + "file": { "key": "lib.thrift" }, + "lineBegin": 272, + "lineEnd": 272 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 217, + "lineEnd": 220 + } + }, + "name": "SearchByNameRequest" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "SearchByNameRequest" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 8, + "columnEnd": 26, + "file": { "key": "lib.thrift" }, + "lineBegin": 277, + "lineEnd": 277 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 217, + "lineEnd": 220 + } + }, + "name": "SearchByNameRequest" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "SearchByNameResult" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 3, + "columnEnd": 20, + "file": { "key": "lib.thrift" }, + "lineBegin": 271, + "lineEnd": 271 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 222, + "lineEnd": 225 + } + }, + "name": "SearchByNameResult" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "SearchByNameResult" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 3, + "columnEnd": 20, + "file": { "key": "lib.thrift" }, + "lineBegin": 276, + "lineEnd": 276 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 222, + "lineEnd": 225 + } + }, + "name": "SearchByNameResult" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "SearchBySymbolIdResult" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 3, + "columnEnd": 24, + "file": { "key": "lib.thrift" }, + "lineBegin": 281, + "lineEnd": 281 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 227, + "lineEnd": 229 + } + }, + "name": "SearchBySymbolIdResult" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "SearchContext" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 18, + "file": { "key": "lib.thrift" }, + "lineBegin": 218, + "lineEnd": 218 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 159, + "lineEnd": 163 + } + }, + "name": "SearchContext" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "SymbolDescription" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 3, + "columnEnd": 19, + "file": { "key": "lib.thrift" }, + "lineBegin": 266, + "lineEnd": 266 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 152, + "lineEnd": 157 + } + }, + "name": "SymbolDescription" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "SymbolDescription" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 11, + "columnEnd": 27, + "file": { "key": "lib.thrift" }, + "lineBegin": 224, + "lineEnd": 224 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 152, + "lineEnd": 157 + } + }, + "name": "SymbolDescription" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "SymbolPath" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 15, + "file": { "key": "lib.thrift" }, + "lineBegin": 154, + "lineEnd": 154 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 117, + "lineEnd": 123 + } + }, + "name": "SymbolPath" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 2, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "SymbolX" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 20, + "columnEnd": 26, + "file": { "key": "lib.thrift" }, + "lineBegin": 134, + "lineEnd": 134 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 107, + "lineEnd": 115 + } + }, + "name": "SymbolX" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 3, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "Attribute" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 6, + "columnEnd": 14, + "file": { "key": "lib.thrift" }, + "lineBegin": 84, + "lineEnd": 84 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 13, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 72, + "lineEnd": 78 + } + }, + "name": "Attribute" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "named": { + "key": { + "name": { + "kind": 3, + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "Attribute" } + } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 21, + "columnEnd": 29, + "file": { "key": "lib.thrift" }, + "lineBegin": 80, + "lineEnd": 80 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 13, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 72, + "lineEnd": 78 + } + }, + "name": "Attribute" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "service_": { + "key": { + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "BaseService" } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 30, + "columnEnd": 40, + "file": { "key": "lib.thrift" }, + "lineBegin": 237, + "lineEnd": 237 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 234, + "lineEnd": 235 + } + }, + "name": "BaseService" + } + } + } + } + } + }, + { + "key": { + "file": { "key": "lib.thrift" }, + "genEntity": { + "plainEntity": { + "entity": { + "fbthrift": { + "decl": { + "service_": { + "key": { + "name": { + "key": { + "file": { "key": { "key": "lib.thrift" } }, + "name": { "key": "ZeroService" } + } + } + } + } + } + } + }, + "xref": { + "source": { + "range": { + "columnBegin": 29, + "columnEnd": 39, + "file": { "key": "lib.thrift" }, + "lineBegin": 234, + "lineEnd": 234 + } + }, + "target": { + "file": { "key": "lib.thrift" }, + "location": { + "range": { + "columnBegin": 1, + "columnEnd": 1, + "file": { "key": "lib.thrift" }, + "lineBegin": 231, + "lineEnd": 232 + } + }, + "name": "ZeroService" + } + } + } + } + } + } +] \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/thrift/cases/xrefs/entity_xref_generic.perf b/glean/lang/codemarkup/tests/thrift/cases/xrefs/entity_xref_generic.perf new file mode 100644 index 000000000..ec3148450 --- /dev/null +++ b/glean/lang/codemarkup/tests/thrift/cases/xrefs/entity_xref_generic.perf @@ -0,0 +1,9 @@ +{ + "@generated": null, + "facts_searched": { + "fbthrift.DeclarationNameSpan.1": 87, + "fbthrift.File.1": 2, + "fbthrift.FileXRefs.1": 2 + }, + "full_scans": [ "fbthrift.File.1" ] +} \ No newline at end of file diff --git a/glean/lang/codemarkup/tests/thrift/cases/xrefs/entity_xref_generic.query b/glean/lang/codemarkup/tests/thrift/cases/xrefs/entity_xref_generic.query new file mode 100644 index 000000000..f49b95967 --- /dev/null +++ b/glean/lang/codemarkup/tests/thrift/cases/xrefs/entity_xref_generic.query @@ -0,0 +1,3 @@ +query: codemarkup.FileXRefsGenericEntities { file = _ } +transform: [normord, []] +perf: true diff --git a/glean/schema/cpp/schema.h b/glean/schema/cpp/schema.h index 58ce7d31e..7c481e44a 100644 --- a/glean/schema/cpp/schema.h +++ b/glean/schema/cpp/schema.h @@ -3569,6 +3569,10 @@ struct FileEntityXRefRangeSpans; struct FindEntityDefinition; +struct GenericEntity; + +struct FileXRefsGenericEntities; + struct ParentEntity; struct SearchRelatedEntities; @@ -26352,6 +26356,69 @@ struct FindEntityDefinition : Predicate struct Repr_ { + using Type = Sum, Repr>, Tuple, Repr>>; +}; + + +namespace schema { + +namespace Codemarkup { + +struct GenericEntity { + boost::variant>, Alt<1, std::tuple>> GLEAN_value; + + static GenericEntity plainEntity(const facebook::glean::cpp::schema::Codemarkup::Types::XRefLocation& xref, const facebook::glean::cpp::schema::Code::Entity& entity) { + return GenericEntity{Alt<0, std::tuple>(std::make_tuple(xref, entity))}; + } + static GenericEntity xlangEntity(const facebook::glean::cpp::schema::Codemarkup::Types::RangeSpan& source, const facebook::glean::cpp::schema::Code::IdlEntity& entity) { + return GenericEntity{Alt<1, std::tuple>(std::make_tuple(source, entity))}; + } + + bool operator==(const GenericEntity& other) const { + return std::tie(GLEAN_value) + == std::tie(other.GLEAN_value); + } + bool operator!=(const GenericEntity& other) const { + return std::tie(GLEAN_value) + != std::tie(other.GLEAN_value); + } + bool operator<(const GenericEntity& other) const { + return std::tie(GLEAN_value) + < std::tie(other.GLEAN_value); + } + bool operator<=(const GenericEntity& other) const { + return std::tie(GLEAN_value) + <= std::tie(other.GLEAN_value); + } + bool operator>(const GenericEntity& other) const { + return std::tie(GLEAN_value) + > std::tie(other.GLEAN_value); + } + bool operator>=(const GenericEntity& other) const { + return std::tie(GLEAN_value) + >= std::tie(other.GLEAN_value); + } + + void outputRepr(Output> out) const { + outputValue(out, GLEAN_value); + } +}; // struct GenericEntity + +struct FileXRefsGenericEntities : Predicate, GenericEntity>> { + static const char* GLEAN_name() { + return "codemarkup.FileXRefsGenericEntities"; + } + + static constexpr size_t GLEAN_version() { + return 30; + } +}; // struct FileXRefsGenericEntities + +} // namespace Codemarkup + +} // namespace schema + template<> struct Repr_ { using Type = Tuple, Repr>; }; @@ -29059,7 +29126,7 @@ struct ArgumentValue : Predicate, Alt<1, std: struct SCHEMA { template struct index; - static constexpr size_t count = 1281; + static constexpr size_t count = 1282; template struct predicate; }; @@ -30160,190 +30227,191 @@ template<> struct SCHEMA::index struct SCHEMA::index { static constexpr size_t value = 1094; }; template<> struct SCHEMA::index { static constexpr size_t value = 1095; }; template<> struct SCHEMA::index { static constexpr size_t value = 1096; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1097; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1098; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1099; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1100; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1101; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1102; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1103; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1104; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1105; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1106; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1107; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1108; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1109; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1110; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1111; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1112; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1113; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1114; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1115; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1116; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1117; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1118; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1119; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1120; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1121; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1122; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1123; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1124; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1125; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1126; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1127; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1128; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1129; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1130; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1131; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1132; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1133; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1134; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1135; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1136; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1137; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1138; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1139; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1140; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1141; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1142; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1143; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1144; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1145; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1146; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1147; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1148; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1149; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1150; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1151; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1152; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1153; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1154; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1155; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1156; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1157; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1158; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1159; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1160; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1161; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1162; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1163; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1164; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1165; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1166; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1167; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1168; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1169; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1170; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1171; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1172; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1173; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1174; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1175; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1176; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1177; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1178; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1179; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1180; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1181; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1182; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1183; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1184; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1185; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1186; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1187; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1188; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1189; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1190; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1191; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1192; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1193; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1194; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1195; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1196; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1197; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1198; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1199; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1200; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1201; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1202; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1203; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1204; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1205; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1206; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1207; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1208; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1209; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1210; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1211; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1212; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1213; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1214; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1215; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1216; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1217; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1218; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1219; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1220; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1221; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1222; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1223; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1224; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1225; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1226; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1227; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1228; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1229; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1230; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1231; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1232; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1233; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1234; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1235; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1236; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1237; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1238; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1239; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1240; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1241; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1242; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1243; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1244; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1245; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1246; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1247; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1248; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1249; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1250; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1251; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1252; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1253; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1254; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1255; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1256; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1257; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1258; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1259; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1260; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1261; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1262; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1263; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1264; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1265; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1266; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1267; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1268; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1269; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1270; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1271; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1272; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1273; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1274; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1275; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1276; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1277; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1278; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1279; }; -template<> struct SCHEMA::index { static constexpr size_t value = 1280; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1097; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1098; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1099; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1100; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1101; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1102; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1103; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1104; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1105; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1106; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1107; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1108; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1109; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1110; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1111; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1112; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1113; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1114; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1115; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1116; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1117; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1118; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1119; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1120; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1121; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1122; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1123; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1124; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1125; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1126; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1127; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1128; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1129; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1130; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1131; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1132; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1133; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1134; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1135; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1136; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1137; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1138; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1139; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1140; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1141; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1142; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1143; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1144; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1145; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1146; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1147; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1148; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1149; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1150; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1151; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1152; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1153; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1154; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1155; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1156; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1157; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1158; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1159; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1160; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1161; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1162; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1163; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1164; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1165; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1166; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1167; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1168; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1169; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1170; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1171; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1172; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1173; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1174; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1175; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1176; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1177; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1178; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1179; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1180; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1181; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1182; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1183; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1184; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1185; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1186; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1187; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1188; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1189; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1190; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1191; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1192; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1193; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1194; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1195; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1196; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1197; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1198; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1199; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1200; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1201; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1202; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1203; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1204; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1205; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1206; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1207; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1208; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1209; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1210; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1211; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1212; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1213; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1214; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1215; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1216; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1217; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1218; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1219; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1220; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1221; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1222; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1223; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1224; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1225; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1226; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1227; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1228; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1229; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1230; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1231; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1232; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1233; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1234; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1235; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1236; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1237; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1238; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1239; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1240; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1241; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1242; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1243; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1244; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1245; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1246; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1247; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1248; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1249; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1250; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1251; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1252; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1253; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1254; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1255; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1256; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1257; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1258; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1259; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1260; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1261; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1262; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1263; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1264; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1265; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1266; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1267; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1268; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1269; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1270; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1271; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1272; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1273; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1274; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1275; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1276; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1277; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1278; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1279; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1280; }; +template<> struct SCHEMA::index { static constexpr size_t value = 1281; }; template<> struct SCHEMA::predicate<0> { using type = facebook::glean::cpp::schema::Testinfra::TestId; }; template<> struct SCHEMA::predicate<1> { using type = facebook::glean::cpp::schema::Testinfra::TaggedAssembly; }; @@ -31442,190 +31510,191 @@ template<> struct SCHEMA::predicate<1093> { using type = facebook::glean::cpp::s template<> struct SCHEMA::predicate<1094> { using type = facebook::glean::cpp::schema::Codemarkup::FileEntityXRefLocations; }; template<> struct SCHEMA::predicate<1095> { using type = facebook::glean::cpp::schema::Codemarkup::FileEntityXRefRangeSpans; }; template<> struct SCHEMA::predicate<1096> { using type = facebook::glean::cpp::schema::Codemarkup::FindEntityDefinition; }; -template<> struct SCHEMA::predicate<1097> { using type = facebook::glean::cpp::schema::Codemarkup::SearchRelatedEntities; }; -template<> struct SCHEMA::predicate<1098> { using type = facebook::glean::cpp::schema::Codemarkup::ReferencingEntity; }; -template<> struct SCHEMA::predicate<1099> { using type = facebook::glean::cpp::schema::Codemarkup::ResolveLocation; }; -template<> struct SCHEMA::predicate<1100> { using type = facebook::glean::cpp::schema::Codemarkup::SearchInheritedEntities; }; -template<> struct SCHEMA::predicate<1101> { using type = facebook::glean::cpp::schema::Codemarkup::Cxx::CxxFileEntityIdl; }; -template<> struct SCHEMA::predicate<1102> { using type = facebook::glean::cpp::schema::Codemarkup::Cxx::CxxIdlEntityUses; }; -template<> struct SCHEMA::predicate<1103> { using type = facebook::glean::cpp::schema::Codemarkup::Hack::ConvertCallee; }; -template<> struct SCHEMA::predicate<1104> { using type = facebook::glean::cpp::schema::Codemarkup::Hack::ConvertCalleeForFileCall; }; -template<> struct SCHEMA::predicate<1105> { using type = facebook::glean::cpp::schema::Codemarkup::Hack::ConvertStaticType; }; -template<> struct SCHEMA::predicate<1106> { using type = facebook::glean::cpp::schema::Codemarkup::Hack::HackIdlEntityUses; }; -template<> struct SCHEMA::predicate<1107> { using type = facebook::glean::cpp::schema::Codemarkup::Search::EntityLocationAndKind; }; -template<> struct SCHEMA::predicate<1108> { using type = facebook::glean::cpp::schema::Codemarkup::Search::SearchByName; }; -template<> struct SCHEMA::predicate<1109> { using type = facebook::glean::cpp::schema::Codemarkup::Search::SearchByScope; }; -template<> struct SCHEMA::predicate<1110> { using type = facebook::glean::cpp::schema::Codemetrics::ReferencesFrom; }; -template<> struct SCHEMA::predicate<1111> { using type = facebook::glean::cpp::schema::Codemetrics::ReferencesTo; }; -template<> struct SCHEMA::predicate<1112> { using type = facebook::glean::cpp::schema::Deadcode::GraphEntity; }; -template<> struct SCHEMA::predicate<1113> { using type = facebook::glean::cpp::schema::Deletthis::FileReverseDeps; }; -template<> struct SCHEMA::predicate<1114> { using type = facebook::glean::cpp::schema::Dyn::EntityUsage; }; -template<> struct SCHEMA::predicate<1115> { using type = facebook::glean::cpp::schema::Monk::BestPiiFunc; }; -template<> struct SCHEMA::predicate<1116> { using type = facebook::glean::cpp::schema::Monk::PiiCallerFunc; }; -template<> struct SCHEMA::predicate<1117> { using type = facebook::glean::cpp::schema::Monk::PiiFunc; }; -template<> struct SCHEMA::predicate<1118> { using type = facebook::glean::cpp::schema::Search::Code::BuckSearchByLocalNameFact; }; -template<> struct SCHEMA::predicate<1119> { using type = facebook::glean::cpp::schema::Search::Code::BuckSearchByLowerCaseName; }; -template<> struct SCHEMA::predicate<1120> { using type = facebook::glean::cpp::schema::Search::Code::BuckSearchByName; }; -template<> struct SCHEMA::predicate<1121> { using type = facebook::glean::cpp::schema::Search::Code::CSharpSearchByLowerCaseName; }; -template<> struct SCHEMA::predicate<1122> { using type = facebook::glean::cpp::schema::Search::Code::CSharpSearchByName; }; -template<> struct SCHEMA::predicate<1123> { using type = facebook::glean::cpp::schema::Search::Code::CxxSearchByLowerCaseScopeAndKind; }; -template<> struct SCHEMA::predicate<1124> { using type = facebook::glean::cpp::schema::Search::Code::CxxSearchByScopeAndKind; }; -template<> struct SCHEMA::predicate<1125> { using type = facebook::glean::cpp::schema::Search::Code::ErlangSearchByLowerCaseName; }; -template<> struct SCHEMA::predicate<1126> { using type = facebook::glean::cpp::schema::Search::Code::ErlangSearchByName; }; -template<> struct SCHEMA::predicate<1127> { using type = facebook::glean::cpp::schema::Search::Code::FbthriftSearchByNameFact; }; -template<> struct SCHEMA::predicate<1128> { using type = facebook::glean::cpp::schema::Search::Code::FlowSearchByLowerCaseName; }; -template<> struct SCHEMA::predicate<1129> { using type = facebook::glean::cpp::schema::Search::Code::FlowSearchByLowerCaseScope; }; -template<> struct SCHEMA::predicate<1130> { using type = facebook::glean::cpp::schema::Search::Code::FlowSearchByName; }; -template<> struct SCHEMA::predicate<1131> { using type = facebook::glean::cpp::schema::Search::Code::FlowSearchByNameWithFact; }; -template<> struct SCHEMA::predicate<1132> { using type = facebook::glean::cpp::schema::Search::Code::FlowSearchByScope; }; -template<> struct SCHEMA::predicate<1133> { using type = facebook::glean::cpp::schema::Search::Code::FlowSearchByScopeWithName; }; -template<> struct SCHEMA::predicate<1134> { using type = facebook::glean::cpp::schema::Search::Code::GraphQLSearchByLowerCaseName; }; -template<> struct SCHEMA::predicate<1135> { using type = facebook::glean::cpp::schema::Search::Code::GraphQLSearchByName; }; -template<> struct SCHEMA::predicate<1136> { using type = facebook::glean::cpp::schema::Search::Code::HackSearchByLowerCaseName; }; -template<> struct SCHEMA::predicate<1137> { using type = facebook::glean::cpp::schema::Search::Code::HackSearchByLowerCaseScope; }; -template<> struct SCHEMA::predicate<1138> { using type = facebook::glean::cpp::schema::Search::Code::HackSearchByName; }; -template<> struct SCHEMA::predicate<1139> { using type = facebook::glean::cpp::schema::Search::Code::HackSearchByNameWithName; }; -template<> struct SCHEMA::predicate<1140> { using type = facebook::glean::cpp::schema::Search::Code::HackSearchByScope; }; -template<> struct SCHEMA::predicate<1141> { using type = facebook::glean::cpp::schema::Search::Code::HackSearchByScopeWithName; }; -template<> struct SCHEMA::predicate<1142> { using type = facebook::glean::cpp::schema::Search::Code::HsSearchByLowerCaseName; }; -template<> struct SCHEMA::predicate<1143> { using type = facebook::glean::cpp::schema::Search::Code::HsSearchByName; }; -template<> struct SCHEMA::predicate<1144> { using type = facebook::glean::cpp::schema::Search::Code::JavaSearchByLowerCaseName; }; -template<> struct SCHEMA::predicate<1145> { using type = facebook::glean::cpp::schema::Search::Code::JavaSearchByLowerCaseScope; }; -template<> struct SCHEMA::predicate<1146> { using type = facebook::glean::cpp::schema::Search::Code::JavaSearchByName; }; -template<> struct SCHEMA::predicate<1147> { using type = facebook::glean::cpp::schema::Search::Code::JavaSearchByNameWithFact; }; -template<> struct SCHEMA::predicate<1148> { using type = facebook::glean::cpp::schema::Search::Code::JavaSearchByScope; }; -template<> struct SCHEMA::predicate<1149> { using type = facebook::glean::cpp::schema::Search::Code::JavaSearchByScopeWithName; }; -template<> struct SCHEMA::predicate<1150> { using type = facebook::glean::cpp::schema::Search::Code::KotlinSearchByLowerCaseName; }; -template<> struct SCHEMA::predicate<1151> { using type = facebook::glean::cpp::schema::Search::Code::KotlinSearchByLowerCaseScope; }; -template<> struct SCHEMA::predicate<1152> { using type = facebook::glean::cpp::schema::Search::Code::KotlinSearchByName; }; -template<> struct SCHEMA::predicate<1153> { using type = facebook::glean::cpp::schema::Search::Code::KotlinSearchByNameWithFact; }; -template<> struct SCHEMA::predicate<1154> { using type = facebook::glean::cpp::schema::Search::Code::KotlinSearchByScope; }; -template<> struct SCHEMA::predicate<1155> { using type = facebook::glean::cpp::schema::Search::Code::KotlinSearchByScopeWithName; }; -template<> struct SCHEMA::predicate<1156> { using type = facebook::glean::cpp::schema::Search::Code::LsifSearchByLowerCaseName; }; -template<> struct SCHEMA::predicate<1157> { using type = facebook::glean::cpp::schema::Search::Code::LsifSearchByName; }; -template<> struct SCHEMA::predicate<1158> { using type = facebook::glean::cpp::schema::Search::Code::PpSearchByLowerCaseNameKind; }; -template<> struct SCHEMA::predicate<1159> { using type = facebook::glean::cpp::schema::Search::Code::PpSearchByNameKind; }; -template<> struct SCHEMA::predicate<1160> { using type = facebook::glean::cpp::schema::Search::Code::PythonSearchByLocalNameFact; }; -template<> struct SCHEMA::predicate<1161> { using type = facebook::glean::cpp::schema::Search::Code::PythonSearchByLowerCaseName; }; -template<> struct SCHEMA::predicate<1162> { using type = facebook::glean::cpp::schema::Search::Code::PythonSearchByLowerCaseScope; }; -template<> struct SCHEMA::predicate<1163> { using type = facebook::glean::cpp::schema::Search::Code::PythonSearchByName; }; -template<> struct SCHEMA::predicate<1164> { using type = facebook::glean::cpp::schema::Search::Code::PythonSearchByScope; }; -template<> struct SCHEMA::predicate<1165> { using type = facebook::glean::cpp::schema::Search::Code::PythonSearchByScopeWithName; }; -template<> struct SCHEMA::predicate<1166> { using type = facebook::glean::cpp::schema::Search::Code::SearchByLowerCaseNameAndLanguage; }; -template<> struct SCHEMA::predicate<1167> { using type = facebook::glean::cpp::schema::Search::Code::SearchByLowerCaseNameKindAndLanguage; }; -template<> struct SCHEMA::predicate<1168> { using type = facebook::glean::cpp::schema::Search::Code::SearchByLowerCaseScope; }; -template<> struct SCHEMA::predicate<1169> { using type = facebook::glean::cpp::schema::Search::Code::SearchByLowerCaseScopeAndKind; }; -template<> struct SCHEMA::predicate<1170> { using type = facebook::glean::cpp::schema::Search::Code::SearchByNameAndLanguage; }; -template<> struct SCHEMA::predicate<1171> { using type = facebook::glean::cpp::schema::Search::Code::SearchByNameKindAndLanguage; }; -template<> struct SCHEMA::predicate<1172> { using type = facebook::glean::cpp::schema::Search::Code::SearchByScope; }; -template<> struct SCHEMA::predicate<1173> { using type = facebook::glean::cpp::schema::Search::Code::SearchByScopeAndKind; }; -template<> struct SCHEMA::predicate<1174> { using type = facebook::glean::cpp::schema::Search::Code::ThriftSearchByLowerCaseName; }; -template<> struct SCHEMA::predicate<1175> { using type = facebook::glean::cpp::schema::Search::Code::ThriftSearchByName; }; -template<> struct SCHEMA::predicate<1176> { using type = facebook::glean::cpp::schema::Codemarkup::FileCall; }; -template<> struct SCHEMA::predicate<1177> { using type = facebook::glean::cpp::schema::Codemarkup::Hack::ConvertCallArguments; }; -template<> struct SCHEMA::predicate<1178> { using type = facebook::glean::cpp::schema::Codemarkup::Hack::ConvertMaybeCallArguments; }; -template<> struct SCHEMA::predicate<1179> { using type = facebook::glean::cpp::schema::Codemarkup::Hack::HackFileCall; }; -template<> struct SCHEMA::predicate<1180> { using type = facebook::glean::cpp::schema::Codemarkup::Python::ConvertCallArguments; }; -template<> struct SCHEMA::predicate<1181> { using type = facebook::glean::cpp::schema::Codemarkup::Python::PythonFileCall; }; -template<> struct SCHEMA::predicate<1182> { using type = facebook::glean::cpp::schema::Codemarkup::Hack::ConvertArgument; }; -template<> struct SCHEMA::predicate<1183> { using type = facebook::glean::cpp::schema::Codemarkup::Python::ConvertArgument; }; -template<> struct SCHEMA::predicate<1184> { using type = facebook::glean::cpp::schema::Codemarkup::EntityToAnnotations; }; -template<> struct SCHEMA::predicate<1185> { using type = facebook::glean::cpp::schema::Code::Quality::Issue; }; -template<> struct SCHEMA::predicate<1186> { using type = facebook::glean::cpp::schema::Cxx1::FunctionName; }; -template<> struct SCHEMA::predicate<1187> { using type = facebook::glean::cpp::schema::Cxx1::RecordDeclaration; }; -template<> struct SCHEMA::predicate<1188> { using type = facebook::glean::cpp::schema::Cxx1::DeclarationScope; }; -template<> struct SCHEMA::predicate<1189> { using type = facebook::glean::cpp::schema::Cxx1::EnumDeclarationByName; }; -template<> struct SCHEMA::predicate<1190> { using type = facebook::glean::cpp::schema::Cxx1::FunctionDeclarationByNameScope; }; -template<> struct SCHEMA::predicate<1191> { using type = facebook::glean::cpp::schema::Cxx1::FunctionQName; }; -template<> struct SCHEMA::predicate<1192> { using type = facebook::glean::cpp::schema::Cxx1::QName; }; -template<> struct SCHEMA::predicate<1193> { using type = facebook::glean::cpp::schema::Cxx1::RecordDeclarationClass; }; -template<> struct SCHEMA::predicate<1194> { using type = facebook::glean::cpp::schema::Cxx1::RecordDeclarationStruct; }; -template<> struct SCHEMA::predicate<1195> { using type = facebook::glean::cpp::schema::Cxx1::RecordDeclarationUnion; }; -template<> struct SCHEMA::predicate<1196> { using type = facebook::glean::cpp::schema::Cxx1::TypeAliasDeclarationByName; }; -template<> struct SCHEMA::predicate<1197> { using type = facebook::glean::cpp::schema::Cxx1::VariableDeclarationNonLocalByName; }; -template<> struct SCHEMA::predicate<1198> { using type = facebook::glean::cpp::schema::Search::Code::CxxSearchByLowerCaseNameKindAndScopeFact; }; -template<> struct SCHEMA::predicate<1199> { using type = facebook::glean::cpp::schema::Search::Code::CxxSearchByNameKindAndScopeFact; }; -template<> struct SCHEMA::predicate<1200> { using type = facebook::glean::cpp::schema::Search::Cxx::QueryToScopeCase; }; -template<> struct SCHEMA::predicate<1201> { using type = facebook::glean::cpp::schema::Search::Cxx::SearchByNameAndScope; }; -template<> struct SCHEMA::predicate<1202> { using type = facebook::glean::cpp::schema::Search::Cxx::SearchByScope; }; -template<> struct SCHEMA::predicate<1203> { using type = facebook::glean::cpp::schema::Search::Kind::Cxx::SearchClass; }; -template<> struct SCHEMA::predicate<1204> { using type = facebook::glean::cpp::schema::Search::Kind::Cxx::SearchEnum; }; -template<> struct SCHEMA::predicate<1205> { using type = facebook::glean::cpp::schema::Search::Kind::Cxx::SearchEnumerator; }; -template<> struct SCHEMA::predicate<1206> { using type = facebook::glean::cpp::schema::Search::Kind::Cxx::SearchFunction; }; -template<> struct SCHEMA::predicate<1207> { using type = facebook::glean::cpp::schema::Search::Kind::Cxx::SearchNamespace; }; -template<> struct SCHEMA::predicate<1208> { using type = facebook::glean::cpp::schema::Search::Kind::Cxx::SearchStruct; }; -template<> struct SCHEMA::predicate<1209> { using type = facebook::glean::cpp::schema::Search::Kind::Cxx::SearchTypeAlias; }; -template<> struct SCHEMA::predicate<1210> { using type = facebook::glean::cpp::schema::Search::Kind::Cxx::SearchUnion; }; -template<> struct SCHEMA::predicate<1211> { using type = facebook::glean::cpp::schema::Search::Kind::Cxx::SearchVariable; }; -template<> struct SCHEMA::predicate<1212> { using type = facebook::glean::cpp::schema::Symbolid::Cxx::LookupDeclaration; }; -template<> struct SCHEMA::predicate<1213> { using type = facebook::glean::cpp::schema::Symbolid::Cxx::LookupDefinition; }; -template<> struct SCHEMA::predicate<1214> { using type = facebook::glean::cpp::schema::Symbolid::Cxx::LookupEnumerator; }; -template<> struct SCHEMA::predicate<1215> { using type = facebook::glean::cpp::schema::Symbolid::Cxx::LookupFunctionDeclaration; }; -template<> struct SCHEMA::predicate<1216> { using type = facebook::glean::cpp::schema::Symbolid::Cxx::LookupFunctionDefinition; }; -template<> struct SCHEMA::predicate<1217> { using type = facebook::glean::cpp::schema::Symbolid::Cxx::LookupFunctionSignatureDeclaration; }; -template<> struct SCHEMA::predicate<1218> { using type = facebook::glean::cpp::schema::Symbolid::Cxx::LookupFunctionSignatureDefinition; }; -template<> struct SCHEMA::predicate<1219> { using type = facebook::glean::cpp::schema::Symbolid::Cxx::LookupFunctionSignatureQualifierDeclaration; }; -template<> struct SCHEMA::predicate<1220> { using type = facebook::glean::cpp::schema::Symbolid::Cxx::LookupFunctionSignatureQualifierDefinition; }; -template<> struct SCHEMA::predicate<1221> { using type = facebook::glean::cpp::schema::Fbthrift::FunctionSpecification; }; -template<> struct SCHEMA::predicate<1222> { using type = facebook::glean::cpp::schema::Buckuses::UsesOfTargetHeader; }; -template<> struct SCHEMA::predicate<1223> { using type = facebook::glean::cpp::schema::Buckuses::UsesOfTarget; }; -template<> struct SCHEMA::predicate<1224> { using type = facebook::glean::cpp::schema::Buck::Meta::Oncall; }; -template<> struct SCHEMA::predicate<1225> { using type = facebook::glean::cpp::schema::Buck::Meta::ModeType; }; -template<> struct SCHEMA::predicate<1226> { using type = facebook::glean::cpp::schema::Buck::Meta::TargetModes; }; -template<> struct SCHEMA::predicate<1227> { using type = facebook::glean::cpp::schema::Buck::Meta::LocatorOncall; }; -template<> struct SCHEMA::predicate<1228> { using type = facebook::glean::cpp::schema::Buck::Meta::FileOncall; }; -template<> struct SCHEMA::predicate<1229> { using type = facebook::glean::cpp::schema::Buck::Type; }; -template<> struct SCHEMA::predicate<1230> { using type = facebook::glean::cpp::schema::Buck::TranslationUnit; }; -template<> struct SCHEMA::predicate<1231> { using type = facebook::glean::cpp::schema::Buck::TargetUses; }; -template<> struct SCHEMA::predicate<1232> { using type = facebook::glean::cpp::schema::Buck::TargetSourcesBaseModule; }; -template<> struct SCHEMA::predicate<1233> { using type = facebook::glean::cpp::schema::Buck::TargetSources; }; -template<> struct SCHEMA::predicate<1234> { using type = facebook::glean::cpp::schema::Buck::TargetOuts; }; -template<> struct SCHEMA::predicate<1235> { using type = facebook::glean::cpp::schema::Buck::TargetOut; }; -template<> struct SCHEMA::predicate<1236> { using type = facebook::glean::cpp::schema::Buck::TargetMode; }; -template<> struct SCHEMA::predicate<1237> { using type = facebook::glean::cpp::schema::Buck::TargetLocation; }; -template<> struct SCHEMA::predicate<1238> { using type = facebook::glean::cpp::schema::Buck::TargetLinkWhole; }; -template<> struct SCHEMA::predicate<1239> { using type = facebook::glean::cpp::schema::Buck::TargetIndexerName; }; -template<> struct SCHEMA::predicate<1240> { using type = facebook::glean::cpp::schema::Buck::TargetIndexer; }; -template<> struct SCHEMA::predicate<1241> { using type = facebook::glean::cpp::schema::Buck::TargetHash; }; -template<> struct SCHEMA::predicate<1242> { using type = facebook::glean::cpp::schema::Buck::TargetCall; }; -template<> struct SCHEMA::predicate<1243> { using type = facebook::glean::cpp::schema::Buck::TargetByType; }; -template<> struct SCHEMA::predicate<1244> { using type = facebook::glean::cpp::schema::Buck::TargetAttribute; }; -template<> struct SCHEMA::predicate<1245> { using type = facebook::glean::cpp::schema::Buck::Target; }; -template<> struct SCHEMA::predicate<1246> { using type = facebook::glean::cpp::schema::Buck::SourceFileLocation; }; -template<> struct SCHEMA::predicate<1247> { using type = facebook::glean::cpp::schema::Buck::SearchByLocalName; }; -template<> struct SCHEMA::predicate<1248> { using type = facebook::glean::cpp::schema::Buck::RuleKey; }; -template<> struct SCHEMA::predicate<1249> { using type = facebook::glean::cpp::schema::Buck::Platform; }; -template<> struct SCHEMA::predicate<1250> { using type = facebook::glean::cpp::schema::Buck::Owner; }; -template<> struct SCHEMA::predicate<1251> { using type = facebook::glean::cpp::schema::Buck::OutsTarget; }; -template<> struct SCHEMA::predicate<1252> { using type = facebook::glean::cpp::schema::Buck::OutputLabel; }; -template<> struct SCHEMA::predicate<1253> { using type = facebook::glean::cpp::schema::Buck::OutTarget; }; -template<> struct SCHEMA::predicate<1254> { using type = facebook::glean::cpp::schema::Buck::LocatorWithLabel; }; -template<> struct SCHEMA::predicate<1255> { using type = facebook::glean::cpp::schema::Buck::LocatorReverseDeps; }; -template<> struct SCHEMA::predicate<1256> { using type = facebook::glean::cpp::schema::Buck::LocatorReverseDep; }; -template<> struct SCHEMA::predicate<1257> { using type = facebook::glean::cpp::schema::Buck::Locator; }; -template<> struct SCHEMA::predicate<1258> { using type = facebook::glean::cpp::schema::Buck::LocalNameLowerCase; }; -template<> struct SCHEMA::predicate<1259> { using type = facebook::glean::cpp::schema::Buck::LocalName; }; -template<> struct SCHEMA::predicate<1260> { using type = facebook::glean::cpp::schema::Buck::Labels; }; -template<> struct SCHEMA::predicate<1261> { using type = facebook::glean::cpp::schema::Buck::Label; }; -template<> struct SCHEMA::predicate<1262> { using type = facebook::glean::cpp::schema::Buck::IndexerName; }; -template<> struct SCHEMA::predicate<1263> { using type = facebook::glean::cpp::schema::Buck::FileXRefs; }; -template<> struct SCHEMA::predicate<1264> { using type = facebook::glean::cpp::schema::Buck::FileToTarget; }; -template<> struct SCHEMA::predicate<1265> { using type = facebook::glean::cpp::schema::Buck::FileTarget; }; -template<> struct SCHEMA::predicate<1266> { using type = facebook::glean::cpp::schema::Buck::FileResolved; }; -template<> struct SCHEMA::predicate<1267> { using type = facebook::glean::cpp::schema::Buck::FileEntity; }; -template<> struct SCHEMA::predicate<1268> { using type = facebook::glean::cpp::schema::Buck::FileDefinition; }; -template<> struct SCHEMA::predicate<1269> { using type = facebook::glean::cpp::schema::Buck::File; }; -template<> struct SCHEMA::predicate<1270> { using type = facebook::glean::cpp::schema::Buck::FailureSources; }; -template<> struct SCHEMA::predicate<1271> { using type = facebook::glean::cpp::schema::Buck::IndexFailureX; }; -template<> struct SCHEMA::predicate<1272> { using type = facebook::glean::cpp::schema::Buck::DestinationUses; }; -template<> struct SCHEMA::predicate<1273> { using type = facebook::glean::cpp::schema::Buck::TargetDependencies; }; -template<> struct SCHEMA::predicate<1274> { using type = facebook::glean::cpp::schema::Buck::DefinitionLocation; }; -template<> struct SCHEMA::predicate<1275> { using type = facebook::glean::cpp::schema::Buck::Definition; }; -template<> struct SCHEMA::predicate<1276> { using type = facebook::glean::cpp::schema::Buck::Consumer; }; -template<> struct SCHEMA::predicate<1277> { using type = facebook::glean::cpp::schema::Buck::CallArgument; }; -template<> struct SCHEMA::predicate<1278> { using type = facebook::glean::cpp::schema::Buck::AttributeName; }; -template<> struct SCHEMA::predicate<1279> { using type = facebook::glean::cpp::schema::Buck::AttributeValue; }; -template<> struct SCHEMA::predicate<1280> { using type = facebook::glean::cpp::schema::Buck::ArgumentValue; }; +template<> struct SCHEMA::predicate<1097> { using type = facebook::glean::cpp::schema::Codemarkup::FileXRefsGenericEntities; }; +template<> struct SCHEMA::predicate<1098> { using type = facebook::glean::cpp::schema::Codemarkup::SearchRelatedEntities; }; +template<> struct SCHEMA::predicate<1099> { using type = facebook::glean::cpp::schema::Codemarkup::ReferencingEntity; }; +template<> struct SCHEMA::predicate<1100> { using type = facebook::glean::cpp::schema::Codemarkup::ResolveLocation; }; +template<> struct SCHEMA::predicate<1101> { using type = facebook::glean::cpp::schema::Codemarkup::SearchInheritedEntities; }; +template<> struct SCHEMA::predicate<1102> { using type = facebook::glean::cpp::schema::Codemarkup::Cxx::CxxFileEntityIdl; }; +template<> struct SCHEMA::predicate<1103> { using type = facebook::glean::cpp::schema::Codemarkup::Cxx::CxxIdlEntityUses; }; +template<> struct SCHEMA::predicate<1104> { using type = facebook::glean::cpp::schema::Codemarkup::Hack::ConvertCallee; }; +template<> struct SCHEMA::predicate<1105> { using type = facebook::glean::cpp::schema::Codemarkup::Hack::ConvertCalleeForFileCall; }; +template<> struct SCHEMA::predicate<1106> { using type = facebook::glean::cpp::schema::Codemarkup::Hack::ConvertStaticType; }; +template<> struct SCHEMA::predicate<1107> { using type = facebook::glean::cpp::schema::Codemarkup::Hack::HackIdlEntityUses; }; +template<> struct SCHEMA::predicate<1108> { using type = facebook::glean::cpp::schema::Codemarkup::Search::EntityLocationAndKind; }; +template<> struct SCHEMA::predicate<1109> { using type = facebook::glean::cpp::schema::Codemarkup::Search::SearchByName; }; +template<> struct SCHEMA::predicate<1110> { using type = facebook::glean::cpp::schema::Codemarkup::Search::SearchByScope; }; +template<> struct SCHEMA::predicate<1111> { using type = facebook::glean::cpp::schema::Codemetrics::ReferencesFrom; }; +template<> struct SCHEMA::predicate<1112> { using type = facebook::glean::cpp::schema::Codemetrics::ReferencesTo; }; +template<> struct SCHEMA::predicate<1113> { using type = facebook::glean::cpp::schema::Deadcode::GraphEntity; }; +template<> struct SCHEMA::predicate<1114> { using type = facebook::glean::cpp::schema::Deletthis::FileReverseDeps; }; +template<> struct SCHEMA::predicate<1115> { using type = facebook::glean::cpp::schema::Dyn::EntityUsage; }; +template<> struct SCHEMA::predicate<1116> { using type = facebook::glean::cpp::schema::Monk::BestPiiFunc; }; +template<> struct SCHEMA::predicate<1117> { using type = facebook::glean::cpp::schema::Monk::PiiCallerFunc; }; +template<> struct SCHEMA::predicate<1118> { using type = facebook::glean::cpp::schema::Monk::PiiFunc; }; +template<> struct SCHEMA::predicate<1119> { using type = facebook::glean::cpp::schema::Search::Code::BuckSearchByLocalNameFact; }; +template<> struct SCHEMA::predicate<1120> { using type = facebook::glean::cpp::schema::Search::Code::BuckSearchByLowerCaseName; }; +template<> struct SCHEMA::predicate<1121> { using type = facebook::glean::cpp::schema::Search::Code::BuckSearchByName; }; +template<> struct SCHEMA::predicate<1122> { using type = facebook::glean::cpp::schema::Search::Code::CSharpSearchByLowerCaseName; }; +template<> struct SCHEMA::predicate<1123> { using type = facebook::glean::cpp::schema::Search::Code::CSharpSearchByName; }; +template<> struct SCHEMA::predicate<1124> { using type = facebook::glean::cpp::schema::Search::Code::CxxSearchByLowerCaseScopeAndKind; }; +template<> struct SCHEMA::predicate<1125> { using type = facebook::glean::cpp::schema::Search::Code::CxxSearchByScopeAndKind; }; +template<> struct SCHEMA::predicate<1126> { using type = facebook::glean::cpp::schema::Search::Code::ErlangSearchByLowerCaseName; }; +template<> struct SCHEMA::predicate<1127> { using type = facebook::glean::cpp::schema::Search::Code::ErlangSearchByName; }; +template<> struct SCHEMA::predicate<1128> { using type = facebook::glean::cpp::schema::Search::Code::FbthriftSearchByNameFact; }; +template<> struct SCHEMA::predicate<1129> { using type = facebook::glean::cpp::schema::Search::Code::FlowSearchByLowerCaseName; }; +template<> struct SCHEMA::predicate<1130> { using type = facebook::glean::cpp::schema::Search::Code::FlowSearchByLowerCaseScope; }; +template<> struct SCHEMA::predicate<1131> { using type = facebook::glean::cpp::schema::Search::Code::FlowSearchByName; }; +template<> struct SCHEMA::predicate<1132> { using type = facebook::glean::cpp::schema::Search::Code::FlowSearchByNameWithFact; }; +template<> struct SCHEMA::predicate<1133> { using type = facebook::glean::cpp::schema::Search::Code::FlowSearchByScope; }; +template<> struct SCHEMA::predicate<1134> { using type = facebook::glean::cpp::schema::Search::Code::FlowSearchByScopeWithName; }; +template<> struct SCHEMA::predicate<1135> { using type = facebook::glean::cpp::schema::Search::Code::GraphQLSearchByLowerCaseName; }; +template<> struct SCHEMA::predicate<1136> { using type = facebook::glean::cpp::schema::Search::Code::GraphQLSearchByName; }; +template<> struct SCHEMA::predicate<1137> { using type = facebook::glean::cpp::schema::Search::Code::HackSearchByLowerCaseName; }; +template<> struct SCHEMA::predicate<1138> { using type = facebook::glean::cpp::schema::Search::Code::HackSearchByLowerCaseScope; }; +template<> struct SCHEMA::predicate<1139> { using type = facebook::glean::cpp::schema::Search::Code::HackSearchByName; }; +template<> struct SCHEMA::predicate<1140> { using type = facebook::glean::cpp::schema::Search::Code::HackSearchByNameWithName; }; +template<> struct SCHEMA::predicate<1141> { using type = facebook::glean::cpp::schema::Search::Code::HackSearchByScope; }; +template<> struct SCHEMA::predicate<1142> { using type = facebook::glean::cpp::schema::Search::Code::HackSearchByScopeWithName; }; +template<> struct SCHEMA::predicate<1143> { using type = facebook::glean::cpp::schema::Search::Code::HsSearchByLowerCaseName; }; +template<> struct SCHEMA::predicate<1144> { using type = facebook::glean::cpp::schema::Search::Code::HsSearchByName; }; +template<> struct SCHEMA::predicate<1145> { using type = facebook::glean::cpp::schema::Search::Code::JavaSearchByLowerCaseName; }; +template<> struct SCHEMA::predicate<1146> { using type = facebook::glean::cpp::schema::Search::Code::JavaSearchByLowerCaseScope; }; +template<> struct SCHEMA::predicate<1147> { using type = facebook::glean::cpp::schema::Search::Code::JavaSearchByName; }; +template<> struct SCHEMA::predicate<1148> { using type = facebook::glean::cpp::schema::Search::Code::JavaSearchByNameWithFact; }; +template<> struct SCHEMA::predicate<1149> { using type = facebook::glean::cpp::schema::Search::Code::JavaSearchByScope; }; +template<> struct SCHEMA::predicate<1150> { using type = facebook::glean::cpp::schema::Search::Code::JavaSearchByScopeWithName; }; +template<> struct SCHEMA::predicate<1151> { using type = facebook::glean::cpp::schema::Search::Code::KotlinSearchByLowerCaseName; }; +template<> struct SCHEMA::predicate<1152> { using type = facebook::glean::cpp::schema::Search::Code::KotlinSearchByLowerCaseScope; }; +template<> struct SCHEMA::predicate<1153> { using type = facebook::glean::cpp::schema::Search::Code::KotlinSearchByName; }; +template<> struct SCHEMA::predicate<1154> { using type = facebook::glean::cpp::schema::Search::Code::KotlinSearchByNameWithFact; }; +template<> struct SCHEMA::predicate<1155> { using type = facebook::glean::cpp::schema::Search::Code::KotlinSearchByScope; }; +template<> struct SCHEMA::predicate<1156> { using type = facebook::glean::cpp::schema::Search::Code::KotlinSearchByScopeWithName; }; +template<> struct SCHEMA::predicate<1157> { using type = facebook::glean::cpp::schema::Search::Code::LsifSearchByLowerCaseName; }; +template<> struct SCHEMA::predicate<1158> { using type = facebook::glean::cpp::schema::Search::Code::LsifSearchByName; }; +template<> struct SCHEMA::predicate<1159> { using type = facebook::glean::cpp::schema::Search::Code::PpSearchByLowerCaseNameKind; }; +template<> struct SCHEMA::predicate<1160> { using type = facebook::glean::cpp::schema::Search::Code::PpSearchByNameKind; }; +template<> struct SCHEMA::predicate<1161> { using type = facebook::glean::cpp::schema::Search::Code::PythonSearchByLocalNameFact; }; +template<> struct SCHEMA::predicate<1162> { using type = facebook::glean::cpp::schema::Search::Code::PythonSearchByLowerCaseName; }; +template<> struct SCHEMA::predicate<1163> { using type = facebook::glean::cpp::schema::Search::Code::PythonSearchByLowerCaseScope; }; +template<> struct SCHEMA::predicate<1164> { using type = facebook::glean::cpp::schema::Search::Code::PythonSearchByName; }; +template<> struct SCHEMA::predicate<1165> { using type = facebook::glean::cpp::schema::Search::Code::PythonSearchByScope; }; +template<> struct SCHEMA::predicate<1166> { using type = facebook::glean::cpp::schema::Search::Code::PythonSearchByScopeWithName; }; +template<> struct SCHEMA::predicate<1167> { using type = facebook::glean::cpp::schema::Search::Code::SearchByLowerCaseNameAndLanguage; }; +template<> struct SCHEMA::predicate<1168> { using type = facebook::glean::cpp::schema::Search::Code::SearchByLowerCaseNameKindAndLanguage; }; +template<> struct SCHEMA::predicate<1169> { using type = facebook::glean::cpp::schema::Search::Code::SearchByLowerCaseScope; }; +template<> struct SCHEMA::predicate<1170> { using type = facebook::glean::cpp::schema::Search::Code::SearchByLowerCaseScopeAndKind; }; +template<> struct SCHEMA::predicate<1171> { using type = facebook::glean::cpp::schema::Search::Code::SearchByNameAndLanguage; }; +template<> struct SCHEMA::predicate<1172> { using type = facebook::glean::cpp::schema::Search::Code::SearchByNameKindAndLanguage; }; +template<> struct SCHEMA::predicate<1173> { using type = facebook::glean::cpp::schema::Search::Code::SearchByScope; }; +template<> struct SCHEMA::predicate<1174> { using type = facebook::glean::cpp::schema::Search::Code::SearchByScopeAndKind; }; +template<> struct SCHEMA::predicate<1175> { using type = facebook::glean::cpp::schema::Search::Code::ThriftSearchByLowerCaseName; }; +template<> struct SCHEMA::predicate<1176> { using type = facebook::glean::cpp::schema::Search::Code::ThriftSearchByName; }; +template<> struct SCHEMA::predicate<1177> { using type = facebook::glean::cpp::schema::Codemarkup::FileCall; }; +template<> struct SCHEMA::predicate<1178> { using type = facebook::glean::cpp::schema::Codemarkup::Hack::ConvertCallArguments; }; +template<> struct SCHEMA::predicate<1179> { using type = facebook::glean::cpp::schema::Codemarkup::Hack::ConvertMaybeCallArguments; }; +template<> struct SCHEMA::predicate<1180> { using type = facebook::glean::cpp::schema::Codemarkup::Hack::HackFileCall; }; +template<> struct SCHEMA::predicate<1181> { using type = facebook::glean::cpp::schema::Codemarkup::Python::ConvertCallArguments; }; +template<> struct SCHEMA::predicate<1182> { using type = facebook::glean::cpp::schema::Codemarkup::Python::PythonFileCall; }; +template<> struct SCHEMA::predicate<1183> { using type = facebook::glean::cpp::schema::Codemarkup::Hack::ConvertArgument; }; +template<> struct SCHEMA::predicate<1184> { using type = facebook::glean::cpp::schema::Codemarkup::Python::ConvertArgument; }; +template<> struct SCHEMA::predicate<1185> { using type = facebook::glean::cpp::schema::Codemarkup::EntityToAnnotations; }; +template<> struct SCHEMA::predicate<1186> { using type = facebook::glean::cpp::schema::Code::Quality::Issue; }; +template<> struct SCHEMA::predicate<1187> { using type = facebook::glean::cpp::schema::Cxx1::FunctionName; }; +template<> struct SCHEMA::predicate<1188> { using type = facebook::glean::cpp::schema::Cxx1::RecordDeclaration; }; +template<> struct SCHEMA::predicate<1189> { using type = facebook::glean::cpp::schema::Cxx1::DeclarationScope; }; +template<> struct SCHEMA::predicate<1190> { using type = facebook::glean::cpp::schema::Cxx1::EnumDeclarationByName; }; +template<> struct SCHEMA::predicate<1191> { using type = facebook::glean::cpp::schema::Cxx1::FunctionDeclarationByNameScope; }; +template<> struct SCHEMA::predicate<1192> { using type = facebook::glean::cpp::schema::Cxx1::FunctionQName; }; +template<> struct SCHEMA::predicate<1193> { using type = facebook::glean::cpp::schema::Cxx1::QName; }; +template<> struct SCHEMA::predicate<1194> { using type = facebook::glean::cpp::schema::Cxx1::RecordDeclarationClass; }; +template<> struct SCHEMA::predicate<1195> { using type = facebook::glean::cpp::schema::Cxx1::RecordDeclarationStruct; }; +template<> struct SCHEMA::predicate<1196> { using type = facebook::glean::cpp::schema::Cxx1::RecordDeclarationUnion; }; +template<> struct SCHEMA::predicate<1197> { using type = facebook::glean::cpp::schema::Cxx1::TypeAliasDeclarationByName; }; +template<> struct SCHEMA::predicate<1198> { using type = facebook::glean::cpp::schema::Cxx1::VariableDeclarationNonLocalByName; }; +template<> struct SCHEMA::predicate<1199> { using type = facebook::glean::cpp::schema::Search::Code::CxxSearchByLowerCaseNameKindAndScopeFact; }; +template<> struct SCHEMA::predicate<1200> { using type = facebook::glean::cpp::schema::Search::Code::CxxSearchByNameKindAndScopeFact; }; +template<> struct SCHEMA::predicate<1201> { using type = facebook::glean::cpp::schema::Search::Cxx::QueryToScopeCase; }; +template<> struct SCHEMA::predicate<1202> { using type = facebook::glean::cpp::schema::Search::Cxx::SearchByNameAndScope; }; +template<> struct SCHEMA::predicate<1203> { using type = facebook::glean::cpp::schema::Search::Cxx::SearchByScope; }; +template<> struct SCHEMA::predicate<1204> { using type = facebook::glean::cpp::schema::Search::Kind::Cxx::SearchClass; }; +template<> struct SCHEMA::predicate<1205> { using type = facebook::glean::cpp::schema::Search::Kind::Cxx::SearchEnum; }; +template<> struct SCHEMA::predicate<1206> { using type = facebook::glean::cpp::schema::Search::Kind::Cxx::SearchEnumerator; }; +template<> struct SCHEMA::predicate<1207> { using type = facebook::glean::cpp::schema::Search::Kind::Cxx::SearchFunction; }; +template<> struct SCHEMA::predicate<1208> { using type = facebook::glean::cpp::schema::Search::Kind::Cxx::SearchNamespace; }; +template<> struct SCHEMA::predicate<1209> { using type = facebook::glean::cpp::schema::Search::Kind::Cxx::SearchStruct; }; +template<> struct SCHEMA::predicate<1210> { using type = facebook::glean::cpp::schema::Search::Kind::Cxx::SearchTypeAlias; }; +template<> struct SCHEMA::predicate<1211> { using type = facebook::glean::cpp::schema::Search::Kind::Cxx::SearchUnion; }; +template<> struct SCHEMA::predicate<1212> { using type = facebook::glean::cpp::schema::Search::Kind::Cxx::SearchVariable; }; +template<> struct SCHEMA::predicate<1213> { using type = facebook::glean::cpp::schema::Symbolid::Cxx::LookupDeclaration; }; +template<> struct SCHEMA::predicate<1214> { using type = facebook::glean::cpp::schema::Symbolid::Cxx::LookupDefinition; }; +template<> struct SCHEMA::predicate<1215> { using type = facebook::glean::cpp::schema::Symbolid::Cxx::LookupEnumerator; }; +template<> struct SCHEMA::predicate<1216> { using type = facebook::glean::cpp::schema::Symbolid::Cxx::LookupFunctionDeclaration; }; +template<> struct SCHEMA::predicate<1217> { using type = facebook::glean::cpp::schema::Symbolid::Cxx::LookupFunctionDefinition; }; +template<> struct SCHEMA::predicate<1218> { using type = facebook::glean::cpp::schema::Symbolid::Cxx::LookupFunctionSignatureDeclaration; }; +template<> struct SCHEMA::predicate<1219> { using type = facebook::glean::cpp::schema::Symbolid::Cxx::LookupFunctionSignatureDefinition; }; +template<> struct SCHEMA::predicate<1220> { using type = facebook::glean::cpp::schema::Symbolid::Cxx::LookupFunctionSignatureQualifierDeclaration; }; +template<> struct SCHEMA::predicate<1221> { using type = facebook::glean::cpp::schema::Symbolid::Cxx::LookupFunctionSignatureQualifierDefinition; }; +template<> struct SCHEMA::predicate<1222> { using type = facebook::glean::cpp::schema::Fbthrift::FunctionSpecification; }; +template<> struct SCHEMA::predicate<1223> { using type = facebook::glean::cpp::schema::Buckuses::UsesOfTargetHeader; }; +template<> struct SCHEMA::predicate<1224> { using type = facebook::glean::cpp::schema::Buckuses::UsesOfTarget; }; +template<> struct SCHEMA::predicate<1225> { using type = facebook::glean::cpp::schema::Buck::Meta::Oncall; }; +template<> struct SCHEMA::predicate<1226> { using type = facebook::glean::cpp::schema::Buck::Meta::ModeType; }; +template<> struct SCHEMA::predicate<1227> { using type = facebook::glean::cpp::schema::Buck::Meta::TargetModes; }; +template<> struct SCHEMA::predicate<1228> { using type = facebook::glean::cpp::schema::Buck::Meta::LocatorOncall; }; +template<> struct SCHEMA::predicate<1229> { using type = facebook::glean::cpp::schema::Buck::Meta::FileOncall; }; +template<> struct SCHEMA::predicate<1230> { using type = facebook::glean::cpp::schema::Buck::Type; }; +template<> struct SCHEMA::predicate<1231> { using type = facebook::glean::cpp::schema::Buck::TranslationUnit; }; +template<> struct SCHEMA::predicate<1232> { using type = facebook::glean::cpp::schema::Buck::TargetUses; }; +template<> struct SCHEMA::predicate<1233> { using type = facebook::glean::cpp::schema::Buck::TargetSourcesBaseModule; }; +template<> struct SCHEMA::predicate<1234> { using type = facebook::glean::cpp::schema::Buck::TargetSources; }; +template<> struct SCHEMA::predicate<1235> { using type = facebook::glean::cpp::schema::Buck::TargetOuts; }; +template<> struct SCHEMA::predicate<1236> { using type = facebook::glean::cpp::schema::Buck::TargetOut; }; +template<> struct SCHEMA::predicate<1237> { using type = facebook::glean::cpp::schema::Buck::TargetMode; }; +template<> struct SCHEMA::predicate<1238> { using type = facebook::glean::cpp::schema::Buck::TargetLocation; }; +template<> struct SCHEMA::predicate<1239> { using type = facebook::glean::cpp::schema::Buck::TargetLinkWhole; }; +template<> struct SCHEMA::predicate<1240> { using type = facebook::glean::cpp::schema::Buck::TargetIndexerName; }; +template<> struct SCHEMA::predicate<1241> { using type = facebook::glean::cpp::schema::Buck::TargetIndexer; }; +template<> struct SCHEMA::predicate<1242> { using type = facebook::glean::cpp::schema::Buck::TargetHash; }; +template<> struct SCHEMA::predicate<1243> { using type = facebook::glean::cpp::schema::Buck::TargetCall; }; +template<> struct SCHEMA::predicate<1244> { using type = facebook::glean::cpp::schema::Buck::TargetByType; }; +template<> struct SCHEMA::predicate<1245> { using type = facebook::glean::cpp::schema::Buck::TargetAttribute; }; +template<> struct SCHEMA::predicate<1246> { using type = facebook::glean::cpp::schema::Buck::Target; }; +template<> struct SCHEMA::predicate<1247> { using type = facebook::glean::cpp::schema::Buck::SourceFileLocation; }; +template<> struct SCHEMA::predicate<1248> { using type = facebook::glean::cpp::schema::Buck::SearchByLocalName; }; +template<> struct SCHEMA::predicate<1249> { using type = facebook::glean::cpp::schema::Buck::RuleKey; }; +template<> struct SCHEMA::predicate<1250> { using type = facebook::glean::cpp::schema::Buck::Platform; }; +template<> struct SCHEMA::predicate<1251> { using type = facebook::glean::cpp::schema::Buck::Owner; }; +template<> struct SCHEMA::predicate<1252> { using type = facebook::glean::cpp::schema::Buck::OutsTarget; }; +template<> struct SCHEMA::predicate<1253> { using type = facebook::glean::cpp::schema::Buck::OutputLabel; }; +template<> struct SCHEMA::predicate<1254> { using type = facebook::glean::cpp::schema::Buck::OutTarget; }; +template<> struct SCHEMA::predicate<1255> { using type = facebook::glean::cpp::schema::Buck::LocatorWithLabel; }; +template<> struct SCHEMA::predicate<1256> { using type = facebook::glean::cpp::schema::Buck::LocatorReverseDeps; }; +template<> struct SCHEMA::predicate<1257> { using type = facebook::glean::cpp::schema::Buck::LocatorReverseDep; }; +template<> struct SCHEMA::predicate<1258> { using type = facebook::glean::cpp::schema::Buck::Locator; }; +template<> struct SCHEMA::predicate<1259> { using type = facebook::glean::cpp::schema::Buck::LocalNameLowerCase; }; +template<> struct SCHEMA::predicate<1260> { using type = facebook::glean::cpp::schema::Buck::LocalName; }; +template<> struct SCHEMA::predicate<1261> { using type = facebook::glean::cpp::schema::Buck::Labels; }; +template<> struct SCHEMA::predicate<1262> { using type = facebook::glean::cpp::schema::Buck::Label; }; +template<> struct SCHEMA::predicate<1263> { using type = facebook::glean::cpp::schema::Buck::IndexerName; }; +template<> struct SCHEMA::predicate<1264> { using type = facebook::glean::cpp::schema::Buck::FileXRefs; }; +template<> struct SCHEMA::predicate<1265> { using type = facebook::glean::cpp::schema::Buck::FileToTarget; }; +template<> struct SCHEMA::predicate<1266> { using type = facebook::glean::cpp::schema::Buck::FileTarget; }; +template<> struct SCHEMA::predicate<1267> { using type = facebook::glean::cpp::schema::Buck::FileResolved; }; +template<> struct SCHEMA::predicate<1268> { using type = facebook::glean::cpp::schema::Buck::FileEntity; }; +template<> struct SCHEMA::predicate<1269> { using type = facebook::glean::cpp::schema::Buck::FileDefinition; }; +template<> struct SCHEMA::predicate<1270> { using type = facebook::glean::cpp::schema::Buck::File; }; +template<> struct SCHEMA::predicate<1271> { using type = facebook::glean::cpp::schema::Buck::FailureSources; }; +template<> struct SCHEMA::predicate<1272> { using type = facebook::glean::cpp::schema::Buck::IndexFailureX; }; +template<> struct SCHEMA::predicate<1273> { using type = facebook::glean::cpp::schema::Buck::DestinationUses; }; +template<> struct SCHEMA::predicate<1274> { using type = facebook::glean::cpp::schema::Buck::TargetDependencies; }; +template<> struct SCHEMA::predicate<1275> { using type = facebook::glean::cpp::schema::Buck::DefinitionLocation; }; +template<> struct SCHEMA::predicate<1276> { using type = facebook::glean::cpp::schema::Buck::Definition; }; +template<> struct SCHEMA::predicate<1277> { using type = facebook::glean::cpp::schema::Buck::Consumer; }; +template<> struct SCHEMA::predicate<1278> { using type = facebook::glean::cpp::schema::Buck::CallArgument; }; +template<> struct SCHEMA::predicate<1279> { using type = facebook::glean::cpp::schema::Buck::AttributeName; }; +template<> struct SCHEMA::predicate<1280> { using type = facebook::glean::cpp::schema::Buck::AttributeValue; }; +template<> struct SCHEMA::predicate<1281> { using type = facebook::glean::cpp::schema::Buck::ArgumentValue; }; } // namespace schema diff --git a/glean/schema/source/code.angle b/glean/schema/source/code.angle index 64da92b97..68f5303aa 100644 --- a/glean/schema/source/code.angle +++ b/glean/schema/source/code.angle @@ -126,8 +126,8 @@ type CallArgument = # An IdlEntity typically represents an entity defined in # a different db than the one the codemarkup predicates -# evaluate against. We attach it to a generated entity -# using codemarkup.EntityIdl. +# evaluate against. The name "IdlEntity" is badly chosen, +# since it's more general then just an idl (e.g. thrift) entity # # Example: a thrift declaration defined in fbsource.fbthrift, while # the codemarkup predicates evaluate on fbsource diff --git a/glean/schema/source/codemarkup.angle b/glean/schema/source/codemarkup.angle index 5b1270836..eb74781bf 100644 --- a/glean/schema/source/codemarkup.angle +++ b/glean/schema/source/codemarkup.angle @@ -201,9 +201,9 @@ predicate EntityLocation: (codemarkup.graphql.GraphQLEntityLocation { E, Location }; { graphql = E } = Entity); -# Maps a (generated) entity to its defining IDL. -# By joining with FileEntityXRefLocations, we can get -# generate xrefs to idl entities. +# Maps a generated entity to its source definition (typically an IDL). +# By joining with FileEntityXRefLocations, we can generate xlang xrefs +# to idl entities. predicate EntityIdl: { entity: code.Entity, @@ -215,6 +215,56 @@ predicate EntityIdl: (codemarkup.cxx.CxxEntityIdl { E, IdlEntity }; { cxx = E } = Entity) +# generic entities are either +# - plainEntity: regular entities within the same db as the source file +# - xlang entities for which target location may not be known (need to be +# resolved client side) +type GenericEntity = { + plainEntity: { xref: codemarkup.types.XRefLocation, entity : code.Entity } | + xlangEntity: { source : codemarkup.types.RangeSpan, entity : code.IdlEntity } +} + +# Finding xrefs to a generic entities +predicate FileXRefsGenericEntities: { + file: src.File, + genEntity: GenericEntity +} { File, GenEntity } where + (codemarkup.hack.HackFileEntityXRefLocations { File, XRef, E }; + { plainEntity = { xref = XRef, entity = { hack = E } } } = GenEntity ) | + (codemarkup.hack.HackFileEntityXRefLocations { File, { source = Source }, E }; + codemarkup.hack.HackEntityIdl { E, IdlEntity }; + { xlangEntity = { source = Source, entity = IdlEntity } } = GenEntity ) | + (codemarkup.flow.FlowFileEntityXRefLocations { File, XRef, E }; + { plainEntity = { xref = XRef, entity = { flow = E } } } = GenEntity ) | + (codemarkup.python.PythonFileEntityXRefLocations { File, XRef, E }; + { plainEntity = { xref = XRef, entity = { python = E } } } = GenEntity ) | + (codemarkup.cxx.CxxFileEntityXRefLocations { File, XRef, E }; + { plainEntity = { xref = XRef, entity = { cxx = E } } } = GenEntity ) | + (codemarkup.pp.PpFileEntityXRefLocations { File, XRef, E }; + { plainEntity = { xref = XRef, entity = { pp = E } } } = GenEntity ) | + (codemarkup.haskell.HaskellFileEntityXRefLocations { File, XRef, E }; + { plainEntity = { xref = XRef, entity = { hs = E } } } = GenEntity ) | + (codemarkup.buck.BuckFileEntityXRefLocations { File, XRef, E }; + { plainEntity = { xref = XRef, entity = { buck = E } } } = GenEntity) | + (codemarkup.fbthrift.ThriftFileEntityXRefLocations { File, XRef, E }; + { plainEntity = { xref = XRef, entity = { fbthrift = E } } } = GenEntity) | + (codemarkup.erlang.ErlangFileEntityXRefLocations { File, XRef, E }; + { plainEntity = { xref = XRef, entity = { erlang = E } } } = GenEntity) | + (codemarkup.lsif.LsifFileEntityXRefLocations { File, XRef, E }; + { plainEntity = { xref = XRef, entity = { lsif = E } } } = GenEntity) | + (codemarkup.scip.ScipFileEntityXRefLocations { File, XRef, E }; + { plainEntity = { xref = XRef, entity = { scip = E } } } = GenEntity) | + (codemarkup.java.JavalFileEntityXRefLocations { File, XRef, E }; + { plainEntity = { xref = XRef, entity = { java = E } } } = GenEntity) | + (codemarkup.kotlin.KotlinFileEntityXRefLocations { File, XRef, E }; + { plainEntity = { xref = XRef, entity = { kotlin = E } } } = GenEntity) | + (codemarkup.csharp.CSharpFileEntityXRefLocations { File, XRef, E }; + { plainEntity = { xref = XRef, entity = { csharp = E } } } = GenEntity) | + (codemarkup.graphql.GraphQLFileEntityXRefLocations { File, XRef, E }; + { plainEntity = { xref = XRef, entity = { graphql = E } } } = GenEntity) | + (codemarkup.dataswarm.DataswarmFileEntityXRefLocations { File, XRef, E }; + { plainEntity = { xref = XRef, entity = { dataswarm = E } } } = GenEntity); + # Finding xrefs. All references in a file and their targets predicate FileEntityXRefLocations: {