@@ -24,8 +24,8 @@ impl<'bundle> WriteValue<'bundle> for ast::InlineExpression<&'bundle str> {
2424 M : MemoizerKind ,
2525 {
2626 match self {
27- Self :: StringLiteral { value } => unescape_unicode ( w, value) ,
28- Self :: MessageReference { id, attribute } => {
27+ Self :: StringLiteral { value, .. } => unescape_unicode ( w, value) ,
28+ Self :: MessageReference { id, attribute, .. } => {
2929 if let Some ( msg) = scope. bundle . get_entry_message ( id. name ) {
3030 if let Some ( attr) = attribute {
3131 msg. attributes
@@ -53,11 +53,12 @@ impl<'bundle> WriteValue<'bundle> for ast::InlineExpression<&'bundle str> {
5353 scope. write_ref_error ( w, self )
5454 }
5555 }
56- Self :: NumberLiteral { value } => FluentValue :: try_number ( value) . write ( w, scope) ,
56+ Self :: NumberLiteral { value, .. } => FluentValue :: try_number ( value) . write ( w, scope) ,
5757 Self :: TermReference {
5858 id,
5959 attribute,
6060 arguments,
61+ ..
6162 } => {
6263 let ( _, resolved_named_args) = scope. get_arguments ( arguments. as_ref ( ) ) ;
6364
@@ -82,7 +83,7 @@ impl<'bundle> WriteValue<'bundle> for ast::InlineExpression<&'bundle str> {
8283 scope. local_args = None ;
8384 result
8485 }
85- Self :: FunctionReference { id, arguments } => {
86+ Self :: FunctionReference { id, arguments, .. } => {
8687 let ( resolved_positional_args, resolved_named_args) =
8788 scope. get_arguments ( Some ( arguments) ) ;
8889
@@ -99,7 +100,7 @@ impl<'bundle> WriteValue<'bundle> for ast::InlineExpression<&'bundle str> {
99100 scope. write_ref_error ( w, self )
100101 }
101102 }
102- Self :: VariableReference { id } => {
103+ Self :: VariableReference { id, .. } => {
103104 let args = scope. local_args . as_ref ( ) . or ( scope. args ) ;
104105
105106 if let Some ( arg) = args. and_then ( |args| args. get ( id. name ) ) {
@@ -113,7 +114,7 @@ impl<'bundle> WriteValue<'bundle> for ast::InlineExpression<&'bundle str> {
113114 w. write_char ( '}' )
114115 }
115116 }
116- Self :: Placeable { expression } => expression. write ( w, scope) ,
117+ Self :: Placeable { expression, .. } => expression. write ( w, scope) ,
117118 }
118119 }
119120
@@ -125,10 +126,12 @@ impl<'bundle> WriteValue<'bundle> for ast::InlineExpression<&'bundle str> {
125126 Self :: MessageReference {
126127 id,
127128 attribute : Some ( attribute) ,
129+ ..
128130 } => write ! ( w, "{}.{}" , id. name, attribute. name) ,
129131 Self :: MessageReference {
130132 id,
131133 attribute : None ,
134+ ..
132135 } => w. write_str ( id. name ) ,
133136 Self :: TermReference {
134137 id,
@@ -141,7 +144,7 @@ impl<'bundle> WriteValue<'bundle> for ast::InlineExpression<&'bundle str> {
141144 ..
142145 } => write ! ( w, "-{}" , id. name) ,
143146 Self :: FunctionReference { id, .. } => write ! ( w, "{}()" , id. name) ,
144- Self :: VariableReference { id } => write ! ( w, "${}" , id. name) ,
147+ Self :: VariableReference { id, .. } => write ! ( w, "${}" , id. name) ,
145148 _ => unreachable ! ( ) ,
146149 }
147150 }
@@ -157,9 +160,9 @@ impl<'bundle> ResolveValue<'bundle> for ast::InlineExpression<&'bundle str> {
157160 M : MemoizerKind ,
158161 {
159162 match self {
160- Self :: StringLiteral { value } => unescape_unicode_to_string ( value) . into ( ) ,
161- Self :: NumberLiteral { value } => FluentValue :: try_number ( value) ,
162- Self :: VariableReference { id } => {
163+ Self :: StringLiteral { value, .. } => unescape_unicode_to_string ( value) . into ( ) ,
164+ Self :: NumberLiteral { value, .. } => FluentValue :: try_number ( value) ,
165+ Self :: VariableReference { id, .. } => {
163166 if let Some ( local_args) = & scope. local_args {
164167 if let Some ( arg) = local_args. get ( id. name ) {
165168 return arg. clone ( ) ;
@@ -173,7 +176,7 @@ impl<'bundle> ResolveValue<'bundle> for ast::InlineExpression<&'bundle str> {
173176 }
174177 FluentValue :: Error
175178 }
176- Self :: FunctionReference { id, arguments } => {
179+ Self :: FunctionReference { id, arguments, .. } => {
177180 let ( resolved_positional_args, resolved_named_args) =
178181 scope. get_arguments ( Some ( arguments) ) ;
179182
0 commit comments