File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed
typed-racket-lib/typed-racket/rep Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 73
73
(begin (struct name ()
74
74
#:constructor-name mk
75
75
#:transparent
76
+ #:authentic
76
77
#:property prop:custom-print-quotable 'never
77
78
extra ...
78
79
#:methods gen:custom-write
Original file line number Diff line number Diff line change 39
39
variance:const
40
40
variance:dotted)
41
41
(let ()
42
- (define-struct Variance () #:transparent )
43
- (define-struct (Covariant Variance) () #:transparent )
44
- (define-struct (Contravariant Variance) () #:transparent )
45
- (define-struct (Invariant Variance) () #:transparent )
46
- (define-struct (Constant Variance) () #:transparent )
42
+ (define-struct Variance () #:transparent #:authentic )
43
+ (define-struct (Covariant Variance) () #:transparent #:authentic )
44
+ (define-struct (Contravariant Variance) () #:transparent #:authentic )
45
+ (define-struct (Invariant Variance) () #:transparent #:authentic )
46
+ (define-struct (Constant Variance) () #:transparent #:authentic )
47
47
;; not really a variance, but is disjoint with the others
48
- (define-struct (Dotted Variance) () #:transparent )
48
+ (define-struct (Dotted Variance) () #:transparent #:authentic )
49
49
(values Variance? (make-Covariant) (make-Contravariant) (make-Invariant) (make-Constant) (make-Dotted))))
50
50
51
51
(define (variance:co? x) (eq? x variance:co))
71
71
72
72
;;All of these are used internally
73
73
;;Only combined-frees is used externally
74
- (struct combined-frees (table computed) #:transparent )
75
- (struct app-frees (name args) #:transparent )
76
- (struct remove-frees (inner name) #:transparent )
74
+ (struct combined-frees (table computed) #:transparent #:authentic )
75
+ (struct app-frees (name args) #:transparent #:authentic )
76
+ (struct remove-frees (inner name) #:transparent #:authentic )
77
77
78
78
79
79
;; Base constructors
Original file line number Diff line number Diff line change 611
611
#'(constr-provide nonconstr-provide)])]
612
612
[struct-def #'(struct var.name parent ... (flds.ids ... )
613
613
maybe-transparent ...
614
+ #:authentic
614
615
#:constructor-name constructor-name
615
616
#:property prop:uid uid-id
616
617
#:property prop:mask rep-mask-body
You can’t perform that action at this time.
0 commit comments