Commit 44a48ea
Infer version (#1047)
* update dependencies
* Adding the compiler inference logic
* upgrading tests for version inferrence
* Since importing maxSatisfying and minSatisfying, there is no benefit in importing semver functionality by independent functions.
* fixing bug in VersionLiteral
* using string replace to remove all comments from the VersionExpressionSets
* Move inferLanguage to its own module
* Add tests for inferLanguage
* added extra test case
* check if there is at least 1 valid version in the ranges before comparing it against the supported versions.
* adding more specific tests
* validating a range like `0.5.0 - 0.6.0` gets rewritten to comparators `>=0.5.0 <=0.6.0` which can be concatenated.
* refactor test
* Add test case for infer-language
---------
Co-authored-by: Franco Victorio <[email protected]>1 parent 3551102 commit 44a48ea
File tree
55 files changed
+441
-263
lines changed- src
- slang-nodes
- slang-utils
- tests
- format
- AllSolidityFeaturesV0.4.26
- __snapshots__
- AllSolidityFeatures
- __snapshots__
- AssemblyV0.4.26
- __snapshots__
- BasicIterator
- __snapshots__
- BinaryOperators
- __snapshots__
- BreakingChangesV0.7.4
- __snapshots__
- Comments
- __snapshots__
- ConstructorsV0.4.26
- __snapshots__
- Constructors
- __snapshots__
- FunctionDefinitionsv0.5.0
- __snapshots__
- FunctionDefinitions
- __snapshots__
- ImportDirective/__snapshots__
- IndexOf
- __snapshots__
- MemberAccess
- __snapshots__
- ModifierInvocations
- __snapshots__
- Parentheses
- __snapshots__
- Pragma
- __snapshots__
- PrettierIgnore
- __snapshots__
- Proxy
- __snapshots__
- StyleGuide
- __snapshots__
- unit/slang-utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
55 files changed
+441
-263
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
78 | 79 | | |
79 | | - | |
80 | | - | |
| 80 | + | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | | - | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
99 | | - | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
0 commit comments