Commit 141feafb
141feafb3b41Merged
Yukihiro "Matz" Matsumoto <[email protected]> · 8 months ago · 3 files · ~3 modified
Description
Reduce lrama warnings: skip extend calls and handle interpolated regexp
- Add "extend" to the no-op skip list alongside private/protected/public in stmt.c, since extend is a runtime mixin operation already handled at class analysis time
- Add PM_INTERPOLATED_REGULAR_EXPRESSION_NODE handling in expr.c (NULL placeholder) and type.c (REGEXP type) to suppress unsupported node warnings for interpolated regexps
Co-Authored-By: Claude Opus 4.6 (1M context) [email protected]
Details
- Commit
- 141feafb3b41
- Parent
- 4749f5d9dc75
src/expr.cmodifiedView file
@@ -4344,6 +4344,12 @@
43444344
return r;43454345
}43464346
4347+
case PM_INTERPOLATED_REGULAR_EXPRESSION_NODE:4348+
/* Interpolated regexp (/pattern #{expr}/) — not yet supported at4349+
* compile time; return NULL placeholder so callers can handle4350+
* gracefully. */4351+
return sfmt("NULL /* interp regexp */");4352+
43474353
default:43484354
fprintf(stderr, "spinel: warning: unsupported expression node type %d\n", PM_NODE_TYPE(node));43494355
return sfmt("0 /* unsupported expr %d */", PM_NODE_TYPE(node));src/stmt.cmodifiedView file
Loading diff…
src/type.cmodifiedView file
Loading diff…