Commit Graph

3160 Commits

Author SHA1 Message Date
Eric Dobson
ed24ba5c3e Add more syntax classes for let-clauses.
original commit: 6d84fe3cf24d327aa0421724356234774d2cde62
2013-11-20 23:32:23 -08:00
Eric Dobson
a2327c05f3 Add benchmarks to TR test dependencies.
original commit: 3e37e940002a581b6295014ccf5a5c99ad03fc50
2013-11-20 23:13:39 -08:00
Eric Dobson
a9fc827be7 Correctly typecheck all subelements of vector literals.
Closes PR 14184.

original commit: cbe1b532795819d45c9bc8ccbaf1507c21b01649
2013-11-20 21:25:28 -08:00
Asumu Takikawa
70995fa7b0 Fix provide: when it's after the definition
Closes PR 11172

Please merge into 6.0

original commit: 7e1b3c306d57b5f7d56a16c468518a790c7952ac
2013-11-20 18:42:28 -05:00
Asumu Takikawa
f785630a76 Simplify fix for PR 14030
Please merge into 6.0

original commit: 6a787c963f22d563a67b731914ac204e2e051ebb
2013-11-20 18:38:39 -05:00
Asumu Takikawa
82fa4808d6 Fix make-predicate at the top-level
This solves the immediate problem, but more generally the
handling of ignored syntax at the top-level seems very fishy.
There is a complicated protocol involving the top-level
type-checker returning #<void> for cases with no obvious
return type, but it's unclear if it actually works. That
code in tc-toplevel.rkt should be revamped in the future.

Closes PR 14030

Please merge into 6.0

original commit: f292a9c0f277bc07d0932ed67f893ca1cb022a43
2013-11-20 18:07:51 -05:00
Asumu Takikawa
0e02b13d28 Add types for remaining in-foo functions
Also fixed `in-directory` type

Please merge into 6.0

original commit: 249427afb41907fc974993f7ce310e9014d4938e
2013-11-20 16:12:29 -05:00
Vincent St-Amour
386364df34 Fix source syntax recovery.
original commit: 632ce4e30a06c5a2bf81310f70a646beb993b015
2013-11-19 18:43:26 -05:00
Vincent St-Amour
dfc7a0b8d9 Fix type printing test.
original commit: fab0d0f955e5bf17e21816146f1af6f9caeaf3b1
2013-11-19 18:43:26 -05:00
Vincent St-Amour
95c784c26a Only recommend expanding union types.
Closes PR14166.

original commit: 49cd879bf89dc924520dfa2a86de3a7513490a2a
2013-11-19 14:28:27 -05:00
Sam Tobin-Hochstadt
7bea9d9aa2 Allow clients of recover-source-syntax to ask for early traversal.
original commit: d1abf632b117ad0c145342055ff80022c22c45ac
2013-11-19 12:15:19 -05:00
Sam Tobin-Hochstadt
2aa592eb2e Implement statistical errortrace-based profiling.
Add a mode to the profiler to use continuation marks inserted
by the errortrace annotator instead of the runtime.

Split `syntax/source-syntax` out from Typed Racket as a separate package,
and use it to give better names for errortrace stack frames.
Use caching to speed it up substantially when called repeatedly (as
errortrace does).

Also, document (internally) the format used by errortrace marks.

original commit: 1e7eb34ba170b6aad77ee67c0f4b802950ff1a4b
2013-11-19 12:15:17 -05:00
Asumu Takikawa
9b08a80030 Generate channel contracts in TR
original commit: f2ddc66333512cfc7e24f2cb91de43464f5a59c1
2013-11-19 12:02:10 -05:00
Vincent St-Amour
a6f0db1fdb Add quoting to error message.
Closes PR14160.

original commit: eb67abb2ef18a2b91f6ee3544971f38e33700664
2013-11-18 15:32:12 -05:00
Vincent St-Amour
e861cec692 Fix line breaks in the docs.
original commit: 63572cc0f7b502261bb47ac0a5dbe60b406ed214
2013-11-18 15:09:33 -05:00
Vincent St-Amour
78f8879e1a Document type generalization.
original commit: eb7c7b0d0be00ba529ee1c7f66a6d5568dd081a8
2013-11-18 15:09:33 -05:00
Vincent St-Amour
d51957fcd3 Improve message when simplifying type display at the REPL.
Closes PR14159.

original commit: def31658f193d9db8409a5b8433804d398dcdd98
2013-11-18 15:09:33 -05:00
Eric Dobson
d1e1f0240b Add newline in query-type/result.
original commit: 9f68c959eef5915269f29abe450d60154a3d4978
2013-11-17 20:11:09 -08:00
Eric Dobson
f0beca5e3a Add approprite init calls.
Closes PR 13102.

original commit: e4c07f14abecc621e62ea1c15dea42b64070df0b
2013-11-17 20:11:09 -08:00
Eric Dobson
cfe772df73 Use actual original syntax.
Don't know how to test that this is better since I don't even know if it
is used.

original commit: 02a5616ccd63ca922109d1d744c108e14826dc34
2013-11-17 20:11:09 -08:00
Eric Dobson
eeb7e92fe7 Make top interaction handle module correctly.
Closes PR 14163.

original commit: f8eae8c00d2a370a88ef8514a90d4e0692c39627
2013-11-17 20:11:09 -08:00
Eric Dobson
c019c9dc4b Move code for top-interaction commands to their own file.
Also adds some more test cases.

original commit: 7e0553e037bcff0a549fd3bdc86b09f00f8796f6
2013-11-17 20:11:09 -08:00
Eric Dobson
16a4734803 First hacky solution to fixing toplevel interactions, and tests.
Closes PR 14161.

