Rename grammar's NameRead to PathRead and CheckName to CheckIdentifier, so a name in the engine is only a bound name

This commit is contained in:
2026-10-07 02:09:52 +02:00
committed by Lillem4n
parent 097fae4cd2
commit fcec9c4a2a
20 changed files with 55 additions and 55 deletions
+3 -3
View File
@@ -33,9 +33,9 @@ func TestSplitPathRefusesAStraySelectorBracket(t *testing.T) {
}
}
func TestNameSegmentsDropSelectorsAndStepsUp(t *testing.T) {
if got := NameSegments([]string{"a", "[b]", "..", "c"}); !reflect.DeepEqual(got, []string{"a", "c"}) {
t.Errorf("NameSegments = %q, want [a c]", got)
func TestIdentifierSegmentsDropSelectorsAndStepsUp(t *testing.T) {
if got := IdentifierSegments([]string{"a", "[b]", "..", "c"}); !reflect.DeepEqual(got, []string{"a", "c"}) {
t.Errorf("IdentifierSegments = %q, want [a c]", got)
}
}