Skip to content

[TypeScript] tree_sitter_accuracy_audit.py flags phantom gaps for catch/return methods #2233

Closed

Description

@squid-protocol

Problem:
vscode/async.ts flags catch and return as missing functions in _missing_examples.

Root Cause:
These are real method properties named catch and return. GitGalaxy correctly and intentionally drops them via the func_start keyword blacklist ((?!(?:...|catch|return...)\b)) to prevent massive false positives from control flow blocks (like catch (e) {). However, tests/tools/tree_sitter_accuracy_audit.py only filters these known hallucinations for javascript (lang == "javascript" and name in _JS_RESERVED_STATEMENT_KEYWORDS), neglecting to apply the identical filter for typescript.

To Reproduce:
Run tests/tools/tree_sitter_accuracy_audit.py --lang typescript and observe catch and return in _missing_examples.

Activity

  1. added
    bug
    core-engine
    threat: false-positive
    on Aug 24, 2026
  2. changed the title [-][TS] tree_sitter_accuracy_audit.py flags phantom gaps for catch/return methods[/-] [+][TypeScript] tree_sitter_accuracy_audit.py flags phantom gaps for catch/return methods[/+] on Aug 26, 2026
  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-enginethreat: false-positive

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions