((_, ident, ty): IterArgs)
| 70 | } |
| 71 | } |
| 72 | fn set_dyn_f((_, ident, ty): IterArgs) -> TokenStream { |
| 73 | if match_last_ty(ty, "DynPorts") { |
| 74 | quote_spanned! {ident.span()=> |
| 75 | if port_name == concat!("dyn@", stringify!(#ident)) { |
| 76 | self.#ident = flow_rs::node::DynPorts::new(cfg); |
| 77 | } else |
| 78 | } |
| 79 | } else { |
| 80 | quote! {} |
| 81 | } |
| 82 | } |
| 83 | fn close_f((_, ident, ty): IterArgs) -> TokenStream { |
| 84 | if match_last_ty(ty, "Vec") || match_last_ty(ty, "HashMap") { |
| 85 | quote_spanned! {ident.span()=> |
nothing calls this directly
no test coverage detected