Files
Martin Vogel 8853ed6360 fix(extract): callable-source cfml/gotemplate; correct scss/move/qml/pine fixtures
Per-case-verified callable-sourcing fixes (AST-confirmed via a standalone dumper).

PRODUCTION BUGS (a def-extractor minted a "Function" for a node kind absent from
function_node_types, desyncing def-extraction from call-scope attribution):
- CFML: cf_function_tag is minted as a Function by extract_cfml_function_tag but
  was not in cfml_func_types, so no SCOPE_FUNC was pushed -> in-body calls sourced
  to Module. Add "cf_function_tag" to cfml_func_types + compute_cfml_func_qn
  (reads the name from cf_attribute, gated in compute_func_qn which has source);
  the cf_function_tag walk_defs case now pushes children + continues so the
  generic extract_func_def does not double-mint.
- GoTemplate: define_action minted by extract_gotemplate_define but
  function_node_types was empty. Add gotemplate_func_types={"define_action"} +
  compute_gotemplate_func_qn (strips the quoted template name); the define_action
  walk_defs case pushes children + continues (its `name` field is a quoted string,
  which the generic path would double-mint with quotes).

BROKEN FIXTURES (production correct):
- SCSS: `@include` sat in a CSS rule_set (not a callable) -> legitimately
  Module-sourced. Moved it inside a `@mixin card { }` body.
- Move: named-address `module calc::math` + expression bodies made the grammar
  emit ERROR nodes (failed even extract-clean). Switched to `module 0x1::math`
  with statement-terminated bodies; the in-body `add(x,1);` now callable-sources.
- QML/Pine: the only in-body calls targeted EXTERNAL symbols (Math.max/ta.ema ->
  no edge) and the same-file calls were top-level. Added a same-file callee called
  in-body; removed the top-level calls. Dim-6 callee assertions preserved.

Reproduced by repro_grammar_{web,systems,markup,misc} callable-sourcing (RED).
AWK + Dart still deferred to focused tasks.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-06-27 09:08:15 +02:00
..
2026-06-03 02:13:30 +02:00