Say a compiled step holds no node, where its name is a string
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user