Commit 8262e7d
committed
Fix literal parsing in legacy AST for older Solidity versions
Some older Solidity versions (e.g., 0.4.23) store numeric literal values
in the legacy AST with embedded double-quotes like '"12"' instead of '12'.
This caused parsing failures for fixed-size array declarations like
`uint256[12]` when computing storage layout.
The fix strips surrounding double-quotes from literal values in the
legacy AST parsing path.
Fixes #22151 parent dd46903 commit 8262e7d
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
448 | 453 | | |
449 | 454 | | |
450 | 455 | | |
| |||
0 commit comments