resyntax icon indicating copy to clipboard operation
resyntax copied to clipboard

Identifier usage analyzer should count disappeared uses

Open jackfirth opened this issue 4 months ago • 0 comments

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

jackfirth avatar Nov 01 '25 06:11 jackfirth