Lane Li: a refusal token names what was looked up #810
Loading…
Reference in a new issue
No description provided.
Delete branch "lane-i-refusal-operand-20261117"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Lane Li: a refusal token names what was looked up
The Debug refusal trace line gains one operand from a closed comptime set
(
rpg_trace.Operand, every member[a-z_]+):refusal <file>.<function> <site> <operand>.The first three fields and the
sNNnumbers are unchanged, so the old three-fieldregex still matches. A Release build compiles every call to nothing; no emit byte moves;
rpg_statements.zigis untouched (net growth 0).Operand set per reader:
rpg_eval.catalogOperations01:no_call,unnamed_procedure,not_in_catalog,not_operation_role(the last lookup that missed).rpg_eval.runValuess01..s09:value_unit,ccsid,unicode,trim,frame,program,choice(the unit that read nothing, s01..s07),no_step_rule(s08),leftover(s09).rpg_render_ctx.unhandledOperations01..s05:control_flow,call,value_flow,type_inference,classification(the stage).rpg_shape.compilerOrigins01..s03:statement_marker,shape_marker,entry_procedure.rpg_loops.recoverWiths06..s19, s23..s25:variable_operand,pointer_operand,control_operand,initial_operand,initial_constant,limit_operand,limit_constant,step_operand,step_constant,symbol_type,symbol_class,symbol_owner.Negative results (written, not instrumented):
rpg_loops.recoverWiths01..s05, s20..s22, s26..s31 test a length, a range, a shape, anoperation code or a label count. None has an enum-class name for what was looked up, so they keep the three-field token.
unhandledOperationandrunValuess01..s07: the operand repeats the site (the site alreadyfixes the stage or the unit). It is added for a uniform token and carries no new information.
symbol_classat s12, s16, s17, s23, s25 merges a class test with an owner test in onecondition; the operand names the class and does not tell which half failed.
Tests:
src/rpg_trace_operand_test.zig(new: the set is[a-z_]+and unique, the line shape, thesilence when off, the sites of the five readers); the scanner of
src/rpg_trace_test.zigaccepts the operand forms.Gates