Refactor path commands (#9687)

This commit is contained in:
Jakub Žádník
2023-07-15 00:04:22 +03:00
committed by GitHub
parent 8c52b7a23a
commit ba766de5d1
14 changed files with 254 additions and 338 deletions

View File

@ -1740,6 +1740,15 @@ impl Value {
}
}
/// Note: Only use this for test data, *not* live data, as it will point into unknown source
/// when used in errors.
pub fn test_list(vals: Vec<Value>) -> Value {
Value::List {
vals,
span: Span::test_data(),
}
}
/// Note: Only use this for test data, *not* live data, as it will point into unknown source
/// when used in errors.
pub fn test_date(val: DateTime<FixedOffset>) -> Value {