This repository was archived by the owner on Apr 20, 2026. It is now read-only.
Commit 2c90332
authored
Some fields are optional during
Trivial patch.
Reproduce:
```bash
echo '{"language":"Solidity","sources":{"test.sol":{"content":"contract TT {\\n function main() public {}\\n}"}},"settings":{"stopAfter":"parsing","optimizer":{"enabled":false,"runs":200},"outputSelection":{"*":{"":["ast"],"*":[]}},"viaIR":true,"libraries":{}}}' | solc --standard-json
```
Since there is no semantics analysis when stopping after parsing,
`scope` along with a few other fields are not available and this PR
marks all `scope` to be optional."stopAfter":"parsing" (#271)1 parent 61ef8a3 commit 2c90332
1 file changed
Lines changed: 14 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
179 | 182 | | |
180 | 183 | | |
181 | | - | |
| 184 | + | |
| 185 | + | |
182 | 186 | | |
183 | 187 | | |
184 | 188 | | |
| |||
536 | 540 | | |
537 | 541 | | |
538 | 542 | | |
539 | | - | |
| 543 | + | |
| 544 | + | |
540 | 545 | | |
541 | 546 | | |
542 | 547 | | |
| |||
713 | 718 | | |
714 | 719 | | |
715 | 720 | | |
716 | | - | |
| 721 | + | |
| 722 | + | |
717 | 723 | | |
718 | 724 | | |
719 | 725 | | |
| |||
1028 | 1034 | | |
1029 | 1035 | | |
1030 | 1036 | | |
1031 | | - | |
| 1037 | + | |
| 1038 | + | |
1032 | 1039 | | |
1033 | 1040 | | |
1034 | 1041 | | |
| |||
1082 | 1089 | | |
1083 | 1090 | | |
1084 | 1091 | | |
1085 | | - | |
| 1092 | + | |
| 1093 | + | |
1086 | 1094 | | |
1087 | 1095 | | |
1088 | 1096 | | |
| |||
0 commit comments