Commit Graph

1543 Commits

Author SHA1 Message Date
Samuel Guerra 5a9dde728c Tested and improved validation of #[property] attribute arguments. 2021-02-24 15:34:34 -03:00
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
Samuel Guerra 42c0f5dade Cleanup. 2021-02-24 12:18:47 -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 664d057e5c Added test for property function return type not implementing UiNode. 2021-02-23 19:27:58 -03:00
Samuel Guerra 25461744c2 Added test for property input patterns that don't define a field name. 2021-02-23 17:49:22 -03:00
Samuel Guerra 113675a4e9 Added tests for type validation of the `child` arg0 in property functions. 2021-02-23 17:33:51 -03:00
Samuel Guerra b7fa05407b Started testing input patterns in property function. 2021-02-23 01:06:21 -03:00
Samuel Guerra d40907b9c3 Improved error for invalid capture_only return type. 2021-02-23 00:55:07 -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 2d2d61d777 More `#[impl_ui_node(..]` code gen tests. 2021-02-21 22:48:08 -03:00
Samuel Guerra cccac26198 Started testing `#[impl_ui_node(..)]` code gen. 2021-02-21 18:52:57 -03:00
Samuel Guerra a58adfc57e Improved widget property info page. 2021-02-21 14:10:56 -03:00
Well da5cc8de1e Used serial_test to make it possible to run all tests in build_tests with one command.
Added more fail test cases for macro generated compile errors.
Fixed errors in the fallback code generated by the macro in those test cases.
2021-02-20 01:16:35 -03:00
Samuel Guerra e3ca693c32 Implemented property inheritance documentation. 2021-02-19 18:37:40 -03:00
Samuel Guerra 57daf5b8ae Implemented default help for properties without help. 2021-02-19 00:59:37 -03:00
Samuel Guerra ae9da8e873 Implemented widget whens documentation. 2021-02-18 21:00:41 -03:00
Samuel Guerra 6228bc99f6 More widget docs work. 2021-02-18 18:44:43 -03:00
Samuel Guerra 4f0c51bc27 Added script that mitigates the incorrect property function tooltips. 2021-02-17 23:48:19 -03:00
Samuel Guerra c83d9926f6 Add script to fix widget property re-export page. 2021-02-17 22:18:12 -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 db03aa70e1 Added widget property docs TODO. 2021-02-16 23:09:02 -03:00
Samuel Guerra 446c593d22 Fixed name convention. 2021-02-16 18:00:17 -03:00
Samuel Guerra 0ffe633af2 Started working on widget docs. 2021-02-16 16:49:40 -03:00
Samuel Guerra 1db5ef722c Merge branch 'new-widget-syntax' of https://gitlab.com/sam.rodr.g/zero-ui into new-widget-syntax 2021-02-16 14:03:17 -03:00
Samuel Guerra 4111d91b4a Implemented cfg for widget properties first use declaration in when. 2021-02-16 14:03:11 -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 6ec04140bc Added TODO. 2021-02-15 22:09:18 -03:00
Samuel Guerra e4abc0caab Resolved some lints. 2021-02-15 16:56:06 -03:00
Samuel Guerra 97ccec40ce fmt 2021-02-15 16:41:21 -03:00
Samuel Guerra 7030df4773 Fixed auto-generated docs for capture-only properties. 2021-02-15 16:39:41 -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 fde0e47518 Fixed property code_gen in release. 2021-02-11 01:08:29 -03:00
Samuel Guerra 3c84522a44 Fixed widget user when. 2021-02-11 00:16:48 -03:00
Samuel Guerra 8bdaa29b5a Fixed user when compilation. 2021-02-10 19:24:54 -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