Say a compiled step holds no node, where its name is a string

This commit is contained in:
2026-09-30 19:57:49 +02:00
committed by Lillem4n
parent d279408ba5
commit 1397d1438a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -187,7 +187,7 @@ func (t *table) route(tail []string, descended bool) (tableRoute, error) {
}
// pathStep is one step of a compiled path, taken at the node the steps before it
// reached; at indexes the tail segment the step consumes. A step holds no pointer, so a
// reached; at indexes the tail segment the step consumes. A step holds no node, so a
// caller's steps stay on its stack.
type pathStep struct {
kind stepKind
+1 -1
View File
@@ -43,7 +43,7 @@ This round, in order:
- Draw every path through one interpreter over those steps, `drawSteps`, with `descend`
probing into a stack buffer, deleting `pathDraw`, and replace the decision "The path
walks are separate loops": the prototype held `perf_test.go` once a step held no
pointer, the probe returned its slice and the interpreter took `levels`.
node, the probe returned its slice and the interpreter took `levels`.
- Fold `checkNoOverlap` and `checkNoRepeatedRead` into `heldCheck`, so `compileFormat`
compiles and nothing more.
- Fix at compile how `readField` reads an arm, `arm.kind`, deleting its two panics and