Skip to content

[Feature Request] Add support for F# language parsing and indexing #1437

Description

@Aa728848

Feature Description

I would like to request language support for F# (.fs, .fsi, .fsx) in CodeGraph.

F# is a powerful functional-first programming language on the .NET platform, widely used in domain-driven design, financial modeling, web services, and cloud applications. Adding F# support would significantly expand CodeGraph's capabilities within the .NET ecosystem alongside C#.

Suggested Scope & Details

  • File Extensions: .fs, .fsi, .fsx
  • Parser Integration: Integration of F# AST parser (e.g., utilizing tree-sitter-fsharp or FSharp.Compiler.Service).
  • Symbol & Graph Extraction:
    • Modules and Namespaces (module, namespace, open)
    • Functions and Bindings (let, let rec, use, val)
    • F# Types (Discriminated Unions, Records, Type Abbreviations, Classes, Interfaces)
    • Active Patterns & Computation Expressions
  • Call & Dependency Graph: Cross-module symbol navigation and reference tracking, supporting F# pipelining (|>, <|) and composition patterns.

Additional Context

Thank you for building CodeGraph! Looking forward to F# language support.

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