Register actions globally before main

This commit is contained in:
Nathan Sobo 2023-11-07 20:58:37 -07:00
parent 80630cd4d9
commit 814e62050c
8 changed files with 33 additions and 169 deletions

View file

@ -1,14 +1,14 @@
// Input:
//
// struct Foo {}
// struct FooBar {}
// Output:
//
// struct Foo {}
// struct FooBar {}
//
// #[allow(non_snake_case)]
// #[gpui2::ctor]
// fn register_Foo_builder() {
// fn register_foobar_builder() {
// gpui2::register_action_builder::<Foo>()
// }
use proc_macro::TokenStream;