Commit 1118a10
Compiler option (#535)
* adding solidity versions to options
* visit each PragmaDirective on parse and infer the compiler
* recreate logic for byte and bytes if we are on a compiler that supports them
* adding tests for the scenarios
* not splitting imports if we are in version before 0.7.4
* No need to run eslint with json files
* refactor of solc.json to a leaner array
* reorganising tests to be more descriptive
* dependency updates
* Keeping the documentation for the ImportDirective
* added more documentation on the full system.
* moving tests to new tests/format folder
* implementing feedback from Franco
- compiler should not be inferred
- safe formats should be used if no compiler is provided
* spell checking
* Not needed anymore
* addressing feedback
* missing dot
* semver.coerce(options.compiler) is much simpler than having a dedicated util for that
* updating dependencies
* adding documentation for compiler option
* Update src/parser.js
Co-authored-by: Franco Victorio <[email protected]>
* Move the "Explicit Types" option before the "Compiler" one
* Mark the compiler option as experimental and rewrite its description
* Update README.md
Co-authored-by: Franco Victorio <[email protected]>1 parent 56b8d87 commit 1118a10
28 files changed
Lines changed: 2419 additions & 1465 deletions
File tree
- src
- nodes
- tests
- config
- format
- BreakingChangesV0.7.4
- __snapshots__
- BreakingChangesV0.8.0
- __snapshots__
- ExplicitVariableTypes
- __snapshots__
- HexLiteral
- __snapshots__
- Parentheses
- __snapshots__
- WrongCompiler
- __snapshots__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
| 65 | + | |
67 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
115 | 117 | | |
116 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 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 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
117 | 204 | | |
118 | 205 | | |
119 | 206 | | |
| |||
0 commit comments