-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use DSL v2 instead of v0 when collecting breaking versions for tests (#…
…684) Part of #637 #638 The other use case is in `codegen/spec/src/grammar.rs` but that the rest of the code uses v0 for spec-generation, so I didn't change that not to mix definitions and not to step on your toes @OmarTawfik for #637. --------- Co-authored-by: Omar Tawfik <[email protected]>
- Loading branch information
1 parent
3619746
commit 0b3a2af
Showing
14 changed files
with
157 additions
and
73 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
use anyhow::Result; | ||
use codegen_schema::types::LanguageDefinition; | ||
use codegen_testing::TestingGeneratorExtensions; | ||
use infra_utils::cargo::CargoWorkspace; | ||
use solidity_language::SolidityLanguageExtensions; | ||
use solidity_language::SolidityDefinition; | ||
|
||
fn main() -> Result<()> { | ||
let language = LanguageDefinition::load_solidity()?; | ||
let lang_def = SolidityDefinition::create(); | ||
|
||
language.generate_cst_output_tests( | ||
lang_def.generate_cst_output_tests( | ||
&CargoWorkspace::locate_source_crate("solidity_testing_snapshots")?.join("cst_output"), | ||
&CargoWorkspace::locate_source_crate("solidity_cargo_tests")? | ||
.join("src/cst_output/generated"), | ||
)?; | ||
|
||
Ok(()) | ||
) | ||
} |
5 changes: 4 additions & 1 deletion
5
crates/solidity/outputs/cargo/tests/src/cst_output/generated/mod.rs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.