Skip to content

refactor(native): remove call kind from Rust AST node extraction #701

@carlos-alm

Description

@carlos-alm

Context

PR #686 removed dead call AST node extraction from the WASM visitor and the JS insertion paths. The JS side now filters out call kind entries from native astNodes to maintain engine parity.

However, the native Rust engine still extracts call AST nodes in:

  • crates/codegraph-core/src/extractors/helpers.rscall_types field in LangAstConfig and corresponding extraction in walk_ast_nodes_with_config_depth
  • crates/codegraph-core/src/extractors/javascript.rscall_expression match arm in walk_ast_nodes

These should be removed from the Rust extractors so the native binary no longer emits dead data that the JS side filters out.

Task

  1. Remove call_types from LangAstConfig struct and all per-language configs
  2. Remove call expression handling from walk_ast_nodes_with_config_depth in helpers.rs
  3. Remove call_expression handling from walk_ast_nodes in javascript.rs
  4. Remove the JS-side call filter in src/features/ast.ts once the new native binary is published

Metadata

Metadata

Assignees

No one assigned

    Labels

    follow-upDeferred work from PR reviews that needs tracking

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions