Skip to content

Feature request: Add Solidity language support for symbol graph indexing #374

@xiaozuoyou

Description

@xiaozuoyou

CodeGraph currently indexes TypeScript/script files in mixed Solidity repositories, but it does not build Solidity structure nodes. In a Solidity project that also contains TS files, only the TS/script side is indexed, so Solidity audit workflows cannot be completed as a symbol graph.

This makes CodeGraph ineffective for Solidity security review and architecture analysis, because the agent cannot traverse Solidity functions, contracts, state variables, events, inheritance, or cross-contract call relationships.

Requested support:

  • Parse and index Solidity source files as first-class language nodes
  • Extract contract, interface, library, function, modifier, event, error, state variable, inheritance, and import relationships
  • Include Solidity symbols in callers/callees/impact/context queries
  • Make mixed Solidity + TypeScript repositories index both layers instead of dropping Solidity structure

Current behavior in my repository:

  • TS/script files are indexed
  • Solidity files are treated as plain files or skipped for structure extraction
  • Solidity audits cannot work via the symbol graph

I would be happy to provide a sample repository or help test a prototype implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions