Skip to content

Commit

Permalink
Remove constant values from ast tree (#268)
Browse files Browse the repository at this point in the history
* Remove constant values from ast tree

* Pass file to checker

* Add back string value for string type annotations

* Only use node range

* Remove constant expression value

* Fix benchmark

* Clippy fix

* Remove class name from ast
  • Loading branch information
Glyphack authored Oct 13, 2024
1 parent 3a82579 commit dff6ac5
Show file tree
Hide file tree
Showing 94 changed files with 1,479 additions and 1,260 deletions.
4 changes: 3 additions & 1 deletion benchmark/benches/typecheck_benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ pub fn benchmark_type_checker(c: &mut Criterion) {
let builder = BuildManager::new(Settings::test_settings());
let file_path = PathBuf::from(path);
builder.build_one(&PathBuf::from("../../"), &file_path);
builder.type_check(&file_path);
let id = builder.paths.get(&file_path).unwrap();
let file = builder.files.get(&id).unwrap();
builder.type_check(&file_path, &file);

0
});
Expand Down
Loading

0 comments on commit dff6ac5

Please sign in to comment.