James Westman
9b9fab832b
Add tests, remove unused code, fix bugs
...
- Added tests for more error messages
- Test the "go to reference" feature at every character index of every
test case
- Delete unused code and imports
- Fix some bugs I found along the way
2024-12-22 18:00:39 -06:00
James Westman
e19975e1f8
lsp: Add reference documentation on hover
...
For most constructs and keywords, show the relevant section of the
reference documentation on hover.
2024-10-20 21:10:14 -05:00
James Westman
6a078ee075
Add warning for unused imports
2024-04-06 14:33:20 -05:00
James Westman
6522421251
Fix formatting
2024-02-01 19:38:19 -06:00
James Westman
bfa2f56e1f
Sort imports
2023-07-25 20:07:37 -05:00
James Westman
3bcc9f4cbd
Use the new Range class in more places
2023-07-25 20:01:41 -05:00
James Westman
62f74178f7
lsp: Implement "go to definition"
2023-07-25 18:40:05 -05:00
James Westman
e087aeb44f
lsp: Add document outline
2023-07-25 17:59:52 -05:00
gregorni
3730e2e726
Add isort to CI and run on files
2023-07-09 14:26:37 +00:00
James Westman
6ac798ea6f
More errors for duplicates
2023-05-17 10:41:45 -05:00
James Westman
71f52d350a
Refactor child types
...
Didn't change the actual syntax, but changed the rules around to be less
confusing.
2023-04-29 21:52:20 -05:00
James Westman
ec844b10ca
Add ScopeCtx instead of root.objects_by_id
...
This allows us to introduce new scopes, such as in
GtkBuilderListItemFactory templates.
2023-04-28 20:49:22 -05:00
James Westman
ff5fff7f4b
Fix crash
2023-04-13 17:43:44 -05:00
James Westman
402677f687
performance: Cache some properties
2023-03-20 13:34:17 -05:00
James Westman
1df46b5a06
Change the way values work
...
Change the parsing for values to make them more reusable, in particular
for when I implement extensions.
2023-01-12 15:49:19 -06:00
James Westman
b6ee649458
Simplify error & warning handling
2023-01-12 15:49:19 -06:00
James Westman
8fee46ec68
Format using black
2022-12-19 11:52:59 -06:00
James Westman
a24f16109f
Separate output into its own module
2022-10-15 19:40:47 -05:00
James Westman
4fefa0bd73
Add lookup expressions
2022-06-24 23:16:15 -05:00
James Westman
d987b15374
Add references to error messages
...
That way, errors can reference other parts of the code, like duplicate
properties.
2022-06-08 23:08:15 -05:00
James Westman
824476bda1
Add errors for duplicate properties and blocks
2022-06-08 23:08:15 -05:00
James Westman
42aa91d4d9
Detect when gobject-introspection is missing
...
Instead of a compiler bug error, show a proper error message that asks
whether gobject-introspection is installed.
Fixes #58 .
2022-05-27 16:21:18 +00:00
James Westman
f197e68589
Use cached_property instead of a custom decorator
2022-03-28 14:38:05 -05:00
James Westman
ee5f32622f
reorganization: Finish moving parsing and AST
2022-01-26 22:37:51 -06:00
James Westman
5b76a3b8dd
Clean up some unused code
2021-12-16 22:08:04 -06:00
James Westman
544d152fb6
Rename to blueprint-compiler
...
This isn't an official GTK project so better to avoid using "GTK" in the
name.
2021-12-01 15:35:58 -06:00