Commit Graph

4545 Commits

Author SHA1 Message Date
AlexKnauth
d650866cdb test types for typed/syntax/stx
original commit: 4c22029f0616611c826f10fc2d3320a1ab32d48b
2014-10-18 12:25:27 -04:00
AlexKnauth
c425f4f5b2 fix types of stx->list, stx-car, etc.
original commit: 56faac79c47d39626c3cc30cfab808e0524a722d
2014-10-18 12:25:27 -04:00
Asumu Takikawa
5e9eedd41c Support define-namespace-anchor in TR
original commit: 03855eb53248f6de46ccfaa71b001a0375156e50
2014-10-17 15:23:28 -04:00
Vincent St-Amour
46b8e6668d Update TR history.
Please merge to 6.1.1.

original commit: 66e5a246c42dd585be9e42b280c0338de1e30892
2014-10-16 14:42:43 -04:00
Asumu Takikawa
58b3c4f4f7 Add contract generation for Evtof types
original commit: 863f0c58025301312298fb52a6c5f0d4ccdbdb9c
2014-10-09 17:13:49 -04:00
Asumu Takikawa
b4b666f9f2 Fix printing of * in -> types
original commit: 38af459049819ecac24de6b349440e6c589703f9
2014-10-09 16:11:36 -04:00
Eli Barzilay
2ff47d2e06 Random improvement.
The thing that caught my eye is the missing `#:cache-keys?' which should
really be there.  But not too important.

original commit: eaa6f85054c5c404507e5c9cbab0d3e93f468370
2014-10-09 16:11:16 -04:00
Eli Barzilay
0674c1638e Add `type-output-sexpr-tweaker'.
Sounds like a bad name, but I don't have anything better.  It's not some
"current-...-print" thing since it works on the sexpr that is intended
to be pretty-printed.  So I went with the above.

