jackfirth / jackfirth/resyntax

Identifier usage analyzer should count disappeared uses

Open
#688 0 comments 1 reaction 1 assignee View on GitHub

Nobody has claimed this yet.

autopilot-candidate bug existing lint
Dominant language
Racket
Stars
70
Forks
11
PR merge metrics
No merged PRs in 30d

Description

The implementation of identifier-usage-analyzer currently doesn't see disappeared uses, as recorded by macros in the 'disappeared-use syntax property. This test should pass:

#lang resyntax/test
header: - #lang racket/base

analysis-test: "struct-copy disappeared use counted"
----------------------------------------
(struct point (x y z))
(define (f pt)
  (struct-copy point pt [y 100]))
----------------------------------------
@within - (struct point (x y z))
@inspect - point
@property usage-count
@assert 1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.