typed-racket/typed-racket-test/unit-tests
Andrew Kent 24c64e9de0 new representation scheme for typed racket internals
This is a major to some of the internal representation of things
within Typed Racket (mostly affecting structs that inherited from Rep
(see rep/rep-utils.rkt)), and lots of tweaks and bug fixes that
happened along the way.

This PR includes the following major changes:

A new rep-utils implementation, which uses struct properties for the
generic operations and properties of the various Reps (see
rep-utils.rkt)

More specific Rep inheritance (i.e. arr no longer inherits from Type,
because it is not a Type, etc ...) (see type-rep.rkt, core-rep.rkt,
values-rep.rkt), and thus things like Type/c no longer exist

New Rep's to classify the things that are no longer Type or Prop,
(such as PropSets, SomeValues, Results, etc -- see core-rep.rkt and
values-rep.rkt)

uses of type-case now replaced by uses of Rep-fold and Rep-walk

structural types can specify their fields' variance and operations
like subtyping and free-vars can generically operate over these types
(see type-rep.rkt)

type-mask replaces types key -- types masks are described in detail in
(rep/type-mask.rkt)

Types can specify a predicate to recognize their "top type" via [#:top
pred])

There is an explicit 'Bottom' type now (i.e. neither union or
intersection are used)

subtyping re-organized, slight tweaking to inference

various environments got for-each functions in addition to the map
functions they had (e.g. type-name-env.rkt)

Empty is no longer an Object? -- the OptObject? predicate checks for
either Object or Empty, and so it is easier to be clear about where
Empty makes sense appearing and where it does not

Previously signatures were created with promises in their fields, now
we create a promise around each signature (this way the contracts for
Signature fields are cleaner)

Names for structs now use the args field to describe how many type
arguments they take (Note: this could use further tidying for sure!)

simplified the propositional logic code in several places, got rid of
escape continuations, etc (see prop-ops.rkt, tc-envops.rkt,
tc-metafunctions.rkt)

we now use subsumption more to simplify type results from type
checking, e.g. if the type does not overlap w/ false, it's false
proposition is FalseProp, etc (see tc-expr-unit.rkt and prop-ops.rkt,
the function is called reduce-tc-results/subsumption)

updating along a path will now intersect with the expected structural
type if it is not encountered (e.g. updating Any with (Int @ car) now
produces (Pairof Int Any) instead of Any -- see update.rkt)

lots of tests were tweaked to match up w/ the new prop subsumption
that occurs

remove was renamed subtract (so as to not conflict w/ racket/base's
remove)

a restrict function was added, which acts like intersect but is never
additive (i.e. it will never create an intersection if it can't figure
out how the two types relate -- see intersect.rkt)

tc-subst was modified to substitute out all the variables leaving
scope at once (and I simplified/tweaked some of the logic in there a
little, see tc-subst.rkt)

Type checking function applications now propagates information learned
why type checking the arguments, (e.g. (begin (f (assert x boolean?))
...)) ; the remainder of the begin is aware that x is a boolean)
2016-10-21 14:24:27 -04:00
..
all-tests.rkt filter -> prop 2016-04-25 18:36:12 -04:00
check-below-tests.rkt new representation scheme for typed racket internals 2016-10-21 14:24:27 -04:00
class-tests.rkt new representation scheme for typed racket internals 2016-10-21 14:24:27 -04:00
class-util-tests.rkt Reduce directory nesting for tests. 2014-12-16 10:07:25 -05:00
contract-tests.rkt new representation scheme for typed racket internals 2016-10-21 14:24:27 -04:00
evaluator.rkt Reduce directory nesting for tests. 2014-12-16 10:07:25 -05:00
generalize-tests.rkt new representation scheme for typed racket internals 2016-10-21 14:24:27 -04:00
infer-tests.rkt Make infer unfold Mu before spliting on Unions. 2015-05-19 20:44:15 -07:00
init-env-tests.rkt Fix bug in init-envs (need to generate Rows too) 2016-06-22 17:47:46 -04:00
interactive-tests.rkt Add test for top-level mutated var fix. 2015-11-18 14:31:48 -05:00
keyword-expansion-test.rkt Reduce directory nesting for tests. 2014-12-16 10:07:25 -05:00
metafunction-tests.rkt new representation scheme for typed racket internals 2016-10-21 14:24:27 -04:00
parse-type-tests.rkt new representation scheme for typed racket internals 2016-10-21 14:24:27 -04:00
prefab-tests.rkt Add typechecking for prefab structs 2015-03-10 15:14:51 -04:00
prims-tests.rkt unstable/macro-testing -> syntax/macro-testing 2015-08-05 13:13:50 -05:00
prop-tests.rkt new representation scheme for typed racket internals 2016-10-21 14:24:27 -04:00
remove-intersect-tests.rkt new representation scheme for typed racket internals 2016-10-21 14:24:27 -04:00
special-env-typecheck-tests.rkt new representation scheme for typed racket internals 2016-10-21 14:24:27 -04:00
static-contract-conversion-tests.rkt Initial support for typed units in typed racket. 2015-09-10 16:32:11 -05:00
static-contract-equality-tests.rkt Fix contracts for structs with the same name (PR 15330) (#410) 2016-07-21 11:14:05 -04:00
static-contract-optimizer-tests.rkt Add the simple-result-> combinator to Typed Racket. 2016-01-16 22:27:18 -05:00
subst-tests.rkt Reduce directory nesting for tests. 2014-12-16 10:07:25 -05:00
subtype-tests.rkt new representation scheme for typed racket internals 2016-10-21 14:24:27 -04:00
test-utils.rkt Add support for running raco test on TR unit tests. 2015-05-14 12:13:14 -04:00
tooltip-tests.rkt Update type-table after tc-funapp processing 2016-03-28 17:53:34 -04:00
type-alias-helper.rkt Reduce directory nesting for tests. 2014-12-16 10:07:25 -05:00
type-equal-tests.rkt Reduce directory nesting for tests. 2014-12-16 10:07:25 -05:00
type-printer-tests.rkt new representation scheme for typed racket internals 2016-10-21 14:24:27 -04:00
typecheck-tests.rkt new representation scheme for typed racket internals 2016-10-21 14:24:27 -04:00
typed-units-tests.rkt filter -> prop 2016-04-25 18:36:12 -04:00