Skip to content

Exclude raw and multiline C# string contents from symbol extraction #4454

Description

@Widthdom

Summary

Text inside C# raw or multiline string literals must not be parsed as C# declarations. SQL keywords and clauses currently become phantom functions with malformed signatures and ranges.

Evidence

definition in --lang csharp --exact-name returns six functions named IN from SQL text in DbReader.Dependencies.cs and DbSymbolReader.Hotspots.cs, including repeated consecutive SQL lines and return types made from SELECT/WHERE fragments.

Evidence paths:

  • src/CodeIndex/Database/DbReader.Dependencies.cs

Environment

Locally built cdidx 1.37.2 from origin/main 098db58; full net8/net9 test suite passed before dogfooding.

Duplicate check

No equivalent open issue existed before this filing batch. Closed issues were not treated as blockers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcodex

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions