Commit graph

280 commits

Author SHA1 Message Date
Richard Feldman
5227b5ff43
c l i p p y 2022-12-27 00:31:54 -05:00
Richard Feldman
b749ac28c9
Use module-level comments for top-level docs 2022-12-26 23:55:54 -05:00
Richard Feldman
3171a15ed0
Parse header_docs 2022-12-26 23:15:48 -05:00
Richard Feldman
74e16c5293
Clarify a comment 2022-12-26 23:15:48 -05:00
Richard Feldman
8c40d72a1f
Don't add exposed modules to imported_modules 2022-12-26 04:35:23 -05:00
Richard Feldman
a663634e30
Add a comment 2022-12-25 17:15:53 -05:00
Richard Feldman
e5c5ae3e3f
Make a debug_assert! more precise 2022-12-25 17:13:42 -05:00
Richard Feldman
73fa34ba31
Only add extra imported modules when it's the root 2022-12-24 22:50:47 -05:00
Richard Feldman
1e0f5c2b28
Fix missing shorthands when importing packages 2022-12-24 22:49:40 -05:00
Richard Feldman
c925686443
Add some debug_assert! checks 2022-12-24 22:40:44 -05:00
Richard Feldman
5c80657bb2
Update some comments and docs 2022-12-24 22:32:16 -05:00
Richard Feldman
52bbe0062f
Drop an unnecessary scope block 2022-12-24 22:32:16 -05:00
Richard Feldman
34417f5692
clippy 2022-12-24 22:32:16 -05:00
Richard Feldman
c0dd801db6
Use VecMap over MutMap to store module docs 2022-12-24 22:32:15 -05:00
Richard Feldman
361d930f46
Load exposes entries in addition to imports 2022-12-24 22:32:15 -05:00
Richard Feldman
d8d517d6f9
Support generating docs for packages too 2022-12-24 22:32:14 -05:00
Richard Feldman
15d4c2ad68
Don't render undexposed types in docs 2022-12-24 22:32:13 -05:00
Richard Feldman
15590fb31b
Generate docs basde on package root .roc file 2022-12-24 22:32:13 -05:00
Richard Feldman
e549456668
Store exposed module IDs in file loading state 2022-12-24 22:32:13 -05:00
Richard Feldman
ab45d6c632
Fix docs generation of types 2022-12-24 22:32:12 -05:00
Richard Feldman
09764be7c3
Go back to PackageName 2022-12-18 10:11:19 -05:00
Richard Feldman
ecf7bea259
Temporarily disable an assertion.
I'm going to go back and revise all this LoadingProblem logic
later, but for now this unblocks things.
2022-12-18 06:19:33 -05:00
Richard Feldman
10c8523888
Handle FileProblem explicitly 2022-12-17 03:57:11 -05:00
Richard Feldman
ed0b07a62f
clippy 2022-12-17 03:35:39 -05:00
Richard Feldman
3e448fd2b4
Merge remote-tracking branch 'origin/main' into packages 2022-12-17 03:32:52 -05:00
Richard Feldman
b21a3a4fdb
Handle loading errors more consistently 2022-12-17 03:31:10 -05:00
Richard Feldman
7b85775ee6
Drop a dbg! 2022-12-16 12:30:38 -05:00
Richard Feldman
27fc823795
Drop a redundant Instant::now() 2022-12-16 12:27:22 -05:00
Richard Feldman
94818fc6cc
Create header messages for packages 2022-12-15 17:45:32 -05:00
Ayaz Hafiz
66c5e1292e
Thread expectations through in phase result structs
And provide expectation subs when expectations should be compiled. This
will be useful for getting the specialized type of an expect lookup when
it's available.
2022-12-14 16:55:14 -06:00
Richard Feldman
3e5b62db1a
Move exposes into HeaderType 2022-12-13 06:59:25 -05:00
Richard Feldman
7512a964f7
Add HeaderType::Package 2022-12-13 06:44:02 -05:00
Richard Feldman
51c919993a
Load the app msg first 2022-12-13 06:37:23 -05:00
Richard Feldman
ec9cf4efe2
Merge branch 'to' into packages 2022-12-12 01:15:34 -05:00
Richard Feldman
8a9e152a5b
Rename PackageName to PackagePath 2022-12-12 00:41:55 -05:00
Richard Feldman
16ce22d455
Use app module's to to determine platform 2022-12-12 00:17:43 -05:00
Richard Feldman
483629216f
Use app module's to to determine platform 2022-12-11 22:22:26 -05:00
Richard Feldman
7bf8eb7711
Remove Default::default (makes infinite recursion) 2022-12-11 06:17:32 -05:00
Richard Feldman
3227f95d45
Merge branch 'refactor-platform-info' into packages 2022-12-11 06:17:29 -05:00
Richard Feldman
141010e6c7
Actually set symbols_from_requires 2022-12-11 03:29:06 -05:00
Richard Feldman
cbc095aa1e
Drop inaccurate comment (copy/paste error) 2022-12-11 03:12:45 -05:00
Richard Feldman
68e6bfcd2a
clippy 2022-12-10 01:49:18 -05:00
Richard Feldman
222e0193a3
Don't give packages names 2022-12-10 01:43:53 -05:00
Richard Feldman
bff3204727
Include platform provides in exposed 2022-12-09 16:56:00 -05:00
Richard Feldman
ccb6a98f8a
Address unused arg warning 2022-12-09 14:19:26 -05:00
Richard Feldman
29182d8292
Move platform_main_type into provides 2022-12-09 14:19:07 -05:00
Richard Feldman
97332e4af1
Move ModuleNameEnum into HeaderType 2022-12-08 15:31:43 -05:00
Richard Feldman
e2137cc310
Use a pattern match over an inline let 2022-12-08 15:31:42 -05:00
Richard Feldman
8b463686bc
Propagate multiple entrypoints to alias analysis 2022-12-08 15:31:42 -05:00
Richard Feldman
236cebacc1
Refactor out PlatformHeaderInfo 2022-12-08 15:31:42 -05:00