)]}'
{
  "commit": "93e6868182a8cfdf7dbd06f87575a62c23379a8e",
  "tree": "26be97a0d14bbd6dfbca4630cbd095d17defa11f",
  "parents": [
    "bb486ab68d0fc27a189d94be181b2de5ccde306d"
  ],
  "author": {
    "name": "Asuka Minato",
    "email": "i@asukaminato.eu.org",
    "time": "Wed Oct 28 03:18:03 2026 -0700"
  },
  "committer": {
    "name": "meta-codesync[bot]",
    "email": "215208954+meta-codesync[bot]@users.noreply.github.com",
    "time": "Wed Oct 28 03:18:03 2026 -0700"
  },
  "message": "test: document enum semantic-token classification bugs (#5050)\n\nSummary:\nSemantic tokens classify attributes from their inferred value types instead of their definitions. Snapshots capture the current misclassification, with comments identifying the correct enumMember or property token for each affected case.\n\nThese LSP tests use ordinary Rust `#[test]` functions, so explicit `BUG` comments document the incorrect behavior and the correct result. These are passing tests of known bugs, following [the repository test guidance](https://github.com/facebook/pyrefly/blob/main/AGENTS.md#the-bug-marker-in-tests).\n\nThe complete implementation and regression tests remain in [PR https://github.com/facebook/pyrefly/issues/4794](https://github.com/facebook/pyrefly/pull/4794). Related issue: https://github.com/facebook/pyrefly/issues/4751.\n\n## Validation\n\nBased on upstream `main` at `ef6de648bce0dc6dcca0a21a9fbb7490f23ecce8`.\n\n- `cargo test -p pyrefly --lib -- enum_member_definition_test narrowed_enum_instance_attribute_test` — passed.\n- `python3 test.py --no-test --no-tensor-shapes --no-conformance --no-jsonschema --no-extension` — passed.\n\nPull Request resolved: https://github.com/facebook/pyrefly/pull/5050\n\nReviewed By: rchen152\n\nDifferential Revision: D122390462\n\nfbshipit-source-id: 79027859a79c700aca570d74df86de37bf3e66de\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b5879ec82e6a2436008e2097d0b4676407beb174",
      "old_mode": 33188,
      "old_path": "pyrefly/lib/test/lsp/semantic_tokens.rs",
      "new_id": "f31baa293ca545914daca7a538b51a181758c477",
      "new_mode": 33188,
      "new_path": "pyrefly/lib/test/lsp/semantic_tokens.rs"
    }
  ]
}
