Commit Graph

69 Commits

Author SHA1 Message Date
Samuel Guerra 2263a63657 Small docs fix. 2021-02-24 14:25:48 -03:00
Samuel Guerra f27d88e4ce Fixed more intradocs links. 2021-02-24 12:53:30 -03:00
Well 1b857d41a9 Remove error for subpattern binding in property parameter. 2021-02-24 00:39:59 -03:00
Samuel Guerra 7644d4e6e9 Added test for non-debuggable input type in properties. Changed property expansion to only highlight the non-debuggable type. 2021-02-23 21:56:46 -03:00
Samuel Guerra bb93d65a45 Fixed more doc links. 2021-02-22 23:27:22 -03:00
Samuel Guerra 735b248691 Fixed documentation tests and a reference. 2021-02-22 21:34:24 -03:00
Samuel Guerra e6d6dde93c Refactored impl_ui_node missing_delegate error to look more like a custom lint. 2021-02-22 18:43:36 -03:00
Samuel Guerra e08f5f4794 More work in widget auto-generated docs. 2021-02-17 19:43:23 -03:00
Samuel Guerra d752cec02a Added build error message testing. Started testing #[property] compile errors. 2021-02-17 01:11:44 -03:00
Samuel Guerra 446c593d22 Fixed name convention. 2021-02-16 18:00:17 -03:00
Well e7ee487afd Added more test cases.
Handled an error: Attempting to set a capture_only property, in a widget_new, that wasn't captured by the widget.
2021-02-16 01:15:45 -03:00
Samuel Guerra e4abc0caab Resolved some lints. 2021-02-15 16:56:06 -03:00
Samuel Guerra 8dc876069f Tested an fixed new property declaration. 2021-02-15 15:34:07 -03:00
Samuel Guerra 5c13b3f8d2 Fixed unset error. 2021-02-14 00:25:58 -03:00
Samuel Guerra 2c5dca1065 Add TODO. 2021-02-12 23:17:17 -03:00
Samuel Guerra 18d5095170 Test reassign captured properties. 2021-02-12 18:15:34 -03:00
Samuel Guerra bde28827b0 Implemented property capture test. 2021-02-12 17:49:48 -03:00
Samuel Guerra a4aecdcfe4 Fixed user_cfg_when. 2021-02-12 15:40:40 -03:00
Samuel Guerra 0c346bed3c Ignore lock poisoning in TestWidgetContext. 2021-02-12 14:13:28 -03:00
Well dc3f9448b7 Added test for cfg in user when blocks. 2021-02-12 01:01:22 -03:00
Samuel Guerra f672e923b6 Added cfg and multiple when condition tests. Fixed multi when, fixed attributes in when blocks. 2021-02-11 18:25:35 -03:00
Samuel Guerra 3c84522a44 Fixed widget user when. 2021-02-11 00:16:48 -03:00
Well 4f37e70d5d Fixed widget whens, started testing user whens (whens declared in widget_new). 2021-02-10 00:43:45 -03:00
Samuel Guerra 5d59bab60f Added test_update. 2021-02-09 20:31:39 -03:00
Samuel Guerra 33bbcb4a4f Reimplemented `when_var!` as a proc-macro to resolve the attribute ambiguity. 2021-02-09 17:02:38 -03:00
Samuel Guerra 282100825b Fixed more when bugs. 2021-02-09 01:20:10 -03:00
Samuel Guerra 1b2e29b100 More when bug fixes. 2021-02-08 22:21:22 -03:00
Samuel Guerra 247e88e4af Fixed widget when bugs. 2021-02-08 19:56:56 -03:00
Well 18214eedde Fixed bugs and added more tests related to the evaluation order of properties in widget_new (that is, when using widgets).
Fixed some release mode code errors that slipped by due to rust analizer compiling on debug mode.
2021-02-06 01:12:28 -03:00
Samuel Guerra 301c2b2f3d Fixed tests. 2021-02-05 21:09:51 -03:00
Samuel Guerra 987df03b94 Added value order testing. 2021-02-05 18:31:39 -03:00
Samuel Guerra 4e21f8bddf Fixed unset panic. 2021-02-05 15:27:51 -03:00
Samuel Guerra 051989cf2e Added `required` tests, fixed `required` bugs. 2021-02-05 01:03:21 -03:00
Well f3fea47bc3 Fixed bugs and added more widget tests. 2021-02-04 01:01:46 -03:00
Samuel Guerra 929d6bfc9b Added inherited property resetting test and fixed bug. 2021-02-03 17:44:34 -03:00
Samuel Guerra 162251af3d Fixed TestWidgetContext so it works in multiple tests at the same time. 2021-02-03 16:02:21 -03:00
Samuel Guerra a4748f67fa Fixed bug and warning. 2021-02-02 16:11:07 -03:00
Samuel Guerra 106b686956 Implemented more tests and test utilities. Fixed some widget bugs. 2021-02-02 01:15:01 -03:00
Samuel Guerra cf2cfc1db8 Fixed property debug for properties inputs that are not IntoVar. Implemented widget_tests trace helper. 2021-02-01 20:27:34 -03:00
Well ddcec75613 Added additional test for the #[property(..)] generator for a currently failing example. 2021-01-30 00:58:23 -03:00
Well 60bfb35d58 Finished implementing the property-related part of the new widget proc macros (currently widget2 + widget_mixin2). 2021-01-27 01:07:22 -03:00
Samuel Guerra 2b4d5f7ea2 Implemented support for the `is_state` property default value directly in the properties macro. From the perspective of widgets some properties can have a default value. 2021-01-26 16:40:41 -03:00
Well 8c36eede69 Fixed bugs. 2021-01-24 00:56:36 -03:00
Samuel Guerra 33c843fb6c Implemented `#[cfg(..)]` support for `when_var` conditions. 2021-01-22 18:39:55 -03:00
Well 29a792fe5d New widget_mixin (widget_mixin2) proc_macro now requires the macro_rules `$crate` path to the mod of the new mixin, previously only the new widget (widget) proc_macro required it.
Continued implementation work on the new widget proc_macro.
2021-01-21 00:44:57 -03:00
Samuel Guerra b71f56aaf9 Moved #[property] tests to core crate. Implemented implicit inherit trait. 2021-01-20 15:49:35 -03:00
Samuel Guerra 9509de2025 More widget stage0 code. 2021-01-18 20:38:51 -03:00
Samuel Guerra ad828a0ba4 Changed expr_var interpolation to #{..}. Implemented support for interpolation syntax in when expressions. 2021-01-17 18:21:57 -03:00
Samuel Guerra 66a6383192 Fixed RcWhenVar new detection. 2021-01-17 12:43:23 -03:00
Samuel Guerra 8882b21d9c Renamed var_expr to expr_var, fmt and started implementing when condition expression transform. 2021-01-17 01:18:34 -03:00