Skip to content

[bug] TypeScript: func_start regex misses arrow functions assigned to variables #2220

Closed

Description

@squid-protocol

During a sweep of the tri-comparison ledger, we found that the TypeScript func_start regex fails to extract arrow functions that are assigned to variables.

Example from fp-ts/Either.ts:

const _traverse = <F>(
  F: ApplicativeHKT<F>
): (<E, A, B>(ta: Either<E, A>, f: (a: A) => HKT<F, B>) => HKT<F, Either<E, B>>) => {

Tree-sitter correctly extracts this, but GitGalaxy drops it (losing 174 occurrences in the corpus). We need to broaden the TypeScript func_start pattern to support arrow functions.

Activity

  1. added
    bug
    core-engine
    on Aug 24, 2026
  2. added 3 commits that reference this issue on Aug 24, 2026
    38ee922
    2382b89
    d45eedd
  3. added this to the v2.4.9 milestone on Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcore-engine

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions