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 42
42
variance:const
43
43
variance:dotted)
44
44
(let ()
45
- (define-struct Variance () #:transparent )
46
- (define-struct (Covariant Variance) () #:transparent )
47
- (define-struct (Contravariant Variance) () #:transparent )
48
- (define-struct (Invariant Variance) () #:transparent )
49
- (define-struct (Constant Variance) () #:transparent )
45
+ (define-struct Variance () #:transparent #:authentic )
46
+ (define-struct (Covariant Variance) () #:transparent #:authentic )
47
+ (define-struct (Contravariant Variance) () #:transparent #:authentic )
48
+ (define-struct (Invariant Variance) () #:transparent #:authentic )
49
+ (define-struct (Constant Variance) () #:transparent #:authentic )
50
50
;; not really a variance, but is disjoint with the others
51
- (define-struct (Dotted Variance) () #:transparent )
51
+ (define-struct (Dotted Variance) () #:transparent #:authentic )
52
52
(values Variance? (make-Covariant) (make-Contravariant) (make-Invariant) (make-Constant) (make-Dotted))))
53
53
54
54
(define (variance:co? x) (eq? x variance:co))
74
74
75
75
;;All of these are used internally
76
76
;;Only combined-frees is used externally
77
- (struct combined-frees (table computed) #:transparent )
78
- (struct app-frees (name args) #:transparent )
79
- (struct remove-frees (inner name) #:transparent )
77
+ (struct combined-frees (table computed) #:transparent #:authentic )
78
+ (struct app-frees (name args) #:transparent #:authentic )
79
+ (struct remove-frees (inner name) #:transparent #:authentic )
80
80
81
81
82
82
;; Base constructors
Original file line number Diff line number Diff line change 619
619
#'(constr-provide nonconstr-provide)])]
620
620
[struct-def #'(struct var.name parent ... (flds.ids ... )
621
621
maybe-transparent ...
622
+ #:authentic
622
623
#:constructor-name constructor-name
623
624
#:property prop:uid uid-id
624
625
#:property prop:mask rep-mask-body
You can’t perform that action at this time.
0 commit comments