Lines Matching refs:PathStep

9 use instruction::{Instruction, Path, PathStep};
191 Ok(n) => PathStep::Index(s, n), in parse_path()
192 Err(_) => PathStep::Name(s), in parse_path()
196 Ok(vec![PathStep::Name(text)]) in parse_path()
441 assert_eq!(&Value(vec![PathStep::Name("foobar")]), &instructions[0]); in test_compile_value()
450 &FormattedValue(vec![PathStep::Name("foobar")], "my_formatter"), in test_compile_value_with_formatter()
461 &Value(vec![PathStep::Name("foo"), PathStep::Name("bar")]), in test_dotted_path()
473 PathStep::Name("foo"), in test_indexed_path()
474 PathStep::Index("0", 0), in test_indexed_path()
475 PathStep::Name("bar") in test_indexed_path()
487 assert_eq!(&Value(vec![PathStep::Name("name")]), &instructions[1]); in test_mixture()
497 &Branch(vec![PathStep::Name("foo")], true, 2), in test_if_endif()
509 &Branch(vec![PathStep::Name("foo")], false, 2), in test_if_not_endif()
521 &Branch(vec![PathStep::Name("foo")], true, 3), in test_if_else_endif()
535 &PushNamedContext(vec![PathStep::Name("foo")], "bar"), in test_with()
548 &PushIterationContext(vec![PathStep::Name("bar"), PathStep::Name("baz")], "foo"), in test_foreach()
552 assert_eq!(&Value(vec![PathStep::Name("foo")]), &instructions[2]); in test_foreach()
563 assert_eq!(&Value(vec![PathStep::Name("name")]), &instructions[1]); in test_strip_whitespace_value()
574 &Branch(vec![PathStep::Name("name")], true, 5), in test_strip_whitespace_block()
578 assert_eq!(&Value(vec![PathStep::Name("name")]), &instructions[3]); in test_strip_whitespace_block()
606 assert_eq!(&Value(vec![PathStep::Name("value")]), &instructions[0]); in test_strip_whitespace_followed_by_another_tag()
607 assert_eq!(&Value(vec![PathStep::Name("value")]), &instructions[1]); in test_strip_whitespace_followed_by_another_tag()
619 vec![PathStep::Name("foo"), PathStep::Name("bar")] in test_call()
632 assert_eq!(&Value(vec![PathStep::Name("fontsize")]), &instructions[2]); in test_curly_brace_escaping()