(value: &str, line_no: usize)
| 165 | } |
| 166 | |
| 167 | fn parse_text_param(value: &str, line_no: usize) -> Result<AnimationParam, String> { |
| 168 | if let Some(rest) = value.strip_prefix('@') { |
| 169 | return parse_reference_param(rest, line_no); |
| 170 | } |
| 171 | Ok(AnimationParam::String(Cow::Owned(value.to_string()))) |
| 172 | } |
| 173 | |
| 174 | fn parse_reference_param(rest: &str, line_no: usize) -> Result<AnimationParam, String> { |
| 175 | let Some((object, field)) = rest.split_once('.') else { |
no test coverage detected