Skip to content

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

fix(ingestion): redirect a Python name alias onto its real definition (#2799)

Aman009f408deab8
diff --git a/packages/core/src/repowise/core/ingestion/call_resolver.py b/packages/core/src/repowise/core/ingestion/call_resolver.py
index 2c32e5a15..9fa4c4a81 100644
--- a/packages/core/src/repowise/core/ingestion/call_resolver.py
+++ b/packages/core/src/repowise/core/ingestion/call_resolver.py
@@ -24,7 +24,7 @@ per strategy, and it is what the edge carries.
from __future__ import annotations
-from collections import defaultdict
+from collections import Counter, defaultdict
from dataclasses import replace
from pathlib import PurePosixPath
from typing import Any
@@ -402,6 +402,12 @@ class CallResolver(
# on the body rather than the header line that announced it.
self._decl_to_def: dict[str, str] = {}
+ # Plain-name alias → the real symbol it stands for (``s`` in
+ # ``s = widget``), same-file only. Populated by ``_index_file``,
+ # applied alongside ``_decl_to_def`` in ``_redirect_to_definition``
+ # (#2791).
+ self._alias_to_target: dict[str, str] = {}
+
# Import graph: {file_path: set of imported file paths}
self._import_targets = import_targets
@@ -490,6 +496,13 @@ class CallResolver(
top_level: dict[str, str] = {}
file_methods: dict[tuple[str, str], str] = {}
representatives = self._index_overload_sets(parsed)
+ binding_counts = Counter(
+ sym.name for sym in parsed.symbols if sym.parent_name is None
+ )
+ # (alias symbol id, the bare name it aliases) — resolved against
+ # ``file_syms`` only once the whole file is indexed, so an alias
+ # written above the name it aliases is not missed by source order.
+ aliases: list[tuple[str, str, str | None]] = []
for sym in parsed.symbols:
# An overload set is indexed once, under its representative.
@@ -501,6 +514,11 @@ class CallResolver(
definitions[decl_key].append((path, index_id))
_index_bare_name(sym, index_id, file_syms, top_level)
+ if sym.alias_of is not None and (
+ binding_counts[sym.name] == 1 or "::alias@" in sym.id
+ ):
+ aliases.append((sym.id, sym.alias_of, sym.parent_name))
+
# Method index: (class_name, method_name) → symbol_id
if sym.parent_name:
key = (sym.parent_name, sym.name)
@@ -517,6 +535,21 @@ class CallResolver(
self._index_globally(path, sym, index_id)
+ for alias_id, alias_of_name, parent_name in aliases:
+ # Prefer a target in the alias's own scope before falling back
+ # to a file-wide symbol with the same name.
+ target_id = (
+ file_methods.get((parent_name, alias_of_name))
+ if parent_name is not None
+ else None
+ )
+ if target_id is None:
+ target_id = file_syms.get(alias_of_name)
+
+ # No self-redirect: ``s = s`` names nothing beyond itself.
+ if target_id is not None and target_id != alias_id:
+ self._alias_to_target[alias_id] = target_id
+
self._file_symbols[path] = file_syms
self._file_top_level[path] = top_level
self._file_methods[path] = file_methods
@@ -663,19 +696,30 @@ class CallResolver(
return self._decl_to_def
def _redirect_to_definition(self, resolved: ResolvedCall) -> ResolvedCall:
- """Move a call edge off a forward declaration onto its definition.
-
- No-op for every language but C/C++, and for the tiers that already
- landed on a definition.
+ """Redirect calls through aliases and declarations to the final target."""
+ original = resolved.callee_id
+ target = original
+ visited: set[str] = set()
+
+ while target not in visited:
+ visited.add(target)
+ next_target = self._decl_to_def.get(target)
+ if next_target is None:
+ next_target = self._alias_to_target.get(target)
+ if next_target is None:
+ break
+ target = next_target
+
+ # A cycle makes the redirect ambiguous; keep the original resolution.
+ if target in visited and (
+ self._decl_to_def.get(target) is not None
+ or self._alias_to_target.get(target) is not None
+ ):
+ return resolved
- The self-edge guard carries a recursive function whose prototype sits
- in a header: Tier 1 declines to link the call to the body it is
- already inside, Tier 2 then finds the header declaration, and the
- redirect would point the edge straight back at the caller.
- """
- target = self._decl_to_def.get(resolved.callee_id)
- if target is None or target == resolved.caller_id:
+ if target == original or target == resolved.caller_id:
return resolved
+
return ResolvedCall(
resolved.caller_id,
target,
diff --git a/packages/core/src/repowise/core/ingestion/models.py b/packages/core/src/repowise/core/ingestion/models.py
index 88ebc4c04..e67bd5e29 100644
--- a/packages/core/src/repowise/core/ingestion/models.py
+++ b/packages/core/src/repowise/core/ingestion/models.py
@@ -238,6 +238,14 @@ class Symbol:
# names its modifier nodes. Access keywords land here too; ``visibility``
# stays the field to read for those.
modifiers: tuple[str, ...] = ()
+ # The bare name this symbol is a plain alias of (``s`` in ``s = widget``,
+ # or ``s`` and ``attributes`` in ``s = attributes = widget``), else None.
+ # Set only when an assignment's right-hand side is, at any depth of a
+ # chain, a bare identifier — never for a call, an attribute access, or any
+ # other expression. The call resolver redirects a call through the alias
+ # onto whatever ``alias_of`` resolves to in the same file, the same way it
+ # redirects a C/C++ declaration onto its definition (#2791).
+ alias_of: str | None = None
@dataclass
diff --git a/packages/core/src/repowise/core/ingestion/parser/symbols.py b/packages/core/src/repowise/core/ingestion/parser/symbols.py
index cc95ba696..13bb092b9 100644
--- a/packages/core/src/repowise/core/ingestion/parser/symbols.py
+++ b/packages/core/src/repowise/core/ingestion/parser/symbols.py
@@ -2,7 +2,7 @@
from __future__ import annotations
-from dataclasses import dataclass, field
+from dataclasses import dataclass, field, replace
from tree_sitter import Node
@@ -254,6 +254,14 @@ def _extract_symbols(
symbol, def_node = built
symbols.append(symbol)
node_types.append(def_node.type)
+
+ if language == "python" and def_node.type == "assignment":
+ for alias_symbol in _python_assignment_alias_symbols(
+ symbol, def_node, file_info.path, src
+ ):
+ symbols.append(alias_symbol)
+ node_types.append(def_node.type)
+
if language == "objectivec":
container = _objc_container_node(def_node, config.parent_class_types)
objc_container_kinds.append(container.type if container else None)
@@ -565,3 +573,70 @@ def _finalize_symbols(
follow_renamed_hosts(symbols)
disambiguate_colliding_ids(anonymous, lang)
return symbols
+
+def _python_name_alias_chain(def_node: Node, src: str) -> tuple[list[str], str | None]:
+ """Every bare-identifier target of a Python assignment, and its terminal name.
+
+ ``a = b = c`` nests in tree-sitter-python: the outer assignment's own
+ ``right`` field is itself an ``assignment`` node, not a sibling target, so
+ walking ``right`` is what reaches ``b`` at all -- the query that captures
+ ``@symbol.def`` only ever matches the outermost ``a``. The walk stops, and
+ returns ``(targets_so_far, None)``, the moment a target is not a bare
+ identifier (tuple unpacking, an attribute target) or the chain bottoms out
+ on anything but a bare identifier (a call, a literal, an attribute access)
+ -- those are not an alias of a name and must not be treated as one (#2791).
+
+ Returns ``([], None)`` for a plain, non-chained ``x = <non-name>``, since
+ there is nothing beyond the one target the caller already has.
+ """
+ targets: list[str] = []
+ node: Node | None = def_node
+ while node is not None and node.type == "assignment":
+ left = node.child_by_field_name("left")
+ if left is None or left.type != "identifier":
+ return [], None
+ targets.append(_node_text(left, src))
+ node = node.child_by_field_name("right")
+ if node is None or node.type != "identifier":
+ return [], None
+ return targets, _node_text(node, src)
+
+def _python_assignment_alias_symbols(
+ symbol: Symbol, def_node: Node, file_path: str, src: str
+) -> list[Symbol]:
+ """Mark *symbol* as an alias in place, and return the chain's other targets.
+
+ ``symbol`` is already built for the outermost target (``s`` in
+ ``s = attributes = widget``), the only one the query itself captures. This
+ walks the rest of the chain and:
+
+ - sets ``symbol.alias_of`` when the chain bottoms out on a bare name, so
+ the call resolver can redirect calls through ``s`` onto ``widget``;
+ - returns one freshly built ``Symbol`` per further target (``attributes``
+ here), none of which the query ever sees at all today, each carrying
+ the same ``alias_of``.
+
+ A target equal to the terminal name (``s = s``) is left as an ordinary,
+ non-aliased symbol -- there is no other definition to redirect onto.
+ Returns ``[]``, and leaves ``symbol`` untouched, for every shape outside
+ this issue's scope: no chain, a non-identifier target, or a right-hand
+ side that is not a bare name (#2791).
+ """
+ targets, terminal = _python_name_alias_chain(def_node, src)
+ if terminal is None or not targets:
+ return []
+ if targets[0] != terminal:
+ symbol.alias_of = terminal
+
+ extra: list[Symbol] = []
+ for target in targets[1:]:
+ extra.append(
+ replace(
+ symbol,
+ id=f"{file_path}::{target}::alias@{def_node.start_byte}",
+ name=target,
+ qualified_name=_build_qualified_name(file_path, None, target),
+ alias_of=terminal if target != terminal else None,
+ )
+ )
+ return extra
\ No newline at end of file
diff --git a/tests/unit/ingestion/parser/golden/cpp.json b/tests/unit/ingestion/parser/golden/cpp.json
index 03fa519ad..6fdf33ff3 100644
--- a/tests/unit/ingestion/parser/golden/cpp.json
+++ b/tests/unit/ingestion/parser/golden/cpp.json
@@ -32,7 +32,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/cpp/assertions.cpp::testFewAsserts",
@@ -54,7 +55,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -377,7 +379,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/cpp/classes.cpp::Cohesive::add",
@@ -399,7 +402,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/cpp/classes.cpp::Cohesive::average",
@@ -421,7 +425,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/cpp/classes.cpp::Cohesive::reset",
@@ -443,7 +448,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/cpp/classes.cpp::Cohesive::describe",
@@ -465,7 +471,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/cpp/classes.cpp::Splintered",
@@ -487,7 +494,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/cpp/classes.cpp::Splintered::setA",
@@ -509,7 +517,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/cpp/classes.cpp::Splintered::getA",
@@ -531,7 +540,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/cpp/classes.cpp::Splintered::setB",
@@ -553,7 +563,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/cpp/classes.cpp::Splintered::getB",
@@ -575,7 +586,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/cpp/classes.cpp::Splintered::loner",
@@ -597,7 +609,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -695,7 +708,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/cpp/nested.cpp::shallow",
@@ -717,7 +731,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/cpp/nested.cpp::manyBranches",
@@ -739,7 +754,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
diff --git a/tests/unit/ingestion/parser/golden/csharp.json b/tests/unit/ingestion/parser/golden/csharp.json
index e0e91b228..e0a98f0df 100644
--- a/tests/unit/ingestion/parser/golden/csharp.json
+++ b/tests/unit/ingestion/parser/golden/csharp.json
@@ -1,9 +1,9 @@
{
- "csharp/assertions.cs": {
+ "csharp/PerfIoInLoop.cs": {
"file_info": {
- "path": "lang_samples/csharp/assertions.cs",
+ "path": "lang_samples/csharp/PerfIoInLoop.cs",
"language": "csharp",
- "size_bytes": 719,
+ "size_bytes": 2546,
"is_test": false,
"is_config": false,
"is_api_contract": false,
@@ -13,13 +13,13 @@
},
"symbols": [
{
- "id": "lang_samples/csharp/assertions.cs::Tests",
- "name": "Tests",
- "qualified_name": "lang_samples.csharp.assertions.Tests",
+ "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop",
+ "name": "PerfIoInLoop",
+ "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop",
"kind": "class",
- "signature": "class Tests",
- "start_line": 4,
- "end_line": 32,
+ "signature": "class PerfIoInLoop",
+ "start_line": 13,
+ "end_line": 88,
"docstring": null,
"decorators": [],
"visibility": "internal",
@@ -32,37 +32,41 @@
"type_parameter_count": 0,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
- "id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
- "name": "TestManyAsserts",
- "qualified_name": "lang_samples.csharp.assertions.Tests.TestManyAsserts",
+ "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::EfAsyncN1",
+ "name": "EfAsyncN1",
+ "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop.EfAsyncN1",
"kind": "method",
- "signature": "TestManyAsserts() -> void",
- "start_line": 6,
- "end_line": 24,
+ "signature": "EfAsyncN1(DbContext ctx, List<int> ids) -> Task",
+ "start_line": 17,
+ "end_line": 23,
"docstring": null,
"decorators": [],
"visibility": "private",
"is_async": false,
"complexity_estimate": 1,
"language": "csharp",
- "parent_name": "Tests",
+ "parent_name": "PerfIoInLoop",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [
+ "async"
+ ],
+ "alias_of": null
},
{
- "id": "lang_samples/csharp/assertions.cs::Tests::TestFewAsserts",
- "name": "TestFewAsserts",
- "qualified_name": "lang_samples.csharp.assertions.Tests.TestFewAsserts",
+ "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::HttpInLoop",
+ "name": "HttpInLoop",
+ "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop.HttpInLoop",
"kind": "method",
- "signature": "TestFewAsserts() -> void",
- "start_line": 26,
+ "signature": "HttpInLoop(HttpClient c, List<string> urls) -> Task",
+ "start_line": 25,
"end_line": 31,
"docstring": null,
"decorators": [],
@@ -70,175 +74,321 @@
"is_async": false,
"complexity_estimate": 1,
"language": "csharp",
- "parent_name": "Tests",
+ "parent_name": "PerfIoInLoop",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
- }
- ],
- "imports": [],
- "exports": [],
- "export_aliases": {},
- "calls": [
+ "modifiers": [
+ "async"
+ ],
+ "alias_of": null
+ },
{
- "target_name": "Equal",
- "receiver_name": "Assert",
- "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
- "line": 8,
- "argument_count": 2,
- "receiver_call": null,
- "scope_name": null,
- "edge_type": "calls",
- "supplied_props": null,
- "bare_name_fallback": false,
- "spawned": false,
- "argument_types": null,
- "argument_names": null
+ "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::SaveInLoop",
+ "name": "SaveInLoop",
+ "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop.SaveInLoop",
+ "kind": "method",
+ "signature": "SaveInLoop(DbContext ctx, List<int> ids) -> Task",
+ "start_line": 33,
+ "end_line": 39,
+ "docstring": null,
+ "decorators": [],
+ "visibility": "private",
+ "is_async": false,
+ "complexity_estimate": 1,
+ "language": "csharp",
+ "parent_name": "PerfIoInLoop",
+ "is_exported_symbol": false,
+ "is_declaration": false,
+ "type_parameter_count": null,
+ "extension_receiver": null,
+ "written_receiver": null,
+ "modifiers": [
+ "async"
+ ],
+ "alias_of": null
},
{
- "target_name": "Equal",
- "receiver_name": "Assert",
- "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
- "line": 9,
- "argument_count": 2,
- "receiver_call": null,
- "scope_name": null,
- "edge_type": "calls",
- "supplied_props": null,
- "bare_name_fallback": false,
- "spawned": false,
- "argument_types": null,
- "argument_names": null
+ "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::FileReadInLoop",
+ "name": "FileReadInLoop",
+ "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop.FileReadInLoop",
+ "kind": "method",
+ "signature": "FileReadInLoop(List<string> paths) -> void",
+ "start_line": 41,
+ "end_line": 47,
+ "docstring": null,
+ "decorators": [],
+ "visibility": "private",
+ "is_async": false,
+ "complexity_estimate": 1,
+ "language": "csharp",
+ "parent_name": "PerfIoInLoop",
+ "is_exported_symbol": false,
+ "is_declaration": false,
+ "type_parameter_count": null,
+ "extension_receiver": null,
+ "written_receiver": null,
+ "modifiers": [],
+ "alias_of": null
},
{
- "target_name": "Equal",
- "receiver_name": "Assert",
- "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
- "line": 10,
- "argument_count": 2,
- "receiver_call": null,
- "scope_name": null,
- "edge_type": "calls",
- "supplied_props": null,
- "bare_name_fallback": false,
- "spawned": false,
- "argument_types": null,
- "argument_names": null
+ "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::SyncLinqInLoop",
+ "name": "SyncLinqInLoop",
+ "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop.SyncLinqInLoop",
+ "kind": "method",
+ "signature": "SyncLinqInLoop(DbContext ctx, List<int> ids) -> void",
+ "start_line": 49,
+ "end_line": 55,
+ "docstring": null,
+ "decorators": [],
+ "visibility": "private",
+ "is_async": false,
+ "complexity_estimate": 1,
+ "language": "csharp",
+ "parent_name": "PerfIoInLoop",
+ "is_exported_symbol": false,
+ "is_declaration": false,
+ "type_parameter_count": null,
+ "extension_receiver": null,
+ "written_receiver": null,
+ "modifiers": [],
+ "alias_of": null
},
{
- "target_name": "Equal",
- "receiver_name": "Assert",
- "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
- "line": 11,
- "argument_count": 2,
- "receiver_call": null,
- "scope_name": null,
- "edge_type": "calls",
- "supplied_props": null,
- "bare_name_fallback": false,
- "spawned": false,
- "argument_types": null,
- "argument_names": null
+ "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::StringConcatInLoop",
+ "name": "StringConcatInLoop",
+ "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop.StringConcatInLoop",
+ "kind": "method",
+ "signature": "StringConcatInLoop(List<string> rows) -> string",
+ "start_line": 57,
+ "end_line": 65,
+ "docstring": null,
+ "decorators": [],
+ "visibility": "private",
+ "is_async": false,
+ "complexity_estimate": 1,
+ "language": "csharp",
+ "parent_name": "PerfIoInLoop",
+ "is_exported_symbol": false,
+ "is_declaration": false,
+ "type_parameter_count": null,
+ "extension_receiver": null,
+ "written_receiver": null,
+ "modifiers": [],
+ "alias_of": null
},
{
- "target_name": "Equal",
- "receiver_name": "Assert",
- "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
- "line": 12,
- "argument_count": 2,
- "receiver_call": null,
- "scope_name": null,
- "edge_type": "calls",
- "supplied_props": null,
- "bare_name_fallback": false,
- "spawned": false,
- "argument_types": null,
- "argument_names": null
+ "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::SyncOverAsync",
+ "name": "SyncOverAsync",
+ "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop.SyncOverAsync",
+ "kind": "method",
+ "signature": "SyncOverAsync(Task<int> task) -> Task",
+ "start_line": 67,
+ "end_line": 71,
+ "docstring": null,
+ "decorators": [],
+ "visibility": "private",
+ "is_async": false,
+ "complexity_estimate": 1,
+ "language": "csharp",
+ "parent_name": "PerfIoInLoop",
+ "is_exported_symbol": false,
+ "is_declaration": false,
+ "type_parameter_count": null,
+ "extension_receiver": null,
+ "written_receiver": null,
+ "modifiers": [
+ "async"
+ ],
+ "alias_of": null
},
{
- "target_name": "Equal",
- "receiver_name": "Assert",
- "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
- "line": 13,
- "argument_count": 2,
- "receiver_call": null,
- "scope_name": null,
- "edge_type": "calls",
- "supplied_props": null,
- "bare_name_fallback": false,
- "spawned": false,
- "argument_types": null,
- "argument_names": null
+ "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::PureCallInLoop",
+ "name": "PureCallInLoop",
+ "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop.PureCallInLoop",
+ "kind": "method",
+ "signature": "PureCallInLoop(List<int> items) -> void",
+ "start_line": 75,
+ "end_line": 82,
+ "docstring": null,
+ "decorators": [],
+ "visibility": "private",
+ "is_async": false,
+ "complexity_estimate": 1,
+ "language": "csharp",
+ "parent_name": "PerfIoInLoop",
+ "is_exported_symbol": false,
+ "is_declaration": false,
+ "type_parameter_count": null,
+ "extension_receiver": null,
+ "written_receiver": null,
+ "modifiers": [],
+ "alias_of": null
},
{
- "target_name": "Equal",
- "receiver_name": "Assert",
- "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
- "line": 14,
- "argument_count": 2,
- "receiver_call": null,
- "scope_name": null,
- "edge_type": "calls",
- "supplied_props": null,
- "bare_name_fallback": false,
- "spawned": false,
- "argument_types": null,
- "argument_names": null
+ "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::AwaitedAsyncResult",
+ "name": "AwaitedAsyncResult",
+ "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop.AwaitedAsyncResult",
+ "kind": "method",
+ "signature": "AwaitedAsyncResult(Task<int> task) -> Task",
+ "start_line": 84,
+ "end_line": 87,
+ "docstring": null,
+ "decorators": [],
+ "visibility": "private",
+ "is_async": false,
+ "complexity_estimate": 1,
+ "language": "csharp",
+ "parent_name": "PerfIoInLoop",
+ "is_exported_symbol": false,
+ "is_declaration": false,
+ "type_parameter_count": null,
+ "extension_receiver": null,
+ "written_receiver": null,
+ "modifiers": [
+ "async"
+ ],
+ "alias_of": null
+ }
+ ],
+ "imports": [
+ {
+ "raw_statement": "using System.Collections.Generic;",
+ "module_path": "System.Collections.Generic",
+ "imported_names": [
+ "Generic"
+ ],
+ "is_relative": false,
+ "resolved_file": null,
+ "bindings": [
+ {
+ "local_name": "Generic",
+ "exported_name": "System.Collections.Generic",
+ "source_file": null,
+ "is_module_alias": false,
+ "is_global": false,
+ "is_static_import": false,
+ "line": null,
+ "column": null
+ }
+ ],
+ "is_reexport": false,
+ "is_module_declaration": false,
+ "type_only": false,
+ "deferred": false
},
{
- "target_name": "Equal",
- "receiver_name": "Assert",
- "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
- "line": 15,
- "argument_count": 2,
- "receiver_call": null,
- "scope_name": null,
- "edge_type": "calls",
- "supplied_props": null,
- "bare_name_fallback": false,
- "spawned": false,
- "argument_types": null,
- "argument_names": null
+ "raw_statement": "using System.IO;",
+ "module_path": "System.IO",
+ "imported_names": [
+ "IO"
+ ],
+ "is_relative": false,
+ "resolved_file": null,
+ "bindings": [
+ {
+ "local_name": "IO",
+ "exported_name": "System.IO",
+ "source_file": null,
+ "is_module_alias": false,
+ "is_global": false,
+ "is_static_import": false,
+ "line": null,
+ "column": null
+ }
+ ],
+ "is_reexport": false,
+ "is_module_declaration": false,
+ "type_only": false,
+ "deferred": false
},
{
- "target_name": "Equal",
- "receiver_name": "Assert",
- "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
- "line": 16,
- "argument_count": 2,
- "receiver_call": null,
- "scope_name": null,
- "edge_type": "calls",
- "supplied_props": null,
- "bare_name_fallback": false,
- "spawned": false,
- "argument_types": null,
- "argument_names": null
+ "raw_statement": "using System.Net.Http;",
+ "module_path": "System.Net.Http",
+ "imported_names": [
+ "Http"
+ ],
+ "is_relative": false,
+ "resolved_file": null,
+ "bindings": [
+ {
+ "local_name": "Http",
+ "exported_name": "System.Net.Http",
+ "source_file": null,
+ "is_module_alias": false,
+ "is_global": false,
+ "is_static_import": false,
+ "line": null,
+ "column": null
+ }
+ ],
+ "is_reexport": false,
+ "is_module_declaration": false,
+ "type_only": false,
+ "deferred": false
},
{
- "target_name": "Equal",
- "receiver_name": "Assert",
- "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
- "line": 17,
- "argument_count": 2,
- "receiver_call": null,
- "scope_name": null,
- "edge_type": "calls",
- "supplied_props": null,
- "bare_name_fallback": false,
- "spawned": false,
- "argument_types": null,
- "argument_names": null
+ "raw_statement": "using System.Threading.Tasks;",
+ "module_path": "System.Threading.Tasks",
+ "imported_names": [
+ "Tasks"
+ ],
+ "is_relative": false,
+ "resolved_file": null,
+ "bindings": [
+ {
+ "local_name": "Tasks",
+ "exported_name": "System.Threading.Tasks",
+ "source_file": null,
+ "is_module_alias": false,
+ "is_global": false,
+ "is_static_import": false,
+ "line": null,
+ "column": null
+ }
+ ],
+ "is_reexport": false,
+ "is_module_declaration": false,
+ "type_only": false,
+ "deferred": false
},
{
- "target_name": "Equal",
- "receiver_name": "Assert",
- "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
- "line": 18,
- "argument_count": 2,
+ "raw_statement": "using Microsoft.EntityFrameworkCore;",
+ "module_path": "Microsoft.EntityFrameworkCore",
+ "imported_names": [
+ "EntityFrameworkCore"
+ ],
+ "is_relative": false,
+ "resolved_file": null,
+ "bindings": [
+ {
+ "local_name": "EntityFrameworkCore",
+ "exported_name": "Microsoft.EntityFrameworkCore",
+ "source_file": null,
+ "is_module_alias": false,
+ "is_global": false,
+ "is_static_import": false,
+ "line": null,
+ "column": null
+ }
+ ],
+ "is_reexport": false,
+ "is_module_declaration": false,
+ "type_only": false,
+ "deferred": false
+ }
+ ],
+ "exports": [],
+ "export_aliases": {},
+ "calls": [
+ {
+ "target_name": "GetAsync",
+ "receiver_name": "c",
+ "caller_symbol_id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::HttpInLoop",
+ "line": 29,
+ "argument_count": 1,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
@@ -249,11 +399,11 @@
"argument_names": null
},
{
- "target_name": "Equal",
- "receiver_name": "Assert",
- "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
- "line": 19,
- "argument_count": 2,
+ "target_name": "SaveChangesAsync",
+ "receiver_name": "ctx",
+ "caller_symbol_id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::SaveInLoop",
+ "line": 37,
+ "argument_count": 0,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
@@ -264,11 +414,11 @@
"argument_names": null
},
{
- "target_name": "Equal",
- "receiver_name": "Assert",
- "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
- "line": 20,
- "argument_count": 2,
+ "target_name": "ReadAllText",
+ "receiver_name": "File",
+ "caller_symbol_id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::FileReadInLoop",
+ "line": 45,
+ "argument_count": 1,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
@@ -279,11 +429,11 @@
"argument_names": null
},
{
- "target_name": "Equal",
- "receiver_name": "Assert",
- "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
- "line": 21,
- "argument_count": 2,
+ "target_name": "Wait",
+ "receiver_name": "task",
+ "caller_symbol_id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::SyncOverAsync",
+ "line": 70,
+ "argument_count": 0,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
@@ -292,82 +442,78 @@
"spawned": false,
"argument_types": null,
"argument_names": null
+ }
+ ],
+ "heritage": [],
+ "docstring": null,
+ "parse_errors": [],
+ "content_hash": "cab5cdfc3cc871eb0989d7c78e3e049a2764103471b8ecf11d06cba740d156ff",
+ "type_refs": [
+ {
+ "type_name": "DbContext",
+ "line": 17,
+ "origin": "method_param"
},
{
- "target_name": "Equal",
- "receiver_name": "Assert",
- "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
- "line": 22,
- "argument_count": 2,
- "receiver_call": null,
- "scope_name": null,
- "edge_type": "calls",
- "supplied_props": null,
- "bare_name_fallback": false,
- "spawned": false,
- "argument_types": null,
- "argument_names": null
+ "type_name": "List",
+ "line": 17,
+ "origin": "method_param"
},
{
- "target_name": "Equal",
- "receiver_name": "Assert",
- "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
- "line": 23,
- "argument_count": 2,
- "receiver_call": null,
- "scope_name": null,
- "edge_type": "calls",
- "supplied_props": null,
- "bare_name_fallback": false,
- "spawned": false,
- "argument_types": null,
- "argument_names": null
+ "type_name": "HttpClient",
+ "line": 25,
+ "origin": "method_param"
},
{
- "target_name": "Equal",
- "receiver_name": "Assert",
- "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestFewAsserts",
- "line": 28,
- "argument_count": 2,
- "receiver_call": null,
- "scope_name": null,
- "edge_type": "calls",
- "supplied_props": null,
- "bare_name_fallback": false,
- "spawned": false,
- "argument_types": null,
- "argument_names": null
+ "type_name": "List",
+ "line": 25,
+ "origin": "method_param"
},
{
- "target_name": "Equal",
- "receiver_name": "Assert",
- "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestFewAsserts",
- "line": 30,
- "argument_count": 2,
- "receiver_call": null,
- "scope_name": null,
- "edge_type": "calls",
- "supplied_props": null,
- "bare_name_fallback": false,
- "spawned": false,
- "argument_types": null,
- "argument_names": null
+ "type_name": "DbContext",
+ "line": 33,
+ "origin": "method_param"
+ },
+ {
+ "type_name": "List",
+ "line": 33,
+ "origin": "method_param"
+ },
+ {
+ "type_name": "List",
+ "line": 41,
+ "origin": "method_param"
+ },
+ {
+ "type_name": "DbContext",
+ "line": 49,
+ "origin": "method_param"
+ },
+ {
+ "type_name": "List",
+ "line": 49,
+ "origin": "method_param"
+ },
+ {
+ "type_name": "List",
+ "line": 57,
+ "origin": "method_param"
+ },
+ {
+ "type_name": "List",
+ "line": 75,
+ "origin": "method_param"
}
],
- "heritage": [],
- "docstring": null,
- "parse_errors": [],
- "content_hash": "7f2ffc31a658836b62dd2121ba223635e344785b3395e064dca78d501c2984b8",
- "type_refs": [],
"local_refs": [],
"registrars": [],
"references": []
},
- "csharp/classes.cs": {
+ "csharp/assertions.cs": {
"file_info": {
- "path": "lang_samples/csharp/classes.cs",
+ "path": "lang_samples/csharp/assertions.cs",
"language": "csharp",
- "size_bytes": 849,
+ "size_bytes": 719,
"is_test": false,
"is_config": false,
"is_api_contract": false,
@@ -377,13 +523,13 @@
},
"symbols": [
{
- "id": "lang_samples/csharp/classes.cs::Cohesive",
- "name": "Cohesive",
- "qualified_name": "lang_samples.csharp.classes.Cohesive",
+ "id": "lang_samples/csharp/assertions.cs::Tests",
+ "name": "Tests",
+ "qualified_name": "lang_samples.csharp.assertions.Tests",
"kind": "class",
- "signature": "class Cohesive",
+ "signature": "class Tests",
"start_line": 4,
- "end_line": 30,
+ "end_line": 32,
"docstring": null,
"decorators": [],
"visibility": "internal",
@@ -396,468 +542,345 @@
"type_parameter_count": 0,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
- "id": "lang_samples/csharp/classes.cs::Cohesive::total",
- "name": "total",
- "qualified_name": "lang_samples.csharp.classes.Cohesive.total",
- "kind": "variable",
- "signature": "total",
+ "id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
+ "name": "TestManyAsserts",
+ "qualified_name": "lang_samples.csharp.assertions.Tests.TestManyAsserts",
+ "kind": "method",
+ "signature": "TestManyAsserts() -> void",
"start_line": 6,
- "end_line": 6,
+ "end_line": 24,
"docstring": null,
"decorators": [],
"visibility": "private",
"is_async": false,
"complexity_estimate": 1,
"language": "csharp",
- "parent_name": "Cohesive",
+ "parent_name": "Tests",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
- "id": "lang_samples/csharp/classes.cs::Cohesive::count",
- "name": "count",
- "qualified_name": "lang_samples.csharp.classes.Cohesive.count",
- "kind": "variable",
- "signature": "count",
- "start_line": 7,
- "end_line": 7,
+ "id": "lang_samples/csharp/assertions.cs::Tests::TestFewAsserts",
+ "name": "TestFewAsserts",
+ "qualified_name": "lang_samples.csharp.assertions.Tests.TestFewAsserts",
+ "kind": "method",
+ "signature": "TestFewAsserts() -> void",
+ "start_line": 26,
+ "end_line": 31,
"docstring": null,
"decorators": [],
"visibility": "private",
"is_async": false,
"complexity_estimate": 1,
"language": "csharp",
- "parent_name": "Cohesive",
+ "parent_name": "Tests",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
- },
+ "modifiers": [],
+ "alias_of": null
+ }
+ ],
+ "imports": [],
+ "exports": [],
+ "export_aliases": {},
+ "calls": [
{
- "id": "lang_samples/csharp/classes.cs::Cohesive::Add",
- "name": "Add",
- "qualified_name": "lang_samples.csharp.classes.Cohesive.Add",
- "kind": "method",
- "signature": "Add(int n) -> void",
- "start_line": 9,
- "end_line": 13,
- "docstring": null,
- "decorators": [],
- "visibility": "public",
- "is_async": false,
- "complexity_estimate": 1,
- "language": "csharp",
- "parent_name": "Cohesive",
- "is_exported_symbol": false,
- "is_declaration": false,
- "type_parameter_count": null,
- "extension_receiver": null,
- "written_receiver": null,
- "modifiers": [
- "public"
- ]
+ "target_name": "Equal",
+ "receiver_name": "Assert",
+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
+ "line": 8,
+ "argument_count": 2,
+ "receiver_call": null,
+ "scope_name": null,
+ "edge_type": "calls",
+ "supplied_props": null,
+ "bare_name_fallback": false,
+ "spawned": false,
+ "argument_types": null,
+ "argument_names": null
},
{
- "id": "lang_samples/csharp/classes.cs::Cohesive::Average",
- "name": "Average",
- "qualified_name": "lang_samples.csharp.classes.Cohesive.Average",
- "kind": "method",
- "signature": "Average() -> int",
- "start_line": 15,
- "end_line": 18,
- "docstring": null,
- "decorators": [],
- "visibility": "public",
- "is_async": false,
- "complexity_estimate": 1,
- "language": "csharp",
- "parent_name": "Cohesive",
- "is_exported_symbol": false,
- "is_declaration": false,
- "type_parameter_count": null,
- "extension_receiver": null,
- "written_receiver": null,
- "modifiers": [
- "public"
- ]
+ "target_name": "Equal",
+ "receiver_name": "Assert",
+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
+ "line": 9,
+ "argument_count": 2,
+ "receiver_call": null,
+ "scope_name": null,
+ "edge_type": "calls",
+ "supplied_props": null,
+ "bare_name_fallback": false,
+ "spawned": false,
+ "argument_types": null,
+ "argument_names": null
},
{
- "id": "lang_samples/csharp/classes.cs::Cohesive::Reset",
- "name": "Reset",
- "qualified_name": "lang_samples.csharp.classes.Cohesive.Reset",
- "kind": "method",
- "signature": "Reset() -> void",
- "start_line": 20,
- "end_line": 24,
- "docstring": null,
- "decorators": [],
- "visibility": "public",
- "is_async": false,
- "complexity_estimate": 1,
- "language": "csharp",
- "parent_name": "Cohesive",
- "is_exported_symbol": false,
- "is_declaration": false,
- "type_parameter_count": null,
- "extension_receiver": null,
- "written_receiver": null,
- "modifiers": [
- "public"
- ]
+ "target_name": "Equal",
+ "receiver_name": "Assert",
+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
+ "line": 10,
+ "argument_count": 2,
+ "receiver_call": null,
+ "scope_name": null,
+ "edge_type": "calls",
+ "supplied_props": null,
+ "bare_name_fallback": false,
+ "spawned": false,
+ "argument_types": null,
+ "argument_names": null
},
{
- "id": "lang_samples/csharp/classes.cs::Cohesive::Describe",
- "name": "Describe",
- "qualified_name": "lang_samples.csharp.classes.Cohesive.Describe",
- "kind": "method",
- "signature": "Describe() -> int",
- "start_line": 26,
- "end_line": 29,
- "docstring": null,
- "decorators": [],
- "visibility": "public",
- "is_async": false,
- "complexity_estimate": 1,
- "language": "csharp",
- "parent_name": "Cohesive",
- "is_exported_symbol": false,
- "is_declaration": false,
- "type_parameter_count": null,
- "extension_receiver": null,
- "written_receiver": null,
- "modifiers": [
- "public"
- ]
+ "target_name": "Equal",
+ "receiver_name": "Assert",
+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
+ "line": 11,
+ "argument_count": 2,
+ "receiver_call": null,
+ "scope_name": null,
+ "edge_type": "calls",
+ "supplied_props": null,
+ "bare_name_fallback": false,
+ "spawned": false,
+ "argument_types": null,
+ "argument_names": null
},
{
- "id": "lang_samples/csharp/classes.cs::Splintered",
- "name": "Splintered",
- "qualified_name": "lang_samples.csharp.classes.Splintered",
- "kind": "class",
- "signature": "class Splintered",
- "start_line": 32,
- "end_line": 61,
- "docstring": null,
- "decorators": [],
- "visibility": "internal",
- "is_async": false,
- "complexity_estimate": 1,
- "language": "csharp",
- "parent_name": null,
- "is_exported_symbol": false,
- "is_declaration": false,
- "type_parameter_count": 0,
- "extension_receiver": null,
- "written_receiver": null,
- "modifiers": []
+ "target_name": "Equal",
+ "receiver_name": "Assert",
+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
+ "line": 12,
+ "argument_count": 2,
+ "receiver_call": null,
+ "scope_name": null,
+ "edge_type": "calls",
+ "supplied_props": null,
+ "bare_name_fallback": false,
+ "spawned": false,
+ "argument_types": null,
+ "argument_names": null
},
{
- "id": "lang_samples/csharp/classes.cs::Splintered::a",
- "name": "a",
- "qualified_name": "lang_samples.csharp.classes.Splintered.a",
- "kind": "variable",
- "signature": "a",
- "start_line": 34,
- "end_line": 34,
- "docstring": null,
- "decorators": [],
- "visibility": "private",
- "is_async": false,
- "complexity_estimate": 1,
- "language": "csharp",
- "parent_name": "Splintered",
- "is_exported_symbol": false,
- "is_declaration": false,
- "type_parameter_count": null,
- "extension_receiver": null,
- "written_receiver": null,
- "modifiers": []
+ "target_name": "Equal",
+ "receiver_name": "Assert",
+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
+ "line": 13,
+ "argument_count": 2,
+ "receiver_call": null,
+ "scope_name": null,
+ "edge_type": "calls",
+ "supplied_props": null,
+ "bare_name_fallback": false,
+ "spawned": false,
+ "argument_types": null,
+ "argument_names": null
},
{
- "id": "lang_samples/csharp/classes.cs::Splintered::b",
- "name": "b",
- "qualified_name": "lang_samples.csharp.classes.Splintered.b",
- "kind": "variable",
- "signature": "b",
- "start_line": 35,
- "end_line": 35,
- "docstring": null,
- "decorators": [],
- "visibility": "private",
- "is_async": false,
- "complexity_estimate": 1,
- "language": "csharp",
- "parent_name": "Splintered",
- "is_exported_symbol": false,
- "is_declaration": false,
- "type_parameter_count": null,
- "extension_receiver": null,
- "written_receiver": null,
- "modifiers": []
+ "target_name": "Equal",
+ "receiver_name": "Assert",
+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
+ "line": 14,
+ "argument_count": 2,
+ "receiver_call": null,
+ "scope_name": null,
+ "edge_type": "calls",
+ "supplied_props": null,
+ "bare_name_fallback": false,
+ "spawned": false,
+ "argument_types": null,
+ "argument_names": null
},
{
- "id": "lang_samples/csharp/classes.cs::Splintered::SetA",
- "name": "SetA",
- "qualified_name": "lang_samples.csharp.classes.Splintered.SetA",
- "kind": "method",
- "signature": "SetA(int v) -> void",
- "start_line": 37,
- "end_line": 40,
- "docstring": null,
- "decorators": [],
- "visibility": "public",
- "is_async": false,
- "complexity_estimate": 1,
- "language": "csharp",
- "parent_name": "Splintered",
- "is_exported_symbol": false,
- "is_declaration": false,
- "type_parameter_count": null,
- "extension_receiver": null,
- "written_receiver": null,
- "modifiers": [
- "public"
- ]
+ "target_name": "Equal",
+ "receiver_name": "Assert",
+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
+ "line": 15,
+ "argument_count": 2,
+ "receiver_call": null,
+ "scope_name": null,
+ "edge_type": "calls",
+ "supplied_props": null,
+ "bare_name_fallback": false,
+ "spawned": false,
+ "argument_types": null,
+ "argument_names": null
},
{
- "id": "lang_samples/csharp/classes.cs::Splintered::GetA",
- "name": "GetA",
- "qualified_name": "lang_samples.csharp.classes.Splintered.GetA",
- "kind": "method",
- "signature": "GetA() -> int",
- "start_line": 42,
- "end_line": 45,
- "docstring": null,
- "decorators": [],
- "visibility": "public",
- "is_async": false,
- "complexity_estimate": 1,
- "language": "csharp",
- "parent_name": "Splintered",
- "is_exported_symbol": false,
- "is_declaration": false,
- "type_parameter_count": null,
- "extension_receiver": null,
- "written_receiver": null,
- "modifiers": [
- "public"
- ]
+ "target_name": "Equal",
+ "receiver_name": "Assert",
+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
+ "line": 16,
+ "argument_count": 2,
+ "receiver_call": null,
+ "scope_name": null,
+ "edge_type": "calls",
+ "supplied_props": null,
+ "bare_name_fallback": false,
+ "spawned": false,
+ "argument_types": null,
+ "argument_names": null
},
{
- "id": "lang_samples/csharp/classes.cs::Splintered::SetB",
- "name": "SetB",
- "qualified_name": "lang_samples.csharp.classes.Splintered.SetB",
- "kind": "method",
- "signature": "SetB(int v) -> void",
- "start_line": 47,
- "end_line": 50,
- "docstring": null,
- "decorators": [],
- "visibility": "public",
- "is_async": false,
- "complexity_estimate": 1,
- "language": "csharp",
- "parent_name": "Splintered",
- "is_exported_symbol": false,
- "is_declaration": false,
- "type_parameter_count": null,
- "extension_receiver": null,
- "written_receiver": null,
- "modifiers": [
- "public"
- ]
+ "target_name": "Equal",
+ "receiver_name": "Assert",
+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
+ "line": 17,
+ "argument_count": 2,
+ "receiver_call": null,
+ "scope_name": null,
+ "edge_type": "calls",
+ "supplied_props": null,
+ "bare_name_fallback": false,
+ "spawned": false,
+ "argument_types": null,
+ "argument_names": null
},
{
- "id": "lang_samples/csharp/classes.cs::Splintered::GetB",
- "name": "GetB",
- "qualified_name": "lang_samples.csharp.classes.Splintered.GetB",
- "kind": "method",
- "signature": "GetB() -> int",
- "start_line": 52,
- "end_line": 55,
- "docstring": null,
- "decorators": [],
- "visibility": "public",
- "is_async": false,
- "complexity_estimate": 1,
- "language": "csharp",
- "parent_name": "Splintered",
- "is_exported_symbol": false,
- "is_declaration": false,
- "type_parameter_count": null,
- "extension_receiver": null,
- "written_receiver": null,
- "modifiers": [
- "public"
- ]
+ "target_name": "Equal",
+ "receiver_name": "Assert",
+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
+ "line": 18,
+ "argument_count": 2,
+ "receiver_call": null,
+ "scope_name": null,
+ "edge_type": "calls",
+ "supplied_props": null,
+ "bare_name_fallback": false,
+ "spawned": false,
+ "argument_types": null,
+ "argument_names": null
},
{
- "id": "lang_samples/csharp/classes.cs::Splintered::Loner",
- "name": "Loner",
- "qualified_name": "lang_samples.csharp.classes.Splintered.Loner",
- "kind": "method",
- "signature": "Loner() -> int",
- "start_line": 57,
- "end_line": 60,
- "docstring": null,
- "decorators": [],
- "visibility": "public",
- "is_async": false,
- "complexity_estimate": 1,
- "language": "csharp",
- "parent_name": "Splintered",
- "is_exported_symbol": false,
- "is_declaration": false,
- "type_parameter_count": null,
- "extension_receiver": null,
- "written_receiver": null,
- "modifiers": [
- "public"
- ]
- }
- ],
- "imports": [],
- "exports": [],
- "export_aliases": {},
- "calls": [],
- "heritage": [],
- "docstring": null,
- "parse_errors": [],
- "content_hash": "c682dfc3d4e80d6a43c9502e14005bc59b6c44369067e2c749f9d9c5aa1cfa27",
- "type_refs": [],
- "local_refs": [],
- "registrars": [],
- "references": []
- },
- "csharp/nested.cs": {
- "file_info": {
- "path": "lang_samples/csharp/nested.cs",
- "language": "csharp",
- "size_bytes": 736,
- "is_test": false,
- "is_config": false,
- "is_api_contract": false,
- "is_entry_point": false,
- "is_manifest_entry": false,
- "is_reachability_root": false
- },
- "symbols": [
+ "target_name": "Equal",
+ "receiver_name": "Assert",
+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
+ "line": 19,
+ "argument_count": 2,
+ "receiver_call": null,
+ "scope_name": null,
+ "edge_type": "calls",
+ "supplied_props": null,
+ "bare_name_fallback": false,
+ "spawned": false,
+ "argument_types": null,
+ "argument_names": null
+ },
{
- "id": "lang_samples/csharp/nested.cs::Sample",
- "name": "Sample",
- "qualified_name": "lang_samples.csharp.nested.Sample",
- "kind": "class",
- "signature": "class Sample",
- "start_line": 3,
- "end_line": 38,
- "docstring": null,
- "decorators": [],
- "visibility": "internal",
- "is_async": false,
- "complexity_estimate": 1,
- "language": "csharp",
- "parent_name": null,
- "is_exported_symbol": false,
- "is_declaration": false,
- "type_parameter_count": 0,
- "extension_receiver": null,
- "written_receiver": null,
- "modifiers": []
+ "target_name": "Equal",
+ "receiver_name": "Assert",
+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
+ "line": 20,
+ "argument_count": 2,
+ "receiver_call": null,
+ "scope_name": null,
+ "edge_type": "calls",
+ "supplied_props": null,
+ "bare_name_fallback": false,
+ "spawned": false,
+ "argument_types": null,
+ "argument_names": null
+ },
+ {
+ "target_name": "Equal",
+ "receiver_name": "Assert",
+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
+ "line": 21,
+ "argument_count": 2,
+ "receiver_call": null,
+ "scope_name": null,
+ "edge_type": "calls",
+ "supplied_props": null,
+ "bare_name_fallback": false,
+ "spawned": false,
+ "argument_types": null,
+ "argument_names": null
+ },
+ {
+ "target_name": "Equal",
+ "receiver_name": "Assert",
+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
+ "line": 22,
+ "argument_count": 2,
+ "receiver_call": null,
+ "scope_name": null,
+ "edge_type": "calls",
+ "supplied_props": null,
+ "bare_name_fallback": false,
+ "spawned": false,
+ "argument_types": null,
+ "argument_names": null
},
{
- "id": "lang_samples/csharp/nested.cs::Sample::DeeplyNested",
- "name": "DeeplyNested",
- "qualified_name": "lang_samples.csharp.nested.Sample.DeeplyNested",
- "kind": "method",
- "signature": "DeeplyNested(int x) -> int",
- "start_line": 5,
- "end_line": 21,
- "docstring": null,
- "decorators": [],
- "visibility": "private",
- "is_async": false,
- "complexity_estimate": 1,
- "language": "csharp",
- "parent_name": "Sample",
- "is_exported_symbol": false,
- "is_declaration": false,
- "type_parameter_count": null,
- "extension_receiver": null,
- "written_receiver": null,
- "modifiers": []
+ "target_name": "Equal",
+ "receiver_name": "Assert",
+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestManyAsserts",
+ "line": 23,
+ "argument_count": 2,
+ "receiver_call": null,
+ "scope_name": null,
+ "edge_type": "calls",
+ "supplied_props": null,
+ "bare_name_fallback": false,
+ "spawned": false,
+ "argument_types": null,
+ "argument_names": null
},
{
- "id": "lang_samples/csharp/nested.cs::Sample::Shallow",
- "name": "Shallow",
- "qualified_name": "lang_samples.csharp.nested.Sample.Shallow",
- "kind": "method",
- "signature": "Shallow(int x) -> int",
- "start_line": 23,
- "end_line": 26,
- "docstring": null,
- "decorators": [],
- "visibility": "private",
- "is_async": false,
- "complexity_estimate": 1,
- "language": "csharp",
- "parent_name": "Sample",
- "is_exported_symbol": false,
- "is_declaration": false,
- "type_parameter_count": null,
- "extension_receiver": null,
- "written_receiver": null,
- "modifiers": []
+ "target_name": "Equal",
+ "receiver_name": "Assert",
+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestFewAsserts",
+ "line": 28,
+ "argument_count": 2,
+ "receiver_call": null,
+ "scope_name": null,
+ "edge_type": "calls",
+ "supplied_props": null,
+ "bare_name_fallback": false,
+ "spawned": false,
+ "argument_types": null,
+ "argument_names": null
},
{
- "id": "lang_samples/csharp/nested.cs::Sample::ManyBranches",
- "name": "ManyBranches",
- "qualified_name": "lang_samples.csharp.nested.Sample.ManyBranches",
- "kind": "method",
- "signature": "ManyBranches(int x) -> int",
- "start_line": 28,
- "end_line": 37,
- "docstring": null,
- "decorators": [],
- "visibility": "private",
- "is_async": false,
- "complexity_estimate": 1,
- "language": "csharp",
- "parent_name": "Sample",
- "is_exported_symbol": false,
- "is_declaration": false,
- "type_parameter_count": null,
- "extension_receiver": null,
- "written_receiver": null,
- "modifiers": []
+ "target_name": "Equal",
+ "receiver_name": "Assert",
+ "caller_symbol_id": "lang_samples/csharp/assertions.cs::Tests::TestFewAsserts",
+ "line": 30,
+ "argument_count": 2,
+ "receiver_call": null,
+ "scope_name": null,
+ "edge_type": "calls",
+ "supplied_props": null,
+ "bare_name_fallback": false,
+ "spawned": false,
+ "argument_types": null,
+ "argument_names": null
}
],
- "imports": [],
- "exports": [],
- "export_aliases": {},
- "calls": [],
"heritage": [],
"docstring": null,
"parse_errors": [],
- "content_hash": "bbb679ab71454ae077c451b23854fcf1de2e04d48543bc608bde83a20b1d63bc",
+ "content_hash": "7f2ffc31a658836b62dd2121ba223635e344785b3395e064dca78d501c2984b8",
"type_refs": [],
"local_refs": [],
"registrars": [],
"references": []
},
- "csharp/PerfIoInLoop.cs": {
+ "csharp/classes.cs": {
"file_info": {
- "path": "lang_samples/csharp/PerfIoInLoop.cs",
+ "path": "lang_samples/csharp/classes.cs",
"language": "csharp",
- "size_bytes": 2546,
+ "size_bytes": 849,
"is_test": false,
"is_config": false,
"is_api_contract": false,
@@ -867,13 +890,13 @@
},
"symbols": [
{
- "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop",
- "name": "PerfIoInLoop",
- "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop",
+ "id": "lang_samples/csharp/classes.cs::Cohesive",
+ "name": "Cohesive",
+ "qualified_name": "lang_samples.csharp.classes.Cohesive",
"kind": "class",
- "signature": "class PerfIoInLoop",
- "start_line": 13,
- "end_line": 88,
+ "signature": "class Cohesive",
+ "start_line": 4,
+ "end_line": 30,
"docstring": null,
"decorators": [],
"visibility": "internal",
@@ -886,469 +909,478 @@
"type_parameter_count": 0,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
- "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::EfAsyncN1",
- "name": "EfAsyncN1",
- "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop.EfAsyncN1",
- "kind": "method",
- "signature": "EfAsyncN1(DbContext ctx, List<int> ids) -> Task",
- "start_line": 17,
- "end_line": 23,
+ "id": "lang_samples/csharp/classes.cs::Cohesive::total",
+ "name": "total",
+ "qualified_name": "lang_samples.csharp.classes.Cohesive.total",
+ "kind": "variable",
+ "signature": "total",
+ "start_line": 6,
+ "end_line": 6,
"docstring": null,
"decorators": [],
"visibility": "private",
"is_async": false,
"complexity_estimate": 1,
"language": "csharp",
- "parent_name": "PerfIoInLoop",
+ "parent_name": "Cohesive",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": [
- "async"
- ]
+ "modifiers": [],
+ "alias_of": null
},
{
- "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::HttpInLoop",
- "name": "HttpInLoop",
- "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop.HttpInLoop",
- "kind": "method",
- "signature": "HttpInLoop(HttpClient c, List<string> urls) -> Task",
- "start_line": 25,
- "end_line": 31,
+ "id": "lang_samples/csharp/classes.cs::Cohesive::count",
+ "name": "count",
+ "qualified_name": "lang_samples.csharp.classes.Cohesive.count",
+ "kind": "variable",
+ "signature": "count",
+ "start_line": 7,
+ "end_line": 7,
"docstring": null,
"decorators": [],
"visibility": "private",
"is_async": false,
"complexity_estimate": 1,
"language": "csharp",
- "parent_name": "PerfIoInLoop",
+ "parent_name": "Cohesive",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": [
- "async"
- ]
+ "modifiers": [],
+ "alias_of": null
},
{
- "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::SaveInLoop",
- "name": "SaveInLoop",
- "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop.SaveInLoop",
+ "id": "lang_samples/csharp/classes.cs::Cohesive::Add",
+ "name": "Add",
+ "qualified_name": "lang_samples.csharp.classes.Cohesive.Add",
"kind": "method",
- "signature": "SaveInLoop(DbContext ctx, List<int> ids) -> Task",
- "start_line": 33,
- "end_line": 39,
+ "signature": "Add(int n) -> void",
+ "start_line": 9,
+ "end_line": 13,
"docstring": null,
"decorators": [],
- "visibility": "private",
+ "visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "csharp",
- "parent_name": "PerfIoInLoop",
+ "parent_name": "Cohesive",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [
- "async"
- ]
+ "public"
+ ],
+ "alias_of": null
},
{
- "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::FileReadInLoop",
- "name": "FileReadInLoop",
- "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop.FileReadInLoop",
+ "id": "lang_samples/csharp/classes.cs::Cohesive::Average",
+ "name": "Average",
+ "qualified_name": "lang_samples.csharp.classes.Cohesive.Average",
"kind": "method",
- "signature": "FileReadInLoop(List<string> paths) -> void",
- "start_line": 41,
- "end_line": 47,
+ "signature": "Average() -> int",
+ "start_line": 15,
+ "end_line": 18,
"docstring": null,
"decorators": [],
- "visibility": "private",
+ "visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "csharp",
- "parent_name": "PerfIoInLoop",
+ "parent_name": "Cohesive",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [
+ "public"
+ ],
+ "alias_of": null
},
{
- "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::SyncLinqInLoop",
- "name": "SyncLinqInLoop",
- "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop.SyncLinqInLoop",
+ "id": "lang_samples/csharp/classes.cs::Cohesive::Reset",
+ "name": "Reset",
+ "qualified_name": "lang_samples.csharp.classes.Cohesive.Reset",
"kind": "method",
- "signature": "SyncLinqInLoop(DbContext ctx, List<int> ids) -> void",
- "start_line": 49,
- "end_line": 55,
+ "signature": "Reset() -> void",
+ "start_line": 20,
+ "end_line": 24,
"docstring": null,
"decorators": [],
- "visibility": "private",
+ "visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "csharp",
- "parent_name": "PerfIoInLoop",
+ "parent_name": "Cohesive",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [
+ "public"
+ ],
+ "alias_of": null
},
{
- "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::StringConcatInLoop",
- "name": "StringConcatInLoop",
- "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop.StringConcatInLoop",
+ "id": "lang_samples/csharp/classes.cs::Cohesive::Describe",
+ "name": "Describe",
+ "qualified_name": "lang_samples.csharp.classes.Cohesive.Describe",
"kind": "method",
- "signature": "StringConcatInLoop(List<string> rows) -> string",
- "start_line": 57,
- "end_line": 65,
+ "signature": "Describe() -> int",
+ "start_line": 26,
+ "end_line": 29,
"docstring": null,
"decorators": [],
- "visibility": "private",
+ "visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "csharp",
- "parent_name": "PerfIoInLoop",
+ "parent_name": "Cohesive",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [
+ "public"
+ ],
+ "alias_of": null
},
{
- "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::SyncOverAsync",
- "name": "SyncOverAsync",
- "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop.SyncOverAsync",
- "kind": "method",
- "signature": "SyncOverAsync(Task<int> task) -> Task",
- "start_line": 67,
- "end_line": 71,
+ "id": "lang_samples/csharp/classes.cs::Splintered",
+ "name": "Splintered",
+ "qualified_name": "lang_samples.csharp.classes.Splintered",
+ "kind": "class",
+ "signature": "class Splintered",
+ "start_line": 32,
+ "end_line": 61,
"docstring": null,
"decorators": [],
- "visibility": "private",
+ "visibility": "internal",
"is_async": false,
"complexity_estimate": 1,
"language": "csharp",
- "parent_name": "PerfIoInLoop",
+ "parent_name": null,
"is_exported_symbol": false,
"is_declaration": false,
- "type_parameter_count": null,
+ "type_parameter_count": 0,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": [
- "async"
- ]
+ "modifiers": [],
+ "alias_of": null
},
{
- "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::PureCallInLoop",
- "name": "PureCallInLoop",
- "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop.PureCallInLoop",
- "kind": "method",
- "signature": "PureCallInLoop(List<int> items) -> void",
- "start_line": 75,
- "end_line": 82,
+ "id": "lang_samples/csharp/classes.cs::Splintered::a",
+ "name": "a",
+ "qualified_name": "lang_samples.csharp.classes.Splintered.a",
+ "kind": "variable",
+ "signature": "a",
+ "start_line": 34,
+ "end_line": 34,
"docstring": null,
"decorators": [],
"visibility": "private",
"is_async": false,
"complexity_estimate": 1,
"language": "csharp",
- "parent_name": "PerfIoInLoop",
+ "parent_name": "Splintered",
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
- "id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::AwaitedAsyncResult",
- "name": "AwaitedAsyncResult",
- "qualified_name": "lang_samples.csharp.PerfIoInLoop.PerfIoInLoop.AwaitedAsyncResult",
- "kind": "method",
- "signature": "AwaitedAsyncResult(Task<int> task) -> Task",
- "start_line": 84,
- "end_line": 87,
+ "id": "lang_samples/csharp/classes.cs::Splintered::b",
+ "name": "b",
+ "qualified_name": "lang_samples.csharp.classes.Splintered.b",
+ "kind": "variable",
+ "signature": "b",
+ "start_line": 35,
+ "end_line": 35,
"docstring": null,
"decorators": [],
"visibility": "private",
"is_async": false,
"complexity_estimate": 1,
"language": "csharp",
- "parent_name": "PerfIoInLoop",
- "is_exported_symbol": false,
- "is_declaration": false,
- "type_parameter_count": null,
- "extension_receiver": null,
- "written_receiver": null,
- "modifiers": [
- "async"
- ]
- }
- ],
- "imports": [
- {
- "raw_statement": "using System.Collections.Generic;",
- "module_path": "System.Collections.Generic",
- "imported_names": [
- "Generic"
- ],
- "is_relative": false,
- "resolved_file": null,
- "bindings": [
- {
- "local_name": "Generic",
- "exported_name": "System.Collections.Generic",
- "source_file": null,
- "is_module_alias": false,
- "is_global": false,
- "is_static_import": false,
- "line": null,
- "column": null
- }
- ],
- "is_reexport": false,
- "is_module_declaration": false,
- "type_only": false,
- "deferred": false
- },
- {
- "raw_statement": "using System.IO;",
- "module_path": "System.IO",
- "imported_names": [
- "IO"
- ],
- "is_relative": false,
- "resolved_file": null,
- "bindings": [
- {
- "local_name": "IO",
- "exported_name": "System.IO",
- "source_file": null,
- "is_module_alias": false,
- "is_global": false,
- "is_static_import": false,
- "line": null,
- "column": null
- }
- ],
- "is_reexport": false,
- "is_module_declaration": false,
- "type_only": false,
- "deferred": false
- },
- {
- "raw_statement": "using System.Net.Http;",
- "module_path": "System.Net.Http",
- "imported_names": [
- "Http"
- ],
- "is_relative": false,
- "resolved_file": null,
- "bindings": [
- {
- "local_name": "Http",
- "exported_name": "System.Net.Http",
- "source_file": null,
- "is_module_alias": false,
- "is_global": false,
- "is_static_import": false,
- "line": null,
- "column": null
- }
- ],
- "is_reexport": false,
- "is_module_declaration": false,
- "type_only": false,
- "deferred": false
- },
- {
- "raw_statement": "using System.Threading.Tasks;",
- "module_path": "System.Threading.Tasks",
- "imported_names": [
- "Tasks"
- ],
- "is_relative": false,
- "resolved_file": null,
- "bindings": [
- {
- "local_name": "Tasks",
- "exported_name": "System.Threading.Tasks",
- "source_file": null,
- "is_module_alias": false,
- "is_global": false,
- "is_static_import": false,
- "line": null,
- "column": null
- }
- ],
- "is_reexport": false,
- "is_module_declaration": false,
- "type_only": false,
- "deferred": false
- },
- {
- "raw_statement": "using Microsoft.EntityFrameworkCore;",
- "module_path": "Microsoft.EntityFrameworkCore",
- "imported_names": [
- "EntityFrameworkCore"
- ],
- "is_relative": false,
- "resolved_file": null,
- "bindings": [
- {
- "local_name": "EntityFrameworkCore",
- "exported_name": "Microsoft.EntityFrameworkCore",
- "source_file": null,
- "is_module_alias": false,
- "is_global": false,
- "is_static_import": false,
- "line": null,
- "column": null
- }
- ],
- "is_reexport": false,
- "is_module_declaration": false,
- "type_only": false,
- "deferred": false
- }
- ],
- "exports": [],
- "export_aliases": {},
- "calls": [
- {
- "target_name": "GetAsync",
- "receiver_name": "c",
- "caller_symbol_id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::HttpInLoop",
- "line": 29,
- "argument_count": 1,
- "receiver_call": null,
- "scope_name": null,
- "edge_type": "calls",
- "supplied_props": null,
- "bare_name_fallback": false,
- "spawned": false,
- "argument_types": null,
- "argument_names": null
- },
- {
- "target_name": "SaveChangesAsync",
- "receiver_name": "ctx",
- "caller_symbol_id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::SaveInLoop",
- "line": 37,
- "argument_count": 0,
- "receiver_call": null,
- "scope_name": null,
- "edge_type": "calls",
- "supplied_props": null,
- "bare_name_fallback": false,
- "spawned": false,
- "argument_types": null,
- "argument_names": null
- },
- {
- "target_name": "ReadAllText",
- "receiver_name": "File",
- "caller_symbol_id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::FileReadInLoop",
- "line": 45,
- "argument_count": 1,
- "receiver_call": null,
- "scope_name": null,
- "edge_type": "calls",
- "supplied_props": null,
- "bare_name_fallback": false,
- "spawned": false,
- "argument_types": null,
- "argument_names": null
- },
- {
- "target_name": "Wait",
- "receiver_name": "task",
- "caller_symbol_id": "lang_samples/csharp/PerfIoInLoop.cs::PerfIoInLoop::SyncOverAsync",
- "line": 70,
- "argument_count": 0,
- "receiver_call": null,
- "scope_name": null,
- "edge_type": "calls",
- "supplied_props": null,
- "bare_name_fallback": false,
- "spawned": false,
- "argument_types": null,
- "argument_names": null
- }
- ],
- "heritage": [],
- "docstring": null,
- "parse_errors": [],
- "content_hash": "cab5cdfc3cc871eb0989d7c78e3e049a2764103471b8ecf11d06cba740d156ff",
- "type_refs": [
- {
- "type_name": "DbContext",
- "line": 17,
- "origin": "method_param"
- },
- {
- "type_name": "List",
- "line": 17,
- "origin": "method_param"
+ "parent_name": "Splintered",
+ "is_exported_symbol": false,
+ "is_declaration": false,
+ "type_parameter_count": null,
+ "extension_receiver": null,
+ "written_receiver": null,
+ "modifiers": [],
+ "alias_of": null
},
{
- "type_name": "HttpClient",
- "line": 25,
- "origin": "method_param"
+ "id": "lang_samples/csharp/classes.cs::Splintered::SetA",
+ "name": "SetA",
+ "qualified_name": "lang_samples.csharp.classes.Splintered.SetA",
+ "kind": "method",
+ "signature": "SetA(int v) -> void",
+ "start_line": 37,
+ "end_line": 40,
+ "docstring": null,
+ "decorators": [],
+ "visibility": "public",
+ "is_async": false,
+ "complexity_estimate": 1,
+ "language": "csharp",
+ "parent_name": "Splintered",
+ "is_exported_symbol": false,
+ "is_declaration": false,
+ "type_parameter_count": null,
+ "extension_receiver": null,
+ "written_receiver": null,
+ "modifiers": [
+ "public"
+ ],
+ "alias_of": null
},
{
- "type_name": "List",
- "line": 25,
- "origin": "method_param"
+ "id": "lang_samples/csharp/classes.cs::Splintered::GetA",
+ "name": "GetA",
+ "qualified_name": "lang_samples.csharp.classes.Splintered.GetA",
+ "kind": "method",
+ "signature": "GetA() -> int",
+ "start_line": 42,
+ "end_line": 45,
+ "docstring": null,
+ "decorators": [],
+ "visibility": "public",
+ "is_async": false,
+ "complexity_estimate": 1,
+ "language": "csharp",
+ "parent_name": "Splintered",
+ "is_exported_symbol": false,
+ "is_declaration": false,
+ "type_parameter_count": null,
+ "extension_receiver": null,
+ "written_receiver": null,
+ "modifiers": [
+ "public"
+ ],
+ "alias_of": null
},
{
- "type_name": "DbContext",
- "line": 33,
- "origin": "method_param"
+ "id": "lang_samples/csharp/classes.cs::Splintered::SetB",
+ "name": "SetB",
+ "qualified_name": "lang_samples.csharp.classes.Splintered.SetB",
+ "kind": "method",
+ "signature": "SetB(int v) -> void",
+ "start_line": 47,
+ "end_line": 50,
+ "docstring": null,
+ "decorators": [],
+ "visibility": "public",
+ "is_async": false,
+ "complexity_estimate": 1,
+ "language": "csharp",
+ "parent_name": "Splintered",
+ "is_exported_symbol": false,
+ "is_declaration": false,
+ "type_parameter_count": null,
+ "extension_receiver": null,
+ "written_receiver": null,
+ "modifiers": [
+ "public"
+ ],
+ "alias_of": null
},
{
- "type_name": "List",
- "line": 33,
- "origin": "method_param"
+ "id": "lang_samples/csharp/classes.cs::Splintered::GetB",
+ "name": "GetB",
+ "qualified_name": "lang_samples.csharp.classes.Splintered.GetB",
+ "kind": "method",
+ "signature": "GetB() -> int",
+ "start_line": 52,
+ "end_line": 55,
+ "docstring": null,
+ "decorators": [],
+ "visibility": "public",
+ "is_async": false,
+ "complexity_estimate": 1,
+ "language": "csharp",
+ "parent_name": "Splintered",
+ "is_exported_symbol": false,
+ "is_declaration": false,
+ "type_parameter_count": null,
+ "extension_receiver": null,
+ "written_receiver": null,
+ "modifiers": [
+ "public"
+ ],
+ "alias_of": null
},
{
- "type_name": "List",
- "line": 41,
- "origin": "method_param"
- },
+ "id": "lang_samples/csharp/classes.cs::Splintered::Loner",
+ "name": "Loner",
+ "qualified_name": "lang_samples.csharp.classes.Splintered.Loner",
+ "kind": "method",
+ "signature": "Loner() -> int",
+ "start_line": 57,
+ "end_line": 60,
+ "docstring": null,
+ "decorators": [],
+ "visibility": "public",
+ "is_async": false,
+ "complexity_estimate": 1,
+ "language": "csharp",
+ "parent_name": "Splintered",
+ "is_exported_symbol": false,
+ "is_declaration": false,
+ "type_parameter_count": null,
+ "extension_receiver": null,
+ "written_receiver": null,
+ "modifiers": [
+ "public"
+ ],
+ "alias_of": null
+ }
+ ],
+ "imports": [],
+ "exports": [],
+ "export_aliases": {},
+ "calls": [],
+ "heritage": [],
+ "docstring": null,
+ "parse_errors": [],
+ "content_hash": "c682dfc3d4e80d6a43c9502e14005bc59b6c44369067e2c749f9d9c5aa1cfa27",
+ "type_refs": [],
+ "local_refs": [],
+ "registrars": [],
+ "references": []
+ },
+ "csharp/nested.cs": {
+ "file_info": {
+ "path": "lang_samples/csharp/nested.cs",
+ "language": "csharp",
+ "size_bytes": 736,
+ "is_test": false,
+ "is_config": false,
+ "is_api_contract": false,
+ "is_entry_point": false,
+ "is_manifest_entry": false,
+ "is_reachability_root": false
+ },
+ "symbols": [
{
- "type_name": "DbContext",
- "line": 49,
- "origin": "method_param"
+ "id": "lang_samples/csharp/nested.cs::Sample",
+ "name": "Sample",
+ "qualified_name": "lang_samples.csharp.nested.Sample",
+ "kind": "class",
+ "signature": "class Sample",
+ "start_line": 3,
+ "end_line": 38,
+ "docstring": null,
+ "decorators": [],
+ "visibility": "internal",
+ "is_async": false,
+ "complexity_estimate": 1,
+ "language": "csharp",
+ "parent_name": null,
+ "is_exported_symbol": false,
+ "is_declaration": false,
+ "type_parameter_count": 0,
+ "extension_receiver": null,
+ "written_receiver": null,
+ "modifiers": [],
+ "alias_of": null
},
{
- "type_name": "List",
- "line": 49,
- "origin": "method_param"
+ "id": "lang_samples/csharp/nested.cs::Sample::DeeplyNested",
+ "name": "DeeplyNested",
+ "qualified_name": "lang_samples.csharp.nested.Sample.DeeplyNested",
+ "kind": "method",
+ "signature": "DeeplyNested(int x) -> int",
+ "start_line": 5,
+ "end_line": 21,
+ "docstring": null,
+ "decorators": [],
+ "visibility": "private",
+ "is_async": false,
+ "complexity_estimate": 1,
+ "language": "csharp",
+ "parent_name": "Sample",
+ "is_exported_symbol": false,
+ "is_declaration": false,
+ "type_parameter_count": null,
+ "extension_receiver": null,
+ "written_receiver": null,
+ "modifiers": [],
+ "alias_of": null
},
{
- "type_name": "List",
- "line": 57,
- "origin": "method_param"
+ "id": "lang_samples/csharp/nested.cs::Sample::Shallow",
+ "name": "Shallow",
+ "qualified_name": "lang_samples.csharp.nested.Sample.Shallow",
+ "kind": "method",
+ "signature": "Shallow(int x) -> int",
+ "start_line": 23,
+ "end_line": 26,
+ "docstring": null,
+ "decorators": [],
+ "visibility": "private",
+ "is_async": false,
+ "complexity_estimate": 1,
+ "language": "csharp",
+ "parent_name": "Sample",
+ "is_exported_symbol": false,
+ "is_declaration": false,
+ "type_parameter_count": null,
+ "extension_receiver": null,
+ "written_receiver": null,
+ "modifiers": [],
+ "alias_of": null
},
{
- "type_name": "List",
- "line": 75,
- "origin": "method_param"
+ "id": "lang_samples/csharp/nested.cs::Sample::ManyBranches",
+ "name": "ManyBranches",
+ "qualified_name": "lang_samples.csharp.nested.Sample.ManyBranches",
+ "kind": "method",
+ "signature": "ManyBranches(int x) -> int",
+ "start_line": 28,
+ "end_line": 37,
+ "docstring": null,
+ "decorators": [],
+ "visibility": "private",
+ "is_async": false,
+ "complexity_estimate": 1,
+ "language": "csharp",
+ "parent_name": "Sample",
+ "is_exported_symbol": false,
+ "is_declaration": false,
+ "type_parameter_count": null,
+ "extension_receiver": null,
+ "written_receiver": null,
+ "modifiers": [],
+ "alias_of": null
}
],
+ "imports": [],
+ "exports": [],
+ "export_aliases": {},
+ "calls": [],
+ "heritage": [],
+ "docstring": null,
+ "parse_errors": [],
+ "content_hash": "bbb679ab71454ae077c451b23854fcf1de2e04d48543bc608bde83a20b1d63bc",
+ "type_refs": [],
"local_refs": [],
"registrars": [],
"references": []
diff --git a/tests/unit/ingestion/parser/golden/dart.json b/tests/unit/ingestion/parser/golden/dart.json
index 4c8cf562a..5fab2093e 100644
--- a/tests/unit/ingestion/parser/golden/dart.json
+++ b/tests/unit/ingestion/parser/golden/dart.json
@@ -32,7 +32,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/dart/assertions.dart::testFewAsserts",
@@ -54,7 +55,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -106,7 +108,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/dart/classes.dart::Cohesive::add",
@@ -128,7 +131,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/dart/classes.dart::Cohesive::mean",
@@ -150,7 +154,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/dart/classes.dart::Cohesive::reset",
@@ -172,7 +177,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/dart/classes.dart::Wide",
@@ -194,7 +200,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/dart/classes.dart::Wide::one",
@@ -216,7 +223,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/dart/classes.dart::Wide::two",
@@ -238,7 +246,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/dart/classes.dart::Wide::three",
@@ -260,7 +269,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/dart/classes.dart::Wide::four",
@@ -282,7 +292,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/dart/classes.dart::Wide::loner",
@@ -304,7 +315,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -356,7 +368,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/dart/nested.dart::shallow",
@@ -378,7 +391,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/dart/nested.dart::manyBranches",
@@ -400,7 +414,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -453,7 +468,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/dart/perf_io_in_loop.dart::readFiles",
@@ -475,7 +491,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/dart/perf_io_in_loop.dart::queryRows",
@@ -497,7 +514,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/dart/perf_io_in_loop.dart::concat",
@@ -519,7 +537,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/dart/perf_io_in_loop.dart::makeClients",
@@ -541,7 +560,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/dart/perf_io_in_loop.dart::constantBound",
@@ -563,7 +583,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [
diff --git a/tests/unit/ingestion/parser/golden/go.json b/tests/unit/ingestion/parser/golden/go.json
index 65a1a2ccb..74be72593 100644
--- a/tests/unit/ingestion/parser/golden/go.json
+++ b/tests/unit/ingestion/parser/golden/go.json
@@ -32,7 +32,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/go/conditionals.go::SixOps",
@@ -54,7 +55,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/go/conditionals.go::TwoOps",
@@ -76,7 +78,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -129,7 +132,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/go/nested.go::Shallow",
@@ -151,7 +155,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -203,7 +208,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/go/perf_io_in_loop.go::httpGetInRange",
@@ -225,7 +231,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/go/perf_io_in_loop.go::osOpenInRange",
@@ -247,7 +254,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/go/perf_io_in_loop.go::deferInLoop",
@@ -269,7 +277,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/go/perf_io_in_loop.go::regexpCompileInRange",
@@ -291,7 +300,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/go/perf_io_in_loop.go::stringConcatInRange",
@@ -313,7 +323,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/go/perf_io_in_loop.go::dbQueryConstantLoop",
@@ -335,7 +346,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/go/perf_io_in_loop.go::pureCallInRange",
@@ -357,7 +369,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/go/perf_io_in_loop.go::queryOutsideLoop",
@@ -379,7 +392,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [
diff --git a/tests/unit/ingestion/parser/golden/java.json b/tests/unit/ingestion/parser/golden/java.json
index 5408d42f9..40ea03d8f 100644
--- a/tests/unit/ingestion/parser/golden/java.json
+++ b/tests/unit/ingestion/parser/golden/java.json
@@ -32,7 +32,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/java/Conditionals.java::Conditionals::threeOps",
@@ -54,7 +55,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/java/Conditionals.java::Conditionals::sixOps",
@@ -76,7 +78,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/java/Conditionals.java::Conditionals::twoOps",
@@ -98,7 +101,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -149,7 +153,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/java/Nested.java::Nested::deeplyNested",
@@ -171,7 +176,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/java/Nested.java::Nested::shallow",
@@ -193,7 +199,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -242,7 +249,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::springDataN1",
@@ -264,7 +272,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::jdbcInLoop",
@@ -286,7 +295,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::filesInLoop",
@@ -308,7 +318,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::newStreamInLoop",
@@ -330,7 +341,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::regexCompileInLoop",
@@ -352,7 +364,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::stringConcatInLoop",
@@ -374,7 +387,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::pureCallInLoop",
@@ -396,7 +410,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::sinkOutsideLoop",
@@ -418,7 +433,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/java/PerfIoInLoop.java::PerfIoInLoop::regexCompileOnce",
@@ -440,7 +456,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [
diff --git a/tests/unit/ingestion/parser/golden/javascript.json b/tests/unit/ingestion/parser/golden/javascript.json
index 03a223f6f..5b491350e 100644
--- a/tests/unit/ingestion/parser/golden/javascript.json
+++ b/tests/unit/ingestion/parser/golden/javascript.json
@@ -32,7 +32,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/javascript/nested.js::shallow",
@@ -54,7 +55,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -103,7 +105,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/javascript/route.js::logRequest",
@@ -125,7 +128,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/javascript/route.js::validateRequest",
@@ -147,7 +151,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [
diff --git a/tests/unit/ingestion/parser/golden/kotlin.json b/tests/unit/ingestion/parser/golden/kotlin.json
index 49cc2a483..222848ef3 100644
--- a/tests/unit/ingestion/parser/golden/kotlin.json
+++ b/tests/unit/ingestion/parser/golden/kotlin.json
@@ -32,7 +32,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/kotlin/assertions.kt::testFewAsserts",
@@ -54,7 +55,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -377,7 +379,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/kotlin/classes.kt::Cohesive::total",
@@ -399,7 +402,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/kotlin/classes.kt::Cohesive::count",
@@ -421,7 +425,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/kotlin/classes.kt::Cohesive::add",
@@ -443,7 +448,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/kotlin/classes.kt::Cohesive::average",
@@ -465,7 +471,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/kotlin/classes.kt::Cohesive::reset",
@@ -487,7 +494,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/kotlin/classes.kt::Cohesive::describe",
@@ -509,7 +517,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/kotlin/classes.kt::Splintered",
@@ -531,7 +540,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/kotlin/classes.kt::Splintered::a",
@@ -553,7 +563,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/kotlin/classes.kt::Splintered::b",
@@ -575,7 +586,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/kotlin/classes.kt::Splintered::setA",
@@ -597,7 +609,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/kotlin/classes.kt::Splintered::getA",
@@ -619,7 +632,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/kotlin/classes.kt::Splintered::setB",
@@ -641,7 +655,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/kotlin/classes.kt::Splintered::getB",
@@ -663,7 +678,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/kotlin/classes.kt::Splintered::loner",
@@ -685,7 +701,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -737,7 +754,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/kotlin/nested.kt::shallow",
@@ -759,7 +777,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/kotlin/nested.kt::manyBranches",
@@ -781,7 +800,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
diff --git a/tests/unit/ingestion/parser/golden/pascal.json b/tests/unit/ingestion/parser/golden/pascal.json
index 8d2202662..770021141 100644
--- a/tests/unit/ingestion/parser/golden/pascal.json
+++ b/tests/unit/ingestion/parser/golden/pascal.json
@@ -32,7 +32,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -83,7 +84,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/pascal/nested.pas::Shallow",
@@ -105,7 +107,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
diff --git a/tests/unit/ingestion/parser/golden/php.json b/tests/unit/ingestion/parser/golden/php.json
index 074df0b5b..9ae0c53c4 100644
--- a/tests/unit/ingestion/parser/golden/php.json
+++ b/tests/unit/ingestion/parser/golden/php.json
@@ -32,7 +32,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/assertions.php::AssertionsTest::testManyAsserts",
@@ -54,7 +55,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/assertions.php::AssertionsTest::testFewAsserts",
@@ -76,7 +78,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [
@@ -266,7 +269,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/classes.php::CohesiveClass::total",
@@ -288,7 +292,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/classes.php::CohesiveClass::add",
@@ -310,7 +315,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/classes.php::CohesiveClass::getTotal",
@@ -332,7 +338,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/classes.php::CohesiveClass::reset",
@@ -354,7 +361,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/classes.php::CohesiveClass::helper",
@@ -376,7 +384,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/classes.php::SplitClass",
@@ -398,7 +407,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/classes.php::SplitClass::alpha",
@@ -420,7 +430,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/classes.php::SplitClass::beta",
@@ -442,7 +453,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/classes.php::SplitClass::stepAlpha",
@@ -464,7 +476,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/classes.php::SplitClass::getAlpha",
@@ -486,7 +499,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/classes.php::SplitClass::stepBeta",
@@ -508,7 +522,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/classes.php::SplitClass::getBeta",
@@ -530,7 +545,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/classes.php::LoggableTrait",
@@ -552,7 +568,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/classes.php::LoggableTrait::prefix",
@@ -574,7 +591,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/classes.php::LoggableTrait::log",
@@ -596,7 +614,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/classes.php::LoggableTrait::setPrefix",
@@ -618,7 +637,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/classes.php::WorkerInterface",
@@ -640,7 +660,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/classes.php::WorkerInterface::performWork",
@@ -662,7 +683,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/classes.php::Priority",
@@ -684,7 +706,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -755,7 +778,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/clean.php::sum",
@@ -777,7 +801,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -829,7 +854,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/nested.php::many_branches",
@@ -851,7 +877,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/nested.php::wordy",
@@ -873,7 +900,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/nested.php::shallow",
@@ -895,7 +923,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/nested.php::lambda_and_arrow",
@@ -917,7 +946,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/nested.php::match_and_switch",
@@ -939,7 +969,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/nested.php::try_catch_finally",
@@ -961,7 +992,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/php/nested.php::loops_galore",
@@ -983,7 +1015,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
diff --git a/tests/unit/ingestion/parser/golden/python.json b/tests/unit/ingestion/parser/golden/python.json
index cf950ae51..d2b67819e 100644
--- a/tests/unit/ingestion/parser/golden/python.json
+++ b/tests/unit/ingestion/parser/golden/python.json
@@ -32,7 +32,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/assertions.py::_Case",
@@ -54,7 +55,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/assertions.py::_Case::test_unittest_calls",
@@ -76,7 +78,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/assertions.py::_Case::test_few_asserts",
@@ -98,7 +101,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/assertions.py::test_split_runs",
@@ -120,7 +124,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/assertions.py::do_work",
@@ -142,7 +147,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -258,7 +264,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/classes.py::Cohesive::__init__",
@@ -280,7 +287,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/classes.py::Cohesive::add",
@@ -302,7 +310,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/classes.py::Cohesive::average",
@@ -324,7 +333,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/classes.py::Cohesive::reset",
@@ -346,7 +356,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/classes.py::Cohesive::describe",
@@ -368,7 +379,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/classes.py::Splintered",
@@ -390,7 +402,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/classes.py::Splintered::set_a",
@@ -412,7 +425,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/classes.py::Splintered::get_a",
@@ -434,7 +448,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/classes.py::Splintered::set_b",
@@ -456,7 +471,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/classes.py::Splintered::get_b",
@@ -478,7 +494,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/classes.py::Splintered::loner",
@@ -500,7 +517,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -568,7 +586,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -619,7 +638,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/conditionals.py::six_ops",
@@ -641,7 +661,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/conditionals.py::two_ops",
@@ -663,7 +684,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -716,7 +738,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/match.py::python_if_elif",
@@ -738,7 +761,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -790,7 +814,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/nested.py::shallow",
@@ -812,7 +837,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -864,7 +890,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/perf_io_in_loop.py::subprocess_in_loop",
@@ -886,7 +913,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/perf_io_in_loop.py::http_in_loop",
@@ -908,7 +936,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/perf_io_in_loop.py::await_http_in_loop",
@@ -930,7 +959,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/perf_io_in_loop.py::string_concat_in_loop",
@@ -952,7 +982,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/perf_io_in_loop.py::blocking_in_async",
@@ -974,7 +1005,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/perf_io_in_loop.py::sink_in_loop_header",
@@ -996,7 +1028,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/perf_io_in_loop.py::constant_range",
@@ -1018,7 +1051,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/perf_io_in_loop.py::constant_literal",
@@ -1040,7 +1074,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/perf_io_in_loop.py::query_builder_in_loop",
@@ -1062,7 +1097,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/perf_io_in_loop.py::pure_call_in_loop",
@@ -1084,7 +1120,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/perf_io_in_loop.py::sink_outside_loop",
@@ -1106,7 +1143,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/perf_io_in_loop.py::open_in_loop",
@@ -1128,7 +1166,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [
@@ -1610,7 +1649,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/py_overload_init.py::Client::__init__",
@@ -1634,7 +1674,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/py_overload_init.py::Client::__init__",
@@ -1658,7 +1699,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/py_overload_init.py::Client::__init__",
@@ -1680,7 +1722,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/py_overload_init.py::Client::connect",
@@ -1702,7 +1745,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/py_overload_init.py::Client::build",
@@ -1726,7 +1770,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/py_overload_init.py::parse",
@@ -1750,7 +1795,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/py_overload_init.py::parse",
@@ -1774,7 +1820,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/python/py_overload_init.py::parse",
@@ -1796,7 +1843,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [
diff --git a/tests/unit/ingestion/parser/golden/ruby.json b/tests/unit/ingestion/parser/golden/ruby.json
index 094d40028..6f963bb0b 100644
--- a/tests/unit/ingestion/parser/golden/ruby.json
+++ b/tests/unit/ingestion/parser/golden/ruby.json
@@ -32,7 +32,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/assertions.rb::TestFoo::test_many_asserts",
@@ -54,7 +55,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/assertions.rb::TestFoo::test_few_asserts",
@@ -76,7 +78,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [
@@ -266,7 +269,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/classes.rb::Cohesive::initialize",
@@ -288,7 +292,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/classes.rb::Cohesive::bump",
@@ -310,7 +315,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/classes.rb::Cohesive::read",
@@ -332,7 +338,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/classes.rb::Splintered",
@@ -354,7 +361,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/classes.rb::Splintered::a",
@@ -376,7 +384,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/classes.rb::Splintered::b",
@@ -398,7 +407,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/classes.rb::Splintered::c",
@@ -420,7 +430,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/classes.rb::Splintered::d",
@@ -442,7 +453,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/classes.rb::Splintered::e",
@@ -464,7 +476,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/classes.rb::Util",
@@ -486,7 +499,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/classes.rb::Util::helper_one",
@@ -508,7 +522,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/classes.rb::Util::helper_two",
@@ -530,7 +545,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -583,7 +599,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/nested.rb::many_branches",
@@ -605,7 +622,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/nested.rb::wordy",
@@ -627,7 +645,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/nested.rb::shallow",
@@ -649,7 +668,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/nested.rb::block_heavy",
@@ -671,7 +691,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/nested.rb::flat_case",
@@ -693,7 +714,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/nested.rb::heavy_case",
@@ -715,7 +737,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/nested.rb::pattern_match",
@@ -737,7 +760,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/nested.rb::risky_io",
@@ -759,7 +783,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/nested.rb::implicit_rescue",
@@ -781,7 +806,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/nested.rb::modifier_loops",
@@ -803,7 +829,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -955,7 +982,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/perf_io_in_loop.rb::read_files",
@@ -977,7 +1005,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/perf_io_in_loop.rb::nested_read",
@@ -999,7 +1028,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/perf_io_in_loop.rb::orders_report",
@@ -1021,7 +1051,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/perf_io_in_loop.rb::constant_bound",
@@ -1043,7 +1074,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/perf_io_in_loop.rb::build_report",
@@ -1065,7 +1097,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/perf_io_in_loop.rb::bounded_concat",
@@ -1087,7 +1120,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/perf_io_in_loop.rb::regex_scan",
@@ -1109,7 +1143,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/perf_io_in_loop.rb::fresh_clients",
@@ -1131,7 +1166,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/perf_io_in_loop.rb::shell_out",
@@ -1153,7 +1189,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/perf_io_in_loop.rb::locked_write",
@@ -1175,7 +1212,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/ruby/perf_io_in_loop.rb::helper_calls",
@@ -1197,7 +1235,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [
diff --git a/tests/unit/ingestion/parser/golden/rust.json b/tests/unit/ingestion/parser/golden/rust.json
index 6f6f12352..dcca8bcca 100644
--- a/tests/unit/ingestion/parser/golden/rust.json
+++ b/tests/unit/ingestion/parser/golden/rust.json
@@ -32,7 +32,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/rust/conditionals.rs::six_ops",
@@ -54,7 +55,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/rust/conditionals.rs::two_ops",
@@ -76,7 +78,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -129,7 +132,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/rust/flat_match.rs::complex_match",
@@ -151,7 +155,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/rust/flat_match.rs::multi_stmt_match",
@@ -173,7 +178,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -222,7 +228,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/rust/nested.rs::shallow",
@@ -244,7 +251,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -293,7 +301,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/rust/perf_io_in_loop.rs::fs_read_in_loop",
@@ -315,7 +324,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/rust/perf_io_in_loop.rs::fs_read_to_string_in_loop",
@@ -337,7 +347,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/rust/perf_io_in_loop.rs::reqwest_get_in_loop",
@@ -359,7 +370,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/rust/perf_io_in_loop.rs::regex_new_in_loop",
@@ -381,7 +393,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/rust/perf_io_in_loop.rs::pgpool_connect_in_loop",
@@ -403,7 +416,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/rust/perf_io_in_loop.rs::thread_sleep_in_async",
@@ -425,7 +439,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/rust/perf_io_in_loop.rs::fs_read_constant_loop",
@@ -447,7 +462,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/rust/perf_io_in_loop.rs::fs_read_outside_loop",
@@ -469,7 +485,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/rust/perf_io_in_loop.rs::push_str_in_loop",
@@ -491,7 +508,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [
diff --git a/tests/unit/ingestion/parser/golden/scala.json b/tests/unit/ingestion/parser/golden/scala.json
index 46173dbc6..03f16a3ed 100644
--- a/tests/unit/ingestion/parser/golden/scala.json
+++ b/tests/unit/ingestion/parser/golden/scala.json
@@ -32,7 +32,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/assertions.scala::AssertionsSpec::testManyAsserts",
@@ -54,7 +55,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/assertions.scala::AssertionsSpec::testFewAsserts",
@@ -76,7 +78,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/assertions.scala::AssertionsSpec::compute",
@@ -100,7 +103,8 @@
"written_receiver": null,
"modifiers": [
"private"
- ]
+ ],
+ "alias_of": null
},
{
"id": "lang_samples/scala/assertions.scala::AssertionsSpec::assertEquals",
@@ -124,7 +128,8 @@
"written_receiver": null,
"modifiers": [
"private"
- ]
+ ],
+ "alias_of": null
},
{
"id": "lang_samples/scala/assertions.scala::AssertionsSpec::assertNotEquals",
@@ -148,7 +153,8 @@
"written_receiver": null,
"modifiers": [
"private"
- ]
+ ],
+ "alias_of": null
}
],
"imports": [],
@@ -260,7 +266,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/classes.scala::Cohesive::total",
@@ -282,7 +289,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/classes.scala::Cohesive::count",
@@ -304,7 +312,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/classes.scala::Cohesive::add",
@@ -326,7 +335,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/classes.scala::Cohesive::average",
@@ -348,7 +358,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/classes.scala::Cohesive::reset",
@@ -370,7 +381,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/classes.scala::Cohesive::describe",
@@ -392,7 +404,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/classes.scala::Splintered",
@@ -414,7 +427,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/classes.scala::Splintered::a",
@@ -436,7 +450,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/classes.scala::Splintered::b",
@@ -458,7 +473,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/classes.scala::Splintered::setA",
@@ -480,7 +496,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/classes.scala::Splintered::getA",
@@ -502,7 +519,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/classes.scala::Splintered::setB",
@@ -524,7 +542,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/classes.scala::Splintered::getB",
@@ -546,7 +565,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/classes.scala::Splintered::loner",
@@ -568,7 +588,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/classes.scala::Registry",
@@ -590,7 +611,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/classes.scala::Registry::lookup",
@@ -612,7 +634,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/classes.scala::Registry::register",
@@ -634,7 +657,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/classes.scala::Shape",
@@ -656,7 +680,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/classes.scala::Shape::area",
@@ -678,7 +703,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -732,7 +758,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/nested.scala::Nested::deeplyNested",
@@ -754,7 +781,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/nested.scala::Nested::manyBranches",
@@ -776,7 +804,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/nested.scala::Nested::matchGuards",
@@ -798,7 +827,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/nested.scala::Nested::flatMatch",
@@ -820,7 +850,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/nested.scala::Nested::forGuard",
@@ -842,7 +873,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/nested.scala::Nested::shallow",
@@ -864,7 +896,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -915,7 +948,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::readAll",
@@ -937,7 +971,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::matrix",
@@ -959,7 +994,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::regexInLoop",
@@ -981,7 +1017,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::hoistedRegex",
@@ -1003,7 +1040,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::concat",
@@ -1025,7 +1063,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::bufferAppend",
@@ -1047,7 +1086,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::slow",
@@ -1069,7 +1109,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::constantBound",
@@ -1091,7 +1132,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::locked",
@@ -1113,7 +1155,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::helperInLoop",
@@ -1135,7 +1178,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/scala/perf_io_in_loop.scala::PerfIoInLoop::process",
@@ -1159,7 +1203,8 @@
"written_receiver": null,
"modifiers": [
"private"
- ]
+ ],
+ "alias_of": null
}
],
"imports": [
diff --git a/tests/unit/ingestion/parser/golden/shell.json b/tests/unit/ingestion/parser/golden/shell.json
index 2573de855..918819b06 100644
--- a/tests/unit/ingestion/parser/golden/shell.json
+++ b/tests/unit/ingestion/parser/golden/shell.json
@@ -32,7 +32,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/shell/control_flow.sh::trivial",
@@ -54,7 +55,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -152,7 +154,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/shell/functions.sh::deploy",
@@ -174,7 +177,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/shell/functions.sh::build_step",
@@ -196,7 +200,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -280,7 +285,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [
@@ -471,7 +477,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
diff --git a/tests/unit/ingestion/parser/golden/swift.json b/tests/unit/ingestion/parser/golden/swift.json
index 9998f2fc1..6c0adc0c1 100644
--- a/tests/unit/ingestion/parser/golden/swift.json
+++ b/tests/unit/ingestion/parser/golden/swift.json
@@ -32,7 +32,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/swift/classes.swift::Cohesive::total",
@@ -54,7 +55,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/swift/classes.swift::Cohesive::count",
@@ -76,7 +78,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/swift/classes.swift::Cohesive::add",
@@ -98,7 +101,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/swift/classes.swift::Cohesive::average",
@@ -120,7 +124,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/swift/classes.swift::Cohesive::reset",
@@ -142,7 +147,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/swift/classes.swift::Cohesive::describe",
@@ -164,7 +170,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/swift/classes.swift::Splintered",
@@ -186,7 +193,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/swift/classes.swift::Splintered::a",
@@ -208,7 +216,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/swift/classes.swift::Splintered::b",
@@ -230,7 +239,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/swift/classes.swift::Splintered::setA",
@@ -254,7 +264,8 @@
"written_receiver": null,
"modifiers": [
"mutating"
- ]
+ ],
+ "alias_of": null
},
{
"id": "lang_samples/swift/classes.swift::Splintered::getA",
@@ -276,7 +287,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/swift/classes.swift::Splintered::setB",
@@ -300,7 +312,8 @@
"written_receiver": null,
"modifiers": [
"mutating"
- ]
+ ],
+ "alias_of": null
},
{
"id": "lang_samples/swift/classes.swift::Splintered::getB",
@@ -322,7 +335,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/swift/classes.swift::Splintered::loner",
@@ -344,7 +358,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -393,7 +408,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/swift/nested.swift::shallow",
@@ -415,7 +431,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/swift/nested.swift::manyBranches",
@@ -437,7 +454,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
diff --git a/tests/unit/ingestion/parser/golden/typescript.json b/tests/unit/ingestion/parser/golden/typescript.json
index 28bf3cec6..68a726582 100644
--- a/tests/unit/ingestion/parser/golden/typescript.json
+++ b/tests/unit/ingestion/parser/golden/typescript.json
@@ -32,7 +32,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/assertions.ts::testFewExpects",
@@ -54,7 +55,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -716,7 +718,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/classes.ts::Cohesive::add",
@@ -738,7 +741,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/classes.ts::Cohesive::average",
@@ -760,7 +764,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/classes.ts::Cohesive::reset",
@@ -782,7 +787,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/classes.ts::Cohesive::describe",
@@ -804,7 +810,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/classes.ts::Splintered",
@@ -826,7 +833,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/classes.ts::Splintered::setA",
@@ -848,7 +856,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/classes.ts::Splintered::getA",
@@ -870,7 +879,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/classes.ts::Splintered::setB",
@@ -892,7 +902,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/classes.ts::Splintered::getB",
@@ -914,7 +925,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/classes.ts::Splintered::loner",
@@ -936,7 +948,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -1001,7 +1014,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/conditionals.ts::sixOps",
@@ -1023,7 +1037,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/conditionals.ts::twoOps",
@@ -1045,7 +1060,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -1098,7 +1114,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/nested.ts::shallow",
@@ -1120,7 +1137,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -1172,7 +1190,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/perf_io_in_loop.ts::axiosInLoop",
@@ -1194,7 +1213,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/perf_io_in_loop.ts::prismaInLoop",
@@ -1216,7 +1236,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/perf_io_in_loop.ts::fetchOutsideLoop",
@@ -1238,7 +1259,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/perf_io_in_loop.ts::mapDeleteInLoop",
@@ -1260,7 +1282,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [
@@ -1387,7 +1410,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_class_modifiers.ts::Service::open",
@@ -1409,7 +1433,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_class_modifiers.ts::Service::close",
@@ -1431,7 +1456,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_class_modifiers.ts::Service::flush",
@@ -1453,7 +1479,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_class_modifiers.ts::Service::#reset",
@@ -1475,7 +1502,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_class_modifiers.ts::Service::create",
@@ -1497,7 +1525,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_class_modifiers.ts::Service::fetch",
@@ -1519,7 +1548,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_class_modifiers.ts::Service::retry",
@@ -1541,7 +1571,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_class_modifiers.ts::Service::toString",
@@ -1565,7 +1596,8 @@
"written_receiver": null,
"modifiers": [
"override"
- ]
+ ],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_class_modifiers.ts::Service::convert",
@@ -1587,7 +1619,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_class_modifiers.ts::Service::convert",
@@ -1609,7 +1642,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_class_modifiers.ts::Service::convert",
@@ -1631,7 +1665,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_class_modifiers.ts::Service::constructor",
@@ -1653,7 +1688,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_class_modifiers.ts::Repository",
@@ -1675,7 +1711,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_class_modifiers.ts::Repository::cache",
@@ -1697,7 +1734,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -1786,7 +1824,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_module_consts.ts::whitespace",
@@ -1808,7 +1847,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_module_consts.ts::mode",
@@ -1830,7 +1870,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_module_consts.ts::retries",
@@ -1852,7 +1893,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_module_consts.ts::limit",
@@ -1874,7 +1916,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_module_consts.ts::helper",
@@ -1896,7 +1939,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
@@ -1965,7 +2009,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_overload_fn_method.ts::parse",
@@ -1987,7 +2032,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_overload_fn_method.ts::parse",
@@ -2009,7 +2055,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_overload_fn_method.ts::Client",
@@ -2031,7 +2078,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_overload_fn_method.ts::Client::send",
@@ -2053,7 +2101,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_overload_fn_method.ts::Client::send",
@@ -2075,7 +2124,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_overload_fn_method.ts::Client::send",
@@ -2097,7 +2147,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_overload_fn_method.ts::Client::connect",
@@ -2119,7 +2170,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_overload_fn_method.ts::Client::connect",
@@ -2141,7 +2193,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_overload_fn_method.ts::Client::connect",
@@ -2163,7 +2216,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_overload_fn_method.ts::Transport",
@@ -2185,7 +2239,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
},
{
"id": "lang_samples/typescript/ts_overload_fn_method.ts::Shim",
@@ -2207,7 +2262,8 @@
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
- "modifiers": []
+ "modifiers": [],
+ "alias_of": null
}
],
"imports": [],
diff --git a/tests/unit/ingestion/test_call_resolver_strategies.py b/tests/unit/ingestion/test_call_resolver_strategies.py
index 6b81b97d6..2e0dba100 100644
--- a/tests/unit/ingestion/test_call_resolver_strategies.py
+++ b/tests/unit/ingestion/test_call_resolver_strategies.py
@@ -1994,6 +1994,84 @@ class TestModuleAliasReachesTopLevelOnly:
"module_alias",
) in _edges(parsed, tmp_path, import_targets)
+ def test_rebound_alias_is_not_redirected_to_original_definition(
+ self, tmp_path: Path
+ ) -> None:
+ parsed = _parse_all(
+ tmp_path,
+ {
+ "mod.py": (
+ "python",
+ "def _impl():\n"
+ " pass\n"
+ "\n"
+ "wrapped = _impl\n"
+ "wrapped = cache(wrapped)\n"
+ "\n"
+ "def use_it():\n"
+ " wrapped()\n",
+ ),
+ },
+ )
+
+ edges = _edges(parsed, tmp_path)
+
+ assert (
+ "mod.py::use_it",
+ "mod.py::wrapped",
+ 0.95,
+ "same_file",
+ ) in edges
+
+ assert (
+ "mod.py::use_it",
+ "mod.py::_impl",
+ 0.95,
+ "same_file",
+ ) not in edges
+
+
+ def test_chained_alias_redirects_to_final_definition(
+ self, tmp_path: Path
+ ) -> None:
+ parsed = _parse_all(
+ tmp_path,
+ {
+ "mod.py": (
+ "python",
+ "def real():\n"
+ " pass\n"
+ "\n"
+ "widget = real\n"
+ "s = widget\n"
+ "\n"
+ "def use_it():\n"
+ " s()\n",
+ ),
+ },
+ )
+
+ edges = _edges(parsed, tmp_path)
+
+ assert (
+ "mod.py::use_it",
+ "mod.py::real",
+ 0.95,
+ "same_file",
+ ) in edges
+ assert (
+ "mod.py::use_it",
+ "mod.py::widget",
+ 0.95,
+ "same_file",
+ ) not in edges
+ assert (
+ "mod.py::use_it",
+ "mod.py::s",
+ 0.95,
+ "same_file",
+ ) not in edges
+
class TestExternalReceiverType:
"""A Java receiver declared with a type the repo does not own is refused.
@@ -2167,3 +2245,193 @@ class TestExternalReceiverType:
assert [d.type_name for d in scan_declarations("List<Foo> xs;\n", "java")] == [
"external:List"
]
+class TestPythonNameAliasAssignment:
+ """A plain-name alias must redirect onto the real definition, not its own line (#2791)."""
+
+ def test_a_non_chained_alias_resolves_to_the_real_definition(self, tmp_path: Path) -> None:
+ parsed = _parse_all(
+ tmp_path,
+ {
+ "mod.py": (
+ "python",
+ "def widget():\n"
+ " pass\n"
+ "\n"
+ "s = widget\n"
+ "\n"
+ "def use_it():\n"
+ " s()\n",
+ )
+ },
+ )
+ assert _edges(parsed, tmp_path) == [("mod.py::use_it", "mod.py::widget", 0.95, "same_file")]
+
+ def test_a_chained_alias_resolves_every_target_and_the_middle_name_exists(
+ self, tmp_path: Path
+ ) -> None:
+ parsed = _parse_all(
+ tmp_path,
+ {
+ "mod.py": (
+ "python",
+ "def widget():\n"
+ " pass\n"
+ "\n"
+ "s = attributes = widget\n"
+ "\n"
+ "def use_it():\n"
+ " s()\n"
+ " attributes()\n"
+ " widget()\n",
+ )
+ },
+ )
+ names = {sym.name for sym in parsed["mod.py"].symbols}
+ assert "attributes" in names # the query alone drops this today
+
+ edges = _edges(parsed, tmp_path)
+ assert edges == [
+ ("mod.py::use_it", "mod.py::widget", 0.95, "same_file"),
+ ("mod.py::use_it", "mod.py::widget", 0.95, "same_file"),
+ ("mod.py::use_it", "mod.py::widget", 0.95, "same_file"),
+ ]
+
+ def test_a_non_name_right_hand_side_is_unaffected(self, tmp_path: Path) -> None:
+ """A call or an attribute access is a real value, not an alias of a name."""
+ parsed = _parse_all(
+ tmp_path,
+ {
+ "mod.py": (
+ "python",
+ "def widget():\n"
+ " pass\n"
+ "\n"
+ "s = widget()\n"
+ "\n"
+ "def use_it():\n"
+ " s()\n",
+ ),
+ "attr.py": (
+ "python",
+ "class C:\n"
+ " widget = None\n"
+ "\n"
+ "s = C.widget\n"
+ "\n"
+ "def use_it():\n"
+ " s()\n",
+ ),
+ },
+ )
+ mod_symbol = next(sym for sym in parsed["mod.py"].symbols if sym.name == "s")
+ attr_symbol = next(sym for sym in parsed["attr.py"].symbols if sym.name == "s")
+ assert mod_symbol.alias_of is None
+ assert attr_symbol.alias_of is None
+
+ edges = _edges(parsed, tmp_path)
+ assert ("mod.py::use_it", "mod.py::s", 0.95, "same_file") in edges
+ assert ("attr.py::use_it", "attr.py::s", 0.95, "same_file") in edges
+
+ def test_class_alias_prefers_class_scoped_target_over_module_name(
+ self, tmp_path: Path
+ ) -> None:
+ from dataclasses import replace
+
+ parsed = _parse_all(
+ tmp_path,
+ {
+ "mod.py": (
+ "python",
+ "def widget():\n"
+ " pass\n"
+ "\n"
+ "class C:\n"
+ " def widget():\n"
+ " pass\n"
+ "\n"
+ " def use_it():\n"
+ " s()\n",
+ )
+ },
+ )
+
+ # Python's symbol query intentionally excludes class-body assignments.
+ # Inject the equivalent alias to test resolver indexing in isolation.
+ pf = parsed["mod.py"]
+ class_widget = next(
+ sym for sym in pf.symbols if sym.id == "mod.py::C::widget"
+ )
+ pf.symbols.append(
+ replace(
+ class_widget,
+ id="mod.py::C::s::alias@100",
+ name="s",
+ qualified_name="mod.C.s",
+ alias_of="widget",
+ )
+ )
+
+ edges = _edges(parsed, tmp_path)
+
+ assert (
+ "mod.py::C::use_it",
+ "mod.py::C::widget",
+ 0.95,
+ "same_file",
+ ) in edges
+ assert (
+ "mod.py::C::use_it",
+ "mod.py::widget",
+ 0.95,
+ "same_file",
+ ) not in edges
+
+ def test_chained_alias_does_not_overwrite_real_definition(
+ self, tmp_path: Path
+ ) -> None:
+ parsed = _parse_all(
+ tmp_path,
+ {
+ "mod.py": (
+ "python",
+ "def attributes():\n"
+ " pass\n"
+ "\n"
+ "def widget():\n"
+ " pass\n"
+ "\n"
+ "s = attributes = widget\n"
+ "\n"
+ "def use_attributes():\n"
+ " attributes()\n"
+ "\n"
+ "def use_alias():\n"
+ " s()\n",
+ )
+ },
+ )
+
+ edges = _edges(parsed, tmp_path)
+
+ assert (
+ "mod.py::use_attributes",
+ "mod.py::widget",
+ 0.95,
+ "same_file",
+ ) in edges
+
+ assert (
+ "mod.py::use_alias",
+ "mod.py::widget",
+ 0.95,
+ "same_file",
+ ) in edges
+
+ attributes_symbols = [
+ symbol
+ for symbol in parsed["mod.py"].symbols
+ if symbol.name == "attributes"
+ ]
+
+ assert len(attributes_symbols) == 2
+ assert len({symbol.id for symbol in attributes_symbols}) == 2