Commit Graph

6522 Commits

Author SHA1 Message Date
Robin Heggelund Hansen
8c0825115e
Merge pull request #205 from gren-lang/source-maps
Source maps
2023-06-13 06:09:45 +02:00
Robin Heggelund Hansen
340ed078db
Merge pull request #206 from gren-lang/bump-ghc
Bump GHC to 9.4.5
2023-06-13 06:09:36 +02:00
Robin Heggelund Hansen
cb282a6efe
Bump GHC to 9.4.5 2023-06-13 00:32:33 +02:00
Robin Heggelund Hansen
8849d011de
Be consistent on ordering of positions and moduleNames. 2023-06-13 00:20:55 +02:00
Robin Heggelund Hansen
f90d90924b
Track vars and function names. 2023-06-13 00:12:41 +02:00
Robin Heggelund Hansen
4aea94db39
Track more refs. 2023-06-12 23:43:44 +02:00
Robin Heggelund Hansen
8c04d28357
Fix bug where not all function calls were tracked in source maps. 2023-06-12 23:31:44 +02:00
Robin Heggelund Hansen
f597a522b9
Track function arguments. 2023-06-12 23:10:49 +02:00
Robin Heggelund Hansen
385425ca9f
Fix problem where core functions weren't added to the source map. 2023-06-07 19:58:21 +02:00
Robin Heggelund Hansen
77bbfdb907
Add sourcemaps for records. 2023-06-07 19:17:35 +02:00
Robin Heggelund Hansen
d0a394f289
Add sourcemaps for arrays. 2023-06-07 13:52:49 +02:00
Robin Heggelund Hansen
09cb1b7d00
Add sourcemaps for literals. 2023-06-07 13:28:27 +02:00
Robin Heggelund Hansen
d47987a920
Add sourcemaps for record access patterns. 2023-06-07 12:53:47 +02:00
Robin Heggelund Hansen
8b5832b096
Implement the compiler flag to enable sourcemap generation. 2023-06-05 22:47:02 +02:00
Robin Heggelund Hansen
410e7c68c2
Fix problem with nested modules. 2023-06-05 22:24:07 +02:00
Robin Heggelund Hansen
a10b7fe84b
Add all sources to sourcemap, not just the project's own sources. 2023-06-04 12:48:50 +02:00
Robin Heggelund Hansen
8dbf3302fc
Remove trailing white space. 2023-05-26 22:21:20 +02:00
Robin Heggelund Hansen
b4a663282f
All source positions are 0-based when in source maps. 2023-05-26 22:20:45 +02:00
Robin Heggelund Hansen
598bc9002d
Encode mappings section according to spec. 2023-05-26 22:06:39 +02:00
Robin Heggelund Hansen
83b493646d
Write mapping numbers as deltas from previous segment. 2023-05-26 15:19:03 +02:00
Robin Heggelund Hansen
9c80b25e5c
Output mappings in correct order. 2023-05-26 09:13:01 +02:00
Robin Heggelund Hansen
1ac6746a6f
Fix issue with large negative numbers. 2023-05-24 23:18:05 +02:00
Robin Heggelund Hansen
24c5f86381
Cosmetic changes. 2023-05-24 23:09:28 +02:00
Robin Heggelund Hansen
5f9c114b4b
First attempt at implementing VLQ encoding, fails for large negative numbers when Int > 32 bits. 2023-05-24 23:08:52 +02:00
Robin Heggelund Hansen
56dc275d6f
Setup test suite for encoding VLQs 2023-05-24 15:31:04 +02:00
Robin Heggelund Hansen
f6853ededa
Insert project sources into source map. 2023-05-23 18:42:18 +02:00
Robin Heggelund Hansen
75ddba194d
Fix compiler warning. 2023-05-22 22:36:28 +02:00
Robin Heggelund Hansen
9cf0e214b5
Add more references to source maps, and format names to include source module, when available. 2023-05-22 22:35:02 +02:00
Robin Heggelund Hansen
3c4439511d
Add function calls to source maps. 2023-05-22 22:20:11 +02:00
Robin Heggelund Hansen
b1518c89fc
Sort mappings by line. 2023-05-22 21:15:27 +02:00
Robin Heggelund Hansen
3a71b9beab
Set correct source module of tracked refs. 2023-05-15 22:58:59 +02:00
Robin Heggelund Hansen
831995bdd4
Fix line numbers being off by 2-3 lines. 2023-05-15 22:24:55 +02:00
Robin Heggelund Hansen
42d313426a
Fix bad line counts when kernel code is involved. 2023-05-14 11:27:44 +02:00
Robin Heggelund Hansen
a0273c8e92
Fix compilation of kernel code. 2023-05-14 09:34:48 +02:00
Robin Heggelund Hansen
d7c770ab91
Fill sources and names fields of source map. 2023-05-13 19:01:04 +02:00
Robin Heggelund Hansen
67302dc0d5
Track global variables when generating sourcemaps. 2023-05-13 14:17:46 +02:00
Robin Heggelund Hansen
c824975eb1
Correctly generate the source map object (without contents) 2023-05-12 23:30:00 +02:00
Robin Heggelund Hansen
ceddabc562
Fix code generation bugs from re-write. 2023-05-02 22:25:07 +02:00
Robin Heggelund Hansen
edf50aba98
Include inlined source maps when compiling projects. The actual source map generation is not done. 2023-05-02 22:12:47 +02:00
Robin Heggelund Hansen
6076e115e0
Remove unused data type. 2023-05-02 21:10:46 +02:00
Robin Heggelund Hansen
3773f9dd2c
Finish re-write of Generate/JavaScript Builder 2023-04-28 11:04:04 +02:00
Robin Heggelund Hansen
aa0cda3358
Finish re-write of JavaScript/Builder.hs 2023-04-19 22:06:44 +02:00
Robin Heggelund Hansen
e665e52136
Merge pull request #204 from avh4/upgrade-prettyprint
Upgrade prettyprint
2023-04-16 12:58:52 +02:00
Aaron VonderHaar
b0ce27ac42 Replace custom helpers with functions added in prettyprint-avh4-0.1.1.0 2023-04-14 23:35:05 -07:00
Aaron VonderHaar
5b86af4d56 Upgrade prettyprint-avh4 2023-04-14 23:23:26 -07:00
Aaron VonderHaar
a3d80503e5 Show call site locations in test failure messages 2023-04-14 23:23:21 -07:00
Robin Heggelund Hansen
00f50eb3e3
Merge pull request #202 from avh4/extract-avh4-prettyprint
Use published prettyprint-avh4
2023-03-30 08:08:53 +02:00
Aaron VonderHaar
45d6c48636 Use published prettyprint-avh4 2023-03-29 19:01:50 -07:00
Robin Heggelund Hansen
c52ddf78ba
Finish re-write of fromExpr 2023-03-28 21:12:54 +02:00
Robin Heggelund Hansen
dcf5369502
Began re-write of JavaScript/Builder.hs to keep track of positions in generated code. 2023-03-27 21:38:01 +02:00