original commit: 3c98d086904409b9c49d710134415d718d6ca65e
2014-10-09 16:11:16 -04:00
Eli Barzilay
bd742ac79e Get rid of `special-dots-printing?'.
Asumu said that he doesn't know of any other clients of this parameter
besides my class code.

original commit: 0eed0f6e0e493b190abc912981bab59644a3a760
2014-10-09 16:11:16 -04:00
Eli Barzilay
22229fd8ac Get rid of some unused code.
Looks like some aborted attempt at abstraction, which is no longer used.

original commit: 2e6b82ab8ec0cc63837759873e412831de5a1826
2014-10-09 16:11:16 -04:00
Asumu Takikawa
6176852a27 Rewrite TR class form to preserve abstractions
This uses a technique discovered by Ryan and Dan that
allows the typed class macro to function without invasively
local-expanding the entire class macro (using its private
context information).

Instead, it expands into many helper macros inside the
normal class body and communicates among them using
`syntax-local-value` and compile-time state within the
class body.

This rewrite didn't save that many lines, but it did
reduce the amount of magic that's used.

original commit: 725cb99f4ade73f46da9abf7c116158675f9f22b
2014-10-09 14:37:05 -04:00
Asumu Takikawa
9e46f0391e Delete useless definition
original commit: cefa13c4d7f175d657f6875f977a1af94e0d5061
2014-10-09 11:00:35 -04:00
Asumu Takikawa
6d7dee7b9d Fix type for read-bitmap
Closes PR 14729

original commit: e50e2eaa57033e09dd563d2ddd73608c9a96d3be
2014-10-08 01:57:22 -04:00
Asumu Takikawa
f32844253d Adjust tc-utils too for new DrRacket protocol
original commit: f271d3b1675a8d615a50ef73b181cdac7040b998
2014-10-07 00:02:30 -04:00
Robby Findler
edb79ee27b adjust the tooltip check syntax property to insist
on the syntax object itself to identify the source,
instead of just handing over the source

original commit: 8784bd984f26a3a97aec98d9762992b1bddff30f
2014-10-06 21:19:12 -05:00
Asumu Takikawa
cb341fdd46 Add TR tooltips for type errors as well.
Adjust type tooltips to only show if there isn't a type
error on that syntax location.

original commit: 693355710fae559c09f6c3f6850fe1268d048eb4
2014-10-06 18:56:53 -04:00
Neil Toronto
41e63fad3c Added get-current-gl-context, tests (also for make-gl-bitmap), and docs
original commit: 1e99637bf887beab5bfd64be2a7bf0c918a38114
2014-10-06 16:37:06 -04:00
Asumu Takikawa
5c3700d983 Add type tooltip information in TR modules
This lets DrRacket show types for expressions that
are typechecked.

original commit: e301519a7e9bfb71c66e20788d45cbcc0353dfd8
2014-10-06 14:07:28 -04:00
Asumu Takikawa
1aacf57a9a Fix types for eq/eqv/equal-hash-code
Thanks to this SO question:
  http://stackoverflow.com/questions/26130215

original commit: 0a71fe1d289938cde3e82df97ca199e655e1e237
2014-10-01 13:53:18 -04:00
hopkinsr
542fe0fbb7 call/input-url - support headers and polymorphism
The types are tweaked to match the contracts and to support passing a
list of headers to the connect procedure.

The FIXME for polymorphism has also been removed as it is now
parameterized to support "...The result of the handle procedure is the
result of call/input-url..."

original commit: d534b19167efcd265ef16d698ebd396cec32c38b
2014-10-01 09:24:32 -04:00
Asumu Takikawa
595c189456 Fix embarrassing bug in OO subtyping
Subtyping on objects was unsound due to an attempt to
make the algorithm more clever. This was a good lesson in
the danger of premature optimization.

original commit: 994c54c72252e4d39a2ff1315f5bcc6fcf3075a8
2014-09-30 21:56:07 -04:00
Asumu Takikawa
cdd0b614dc Fix type for text:line-numbers-mixin
original commit: 089e6387de18a1a2e139e491aacf5c54734d1b77
2014-09-16 16:35:51 -04:00
Phil Nguyen
dfc6abcb14 Add more typed bindings for framework and for GUI
original commit: 2cfe0ddcdbb91f01c76707f576038d0bd6fd7bc0
2014-09-16 15:55:15 -04:00
Asumu Takikawa
22e9a0bd3d Fix the TR fix in efd482c30ff80f
My fix had just patched over a contract violation in a different
function. This commit fixes the root of the problem.

original commit: 98e88d615c6a3c38c87e71e7521275d238ea44cb
2014-09-13 11:41:02 -04:00
Asumu Takikawa
35a42d8598 Fix unannotated defines with bad number of values
original commit: efd482c30ff80f73c159087c5196cc058595f68e
2014-09-12 18:21:58 -04:00
Asumu Takikawa
d614c6eea0 Fix TR reference discussion of filters
Thanks to Anthony Carrico

original commit: 290cc2dd7e02a023c2ed4b13827b98d2025a99fe
2014-09-12 16:54:20 -04:00
Vincent St-Amour
0af045fcf3 Fix contract.
original commit: 938dc7d41efca8d27dba973af11f7e3c9d916d5d
2014-09-11 10:42:42 -04:00
Vincent St-Amour
3b4ca8dac1 Fix the fix to type queries.
Should have been included in the original commit.

original commit: 5d6ecd77542c8da3cc81c51f41d1a6f44b7530d6
2014-09-10 14:30:22 -04:00
Vincent St-Amour
2cfd28a6d3 Fix type queries.
original commit: 08178c1ec2746a407f254f5cce9f6ea29a91265e
2014-09-09 16:24:09 -04:00
Vincent St-Amour
bb3f446186 Merge clauses even when no clause is consistent with the expected type.
Closes PR14731.

original commit: 3ae6d2aa46415aac6041c6b7c1d7841f1dc8dd72
2014-09-09 10:48:03 -04:00
Asumu Takikawa
34eeeb62bc Fix opt-lambda property on opt-lambda methods
Related to PR 14726

original commit: 3905334f28a9ffdf2d963c21f159fc1ccf642632
2014-09-08 16:30:27 -04:00
Asumu Takikawa
ccfda8d066 Handle methods that have opt args but no kws
Closes PR 14726

original commit: ab47d1bb2561d2c4ed3c42ce47dd0b10385bb630
2014-09-07 17:26:05 -04:00
Asumu Takikawa
2cab9e9d71 Fix use of tc-literal
original commit: df3c56fae2fc21638d3b249354af4cc77645db13
2014-09-07 15:44:19 -04:00
Neil Toronto
6c7b6717b0 Fixes and additions for some GUI class types
original commit: c245ef4c67acea851c5aabb69de7c64229e85336
2014-09-06 22:44:26 -04:00
Asumu Takikawa
fc02f40dbd Adjust types for stx-map and syntax->list
These types need to be adjusted to match the types that
are now produced for syntax datums due to the previous
commit.

original commit: 99c8da4d92259251c6fbdac38969c16dec80ef62
2014-09-06 17:39:24 -04:00
AlexKnauth
b844ae5119 Fix typechecking of (syntax ...) expressions
The type is
  (Syntaxof the-type-of-the-result-of-syntax-e), not
  (Syntaxof the-type-of-the-result-of-syntax->datum)

Closes PR 14561

original commit: ada4fb74fa28b0f72ed590785afb9ebe08dded45
2014-09-06 17:39:24 -04:00
Vincent St-Amour
2c9aca6fc0 Remove out of date OC docs and replace with pointer to the OC package.
original commit: 9a7663ac734283a51a057e4040008b63ad944c11
2014-08-28 10:42:20 -04:00
Sam Tobin-Hochstadt
224986b222 Treat fully-annotated plain define as an annotated defintion.
Fixes most of PR 14702.

original commit: 2825ba142b03c8ecd6f3231d7685a2d652c6201b
2014-08-26 09:39:55 -04:00
Vincent St-Amour
38c64fcdc6 Allow type annotations after for clauses in the for macros.
Cf. GH issue #751.

original commit: 8de77f596f6337531656aac8e5aed980d4d51267
2014-08-21 16:55:32 -04:00
Kat Lyons
77c61e5eaf Add net/http-client to Typed Racket
original commit: 7ed93e6fba55e4c3360e9a3fae5be9cc871d9aef
2014-08-15 11:19:48 -04:00
Matthew Flatt
d13aae072f add update-implies to package "info.rkt"s
original commit: eb9cbe20bf7b4ebc1eee63e2ca079ae566ff8c05
2014-08-14 16:49:53 +01:00
Asumu Takikawa
6d612c4627 Fix TR type for current-check-around
original commit: cc442ef0ec596e9e6921da688498f233f9e88d36
2014-08-12 17:24:07 -04:00
Sam Tobin-Hochstadt
8b0f2f573a Remove long lines in typecheck-tests.rkt
original commit: c24a864986ad90b399177bd3d0e533e478ba2469
2014-07-30 16:07:20 -07:00
Sam Tobin-Hochstadt
a9844f072f Don't allow nullary functions under Any to be called.
Closes PR 14173.

original commit: 5bda93dfd5feef6dc31816566a156e1514f70151
2014-07-30 16:07:19 -07:00
Sam Tobin-Hochstadt
5db372b4fc Close holes in what values can be thrown.
- Don't allow 3d-syntax in the exprs field of `exn:fail:syntax`
- Don't allow throwing arbitrary higher-order values

original commit: 9eaae1f93e312009d59ff7bf7535c3a2bbfe7be2
2014-07-30 16:07:19 -07:00
Asumu Takikawa
d19e9b1a53 Export editor stream base classes in TR GUI
original commit: c14030860397ad18368a4bbb3b9ce302f2f884e9
2014-07-30 14:46:29 -04:00
Asumu Takikawa
10874691d9 Fix typo in GUI type
original commit: 565fb07064a59cd07671bc858e1347648a083f95
2014-07-29 17:03:56 -04:00
Asumu Takikawa
69038fdfde Fix Values in type annotations
Closes PR 14218

original commit: 8f08418699097817e89c14936f12ba4b708f03ba
2014-07-28 12:10:04 -04:00
Asumu Takikawa
b7bda1e282 Check with-handlers better in TR
Now checks that a predicate and handler in the same clause
are consistent (using the filter on the predicate).

Closes PR 13950
Closes PR 14641

original commit: 41175d74bee9bdadf8ecda552fc097773ab30ce5
2014-07-25 18:31:10 -04:00
Asumu Takikawa
0d27a196a4 Refactor and organize imports
original commit: 44b83a6409dee6b0879415b2095c4daa8a3d4bd1
2014-07-25 16:47:02 -04:00