@@ -616,15 +616,19 @@ fn get_decorators(attrs: &[syn::Attribute]) -> HashMap<SupportedLanguage, Vec<St
616
616
// The resulting HashMap, Key is the language, and the value is a vector of decorators words that will be put onto structures
617
617
let mut out: HashMap < SupportedLanguage , Vec < String > > = HashMap :: new ( ) ;
618
618
619
- for value in get_typeshare_name_value_meta_items ( attrs, "swift" ) . filter_map ( literal_as_string) {
620
- let decorators: Vec < String > = value. split ( ',' ) . map ( |s| s. trim ( ) . to_string ( ) ) . collect ( ) ;
621
-
622
- // lastly, get the entry in the hashmap output and extend the value, or insert what we have already found
623
- let decs = out. entry ( SupportedLanguage :: Swift ) . or_default ( ) ;
624
- decs. extend ( decorators) ;
625
- // Sorting so all the added decorators will be after the normal ([`String`], `Codable`) in alphabetical order
626
- decs. sort_unstable ( ) ;
627
- decs. dedup ( ) ; //removing any duplicates just in case
619
+ for language in SupportedLanguage :: all_languages ( ) {
620
+ for value in get_typeshare_name_value_meta_items ( attrs, & language. to_string ( ) )
621
+ . filter_map ( literal_as_string)
622
+ {
623
+ let decorators: Vec < String > = value. split ( ',' ) . map ( |s| s. trim ( ) . to_string ( ) ) . collect ( ) ;
624
+
625
+ // lastly, get the entry in the hashmap output and extend the value, or insert what we have already found
626
+ let decs = out. entry ( language) . or_default ( ) ;
627
+ decs. extend ( decorators) ;
628
+ // Sorting so all the added decorators will be after the normal ([`String`], `Codable`) in alphabetical order
629
+ decs. sort_unstable ( ) ;
630
+ decs. dedup ( ) ; //removing any duplicates just in case
631
+ }
628
632
}
629
633
630
634
//return our hashmap mapping of language -> Vec<decorators>
0 commit comments