added syntax property 'disappeared-use so that keywords in world clauses point to origin and have docs

This commit is contained in:
Matthias Felleisen 2011-08-03 14:25:29 -04:00
parent ac919568a6
commit c938fdf419

View File

@ -245,9 +245,11 @@
[(and (not (contains-clause? #'to-draw dom)) (not (contains-clause? #'on-draw dom))) [(and (not (contains-clause? #'to-draw dom)) (not (contains-clause? #'on-draw dom)))
(raise-syntax-error #f "expects a [to-draw handler] clause, missing" stx)] (raise-syntax-error #f "expects a [to-draw handler] clause, missing" stx)]
[else [else
(syntax-property
(stepper-syntax-property (stepper-syntax-property
#`(run-it ((new-world (if #,rec? aworld% world%)) w #,@args)) #`(run-it ((new-world (if #,rec? aworld% world%)) w #,@args))
'stepper-skip-completely #t)]))])) 'stepper-skip-completely #t)
'disappeared-use (map (lambda (x) (car (syntax->list x))) dom))]))]))
(define (run-simulation f) (define (run-simulation f)
(check-proc 'run-simulation f 1 "first" "one argument") (check-proc 'run-simulation f 1 "first" "one argument")