-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow a static info key to have specific union and intersect operations
Default operations merge the same as `#%call-result`, and that default is useful for the shortcut of using selector identifiers as static-info keys for the selector's result. Otherwise, though, a static info key should be bound to a compile-time record that supplies union and intersection operations on values associated with the key.
- Loading branch information
Showing
29 changed files
with
511 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,4 +29,4 @@ | |
"gui-easy" | ||
"compatibility")) | ||
|
||
(define version "0.24") | ||
(define version "0.25") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#lang racket/base | ||
(require (for-syntax racket/base) | ||
"static-info.rkt") | ||
|
||
(provide #%append) | ||
|
||
(define #%append #f) | ||
(define-static-info-key-syntax/provide #%append | ||
(static-info-key static-info-identifier-union | ||
static-info-identifier-intersect)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#lang racket/base | ||
(require (for-syntax racket/base) | ||
"static-info.rkt") | ||
|
||
(provide #%call-result | ||
#%call-results-at-arities) | ||
|
||
(define #%call-result #f) | ||
(define #%call-results-at-arities #f) | ||
(define-static-info-key-syntax/provide #%call-result | ||
(static-info-key static-infos-result-union | ||
static-infos-result-intersect)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#lang racket/base | ||
(require (for-syntax racket/base) | ||
"static-info.rkt") | ||
|
||
(provide #%dot-provider) | ||
|
||
(define #%dot-provider #f) | ||
(define-static-info-key-syntax/provide #%dot-provider | ||
(static-info-key static-info-identifier-union | ||
static-info-identifier-intersect)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
#lang racket/base | ||
(require (for-syntax racket/base) | ||
"static-info.rkt" | ||
"function-arity.rkt") | ||
|
||
(provide #%function-arity) | ||
|
||
(define #%function-arity #f) | ||
(define-static-info-key-syntax/provide #%function-arity | ||
(static-info-key (lambda (a b) | ||
(union-arity-summaries (list (syntax->datum a) (syntax->datum b)))) | ||
(lambda (a b) | ||
(intersect-arity-summaries (list (syntax->datum a) (syntax->datum b)))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
#lang racket/base | ||
(require (for-syntax racket/base) | ||
"static-info.rkt") | ||
|
||
(provide #%index-get | ||
#%index-set) | ||
(define-static-info-key-syntax/provide #%index-get | ||
(static-info-key static-info-identifier-union | ||
static-info-identifier-intersect)) | ||
|
||
(define #%index-get #f) | ||
(define #%index-set #f) | ||
(define-static-info-key-syntax/provide #%index-set | ||
(static-info-key static-info-identifier-union | ||
static-info-identifier-intersect)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#lang racket/base | ||
(require (for-syntax racket/base) | ||
"static-info.rkt") | ||
|
||
(provide #%index-result) | ||
|
||
(define #%index-result #f) | ||
(define-static-info-key-syntax/provide #%index-result | ||
(static-info-key static-infos-union | ||
static-infos-intersect)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#lang racket/base | ||
(require "static-info.rkt") | ||
|
||
(provide #%indirect-static-info) | ||
|
||
(define #%indirect-static-info #f) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#lang racket/base | ||
(require (for-syntax racket/base) | ||
"static-info.rkt") | ||
|
||
(provide #%sequence-constructor) | ||
|
||
(define #%sequence-constructor #f) | ||
(define-static-info-key-syntax/provide #%sequence-constructor | ||
(static-info-key static-info-identifier-union | ||
static-info-identifier-intersect)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#lang racket/base | ||
(require (for-syntax racket/base) | ||
"static-info.rkt") | ||
|
||
(provide #%sequence-element) | ||
|
||
(define #%sequence-element #f) | ||
(define-static-info-key-syntax/provide #%sequence-element | ||
(static-info-key static-infos-union | ||
static-infos-intersect)) |
Oops, something went wrong.