Olivier Goffart
c990660500
Run the import pass even when building the object tree fails.
...
This improve the code coverage of syntax_text, so some adjustment had to
be made.
This may add more error in the main file, but this make it the same
behavior as for imported files and lsp who were already running these
passes all the time
2023-07-14 14:13:48 +02:00
Aurindam Jana
5a4a7fee63
Update royalty free license to 1.1 ( #2994 )
2023-07-10 10:12:11 +02:00
Olivier Goffart
11dea135f7
Domain: slint-ui.com -> slint.dev
2023-06-16 10:55:08 +02:00
Aurindam Jana
039e54a5de
Add royalty free license to files except examples and docs ( #2888 )
2023-06-15 11:20:50 +02:00
Tobias Hunger
bbdd6aeab7
compiler: Ignore leading whitespace when parsing
...
... and update all out test cases accordingly.
2023-04-26 17:22:13 +02:00
Olivier Goffart
4f00f268a5
Make the old syntax a warning
2023-02-14 12:38:39 +01:00
Simon Hausmann
9180704d70
Warn about components that are neither used nor exported
2023-01-26 15:52:40 +01:00
Simon Hausmann
24dcef5fed
First stage of cleaning up the export handling of the slint root component ( #2095 )
...
We implicitly export the last component of a .slint file to the generator.
Issue a warning when that happens and suggest to export it explicitly.
2023-01-23 15:19:49 +01:00
Olivier Goffart
fdf5d4c0dd
Fix in/out/private property on global
...
This is technicly a breking change. But this is also a bug and it was only
allowed since 0.3.2, so it is probably fine.
The problem is that any property access to a global was considered as being
local.
Now, change that so that property access to a global object is no longer
local, and other components can't access private property anymore
2022-12-06 10:29:44 +01:00
Olivier Goffart
6ab6ae63d4
input output property: fix semantic with two ways bindings
2022-11-11 13:02:53 +01:00
Olivier Goffart
dd4c701307
Rename input
and output
property to in
, out
and in-out
2022-11-08 15:25:20 +01:00
Olivier Goffart
2ceafc6392
New syntax: Make it an error to set the value of a builtin output property
...
With the old syntax, this becomes a warning
2022-11-01 12:51:45 +01:00
Olivier Goffart
5613fc4416
Rename inout
property to input output
...
`inout` and `input` are too similar, so use a longer form for `inout`
CC https://github.com/slint-ui/slint/issues/191#issuecomment-1296176978
2022-10-31 14:57:52 +01:00
Olivier Goffart
84ae4d2928
New syntax: Only allow children if the component has @children
...
For compatibility reason, this is also allowed when inheriting
2022-10-28 17:45:37 +02:00
Olivier Goffart
f055afd2de
New syntax: allow to create component without base
2022-10-26 18:09:57 +02:00
Olivier Goffart
0ba8f58076
New syntax: New lookup rules for unqualified identifier
...
Instead of looking up any property in `self` and `root`, only resolve
the properties in scope declared in the current component.
2022-10-20 16:40:29 +02:00