original commit: 5d7710733de7284b9c38a6dd0f77ddb48f6d844c
2013-11-17 20:11:08 -08:00
Eric Dobson
3dad74141a Simplify type of hash-has-key?.
original commit: c0230fb6f4732445fedeed78953d54e20090fa25
2013-11-17 10:53:29 -08:00
Eric Dobson
fbc20f5c70 Correct type of hash-has-key?.
Closes PR 14157.

original commit: ff958867d5ee70876de287bcbd0db1fc19f9c4c0
2013-11-17 10:34:18 -08:00
Eric Dobson
ef62cdb190 Update excluded docs for TR.
original commit: 828320a768e4e8e734246a0847b89a49bc8ac4aa
2013-11-16 13:42:53 -08:00
Asumu Takikawa
b25cdad3e9 Make thread cell top type consistent with docs
original commit: a440a46cce461783148ff2d84d75d2d0cbf5c23f
2013-11-14 22:42:29 -05:00
Vincent St-Amour
f7f46e91cb Fix test.
original commit: 936ad898ef3ecb4d4b3236098349bb3f662958ac
2013-11-14 16:36:43 -05:00
Vincent St-Amour
95991f9b85 Log non-optimized fixnum-specific ops as hidden costs.
original commit: a87dcc252eea359afd4fbcf8f80a62413a099d61
2013-11-14 14:48:33 -05:00
Vincent St-Amour
608e0338f9 Add types and optimizations for flrandom and unsafe-flrandom.
original commit: 7616e26f48b01492715cf4f905b222ae025754d1
2013-11-14 14:48:33 -05:00
Vincent St-Amour
4a0b4f01ca Log hidden prng parameter dereferences.
original commit: 04eeeb13f1b0423a4f341089a3552cc19e170c61
2013-11-14 14:48:33 -05:00
Eric Dobson
ecd4c40bf4 Change name of failed-typecheck.
original commit: 7d2b085baadecbf512a584ea44c7f40db0f903da
2013-11-13 08:20:54 -08:00
Eric Dobson
36dd128bd1 Move internal into internal-forms.
original commit: dd321008c4c15a8545b2086ba1f6978d0ecef4e9
2013-11-13 08:20:54 -08:00
Eric Dobson
8bc299f6c5 Move syntax class code into internal forms.
original commit: 0434974426d2096a83684afcda4449b46cc9833e
2013-11-13 08:20:54 -08:00
Eric Dobson
4fa4622f37 Switch tc-structs over to syntax classes.
original commit: 575419bc8ba93bd1a1f3fb620b28d52b7018b528
2013-11-13 08:20:54 -08:00
Eric Dobson
22e6fc3437 Convert tc-let unit to new syntax classes.
original commit: 7f268e67de8a8526e6f05f392c499551aa7ba752
2013-11-13 08:20:54 -08:00
Eric Dobson
09c8cd999d Make tc-expr unit use the new syntax classes.
original commit: 2a99e418d585ff167ba8ae23746df763cac912f7
2013-11-13 08:20:53 -08:00
Eric Dobson
fc673a5288 Make toplevel checks use internal syntax class.
original commit: d3ecec9c8bc19f0a04c8d0fcd0b00e9bd27b5b30
2013-11-13 08:20:53 -08:00
Eric Dobson
35c4abd049 Made tabs into spaces.
original commit: 6e00ae83d38ac85f7f9843f8fe0ad01f16d5bc85
2013-11-13 08:20:53 -08:00
Eric Dobson
21dd96b28a Replace kerncase with syntax-parse.
original commit: 28321ca4edb1e183b5f900598551226267d187d3
2013-11-13 08:20:53 -08:00
Sam Tobin-Hochstadt
03506d0eb4 Improve type of random on fixnums.
original commit: ff577496be4198833a9c15167a603c4264f1c02b
2013-11-12 10:38:41 -05:00
Asumu Takikawa
bb98b99362 Disable occurrence typing for top-level variables
Closes PR 14121

original commit: 3e2911d30f4efe4901d9626e83126d7bafa55922
2013-11-11 23:23:08 -05:00
Asumu Takikawa
444b2c16f2 Add test for PR 14144
Forgot to include this in commit
7c4eb845a02c77dee6a9f8a650a9261ab1a7b25b

original commit: 0e3471b9529b7bce7adbb3a4641ec9c9fc330f2e
2013-11-11 23:22:42 -05:00
Asumu Takikawa
be035ba8d5 Always treat top-level redefinitions as annotated
Closes PR 14144

original commit: 7c4eb845a02c77dee6a9f8a650a9261ab1a7b25b
2013-11-11 19:05:42 -05:00
Vincent St-Amour
04addef70f Tweak complex unboxing missed optimization message.
original commit: 631a1748743fa806e210939068723c7c92571b4b
2013-11-11 15:03:35 -05:00
Eric Dobson
7c8ac2188e Remove unused code.
original commit: f8a2c2d28edaeb77aa180e775e6df9beb01d490d
2013-11-11 09:44:24 -08:00
Eric Dobson
0b6ce3b58b Fix tc/pass2.
Closes PR14148.

original commit: d6935f536516196e78a9301a2b33b02204feb9be
2013-11-11 09:37:00 -08:00
Eric Dobson
2dfc8156fb Fix line numbers on logs.
original commit: ad19bc5e62999348dd5759fdb4409144d9fa0435
2013-11-11 08:24:08 -08:00
Eric Dobson
a4a6c44f5a Add missing logs.
original commit: d629614620655ccf0a030d2a687e9bf79bcf2209
2013-11-11 08:19:58 -08:00
Eric Dobson
c0bcae41f9 Make wrong arity messages work again.
Closes PR14138.

original commit: 520c33906ef1a79efadfe5495725952e435c209a
2013-11-11 08:15:06 -08:00