mirror of
https://github.com/servo/servo.git
synced 2025-08-01 11:40:30 +01:00
style: Derive ToResolvedValue.
Differential Revision: https://phabricator.services.mozilla.com/D26783
This commit is contained in:
parent
6ac777ebf2
commit
a47dcb5707
53 changed files with 359 additions and 108 deletions
|
@ -25,6 +25,7 @@ mod to_animated_value;
|
|||
mod to_animated_zero;
|
||||
mod to_computed_value;
|
||||
mod to_css;
|
||||
mod to_resolved_value;
|
||||
|
||||
#[proc_macro_derive(Animate, attributes(animate, animation))]
|
||||
pub fn derive_animate(stream: TokenStream) -> TokenStream {
|
||||
|
@ -62,6 +63,12 @@ pub fn derive_to_computed_value(stream: TokenStream) -> TokenStream {
|
|||
to_computed_value::derive(input).into()
|
||||
}
|
||||
|
||||
#[proc_macro_derive(ToResolvedValue, attributes(resolve))]
|
||||
pub fn derive_to_resolved_value(stream: TokenStream) -> TokenStream {
|
||||
let input = syn::parse(stream).unwrap();
|
||||
to_resolved_value::derive(input).into()
|
||||
}
|
||||
|
||||
#[proc_macro_derive(ToCss, attributes(css))]
|
||||
pub fn derive_to_css(stream: TokenStream) -> TokenStream {
|
||||
let input = syn::parse(stream).unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue