Repository navigation
Commit c46a97a
feat(devx): reach the INLINE literal expression at an object-literal
The vocabulary gate reached a `code:` whose value is a quoted literal
(`objlit`), a SCREAMING_SNAKE constant (`objlitconst`), a template
(`objlittemplate`) or a helper parameter (`objlithelper`), but not an INLINE
literal EXPRESSION — a ternary or a `||`/`??` chain written at the stamp with
every branch already a literal. That is no site AND no unresolved: the one way
the gate's "REPORTED as unresolved, never dropped" bound cannot notice itself
failing, in a third stamp position.
Adds the fifth object-literal shape, `objlitexpr`. It needs no resolver —
`literalCodeValues` reduces the value text between `code:` and the property's
terminating top-level comma directly, and `resolveIdent` is left at its default
so an identifier limb keeps the expression unreducible, which is what keeps this
shape out of the lower-case-LOCAL position that stays censused and open.
Precision measured BEFORE implementing, over the gate's own population: of 902
`code:` tokens the shape reaches 346, three guards reject 130, 216 reach the
reduction and 214 decline — including every type annotation — leaving 2 live
positions, 5 values, 2 verdict rows and 0 unregistered wire codes hiding. The
ALL-OR-NOTHING reduction IS the guard against the type-annotation noise the
helper position pays per value stamp. Frozen in
INLINE_LITERAL_EXPRESSION_CENSUS, printed in the bounds line, arithmetic pinned.
The two rows the widening owes land in the same commit, after the widening,
because the reconciliation runs in both directions: the ADR-0112 D6
field-addressed validation catalog in `domains/automation.ts`. They are reported
here rather than delegated to check:error-code-casing because that gate needs a
quoted literal beside the token `code` and an inline ternary has none —
measured, and pinned against its real detector.
Claude-Session: https://claude.ai/code/session_01WLJQhde67SeTccsmnBVarV
Co-authored-by: Claude <noreply@anthropic.com>code: (#14625)1 parent a120885 commit c46a97a
2 files changed
Lines changed: 753 additions & 5 deletions
File tree
- packages/runtime/src
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
138 | 163 | | |
139 | 164 | | |
140 | 165 | | |
| |||
1180 | 1205 | | |
1181 | 1206 | | |
1182 | 1207 | | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
1183 | 1264 | | |
1184 | 1265 | | |
1185 | 1266 | | |
| |||
0 commit comments