Skip to content

Commit

Permalink
chore: remove JS parser test generation codegen (#4443)
Browse files Browse the repository at this point in the history
  • Loading branch information
Conaclos authored Nov 1, 2024
1 parent 7306a4e commit ec46f37
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 271 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion xtask/codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ pulldown-cmark = { version = "0.12.2", default-features = false, optional = true
quote = "1.0.36"
serde = { workspace = true, optional = true }
ureq = "2.10.1"
walkdir = "2.5.0"
xtask = { path = '../', version = "0.0" }

biome_analyze = { workspace = true, optional = true }
Expand Down
5 changes: 0 additions & 5 deletions xtask/codegen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ mod generate_crate;
mod html_kinds_src;
mod kind_src;
mod language_kind;
mod parser_tests;
pub mod promote_rule;
mod termcolorful;
mod unicode;
Expand All @@ -39,7 +38,6 @@ pub use self::formatter::generate_formatters;
pub use self::generate_analyzer::generate_analyzer;
pub use self::generate_crate::generate_crate;
pub use self::generate_new_analyzer_rule::{generate_new_analyzer_rule, LanguageKind};
pub use self::parser_tests::generate_parser_tests;
pub use self::unicode::generate_tables;

pub enum UpdateResult {
Expand Down Expand Up @@ -105,9 +103,6 @@ pub enum TaskCommand {
/// Transforms ungram files into AST
#[bpaf(command)]
Grammar(Vec<String>),
/// Extracts parser inline comments into test files
#[bpaf(command)]
Test,
/// Generates unicode table inside lexer
#[bpaf(command)]
Unicode,
Expand Down
6 changes: 1 addition & 5 deletions xtask/codegen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use crate::promote_rule::promote_rule;
use xtask::Mode::Overwrite;
use xtask_codegen::{
generate_analyzer, generate_ast, generate_crate, generate_formatters,
generate_new_analyzer_rule, generate_parser_tests, generate_tables, task_command, TaskCommand,
generate_new_analyzer_rule, generate_tables, task_command, TaskCommand,
};

fn main() -> Result<()> {
Expand Down Expand Up @@ -63,9 +63,6 @@ fn main() -> Result<()> {
TaskCommand::Grammar(language_list) => {
generate_ast(Overwrite, language_list)?;
}
TaskCommand::Test => {
generate_parser_tests(Overwrite)?;
}
TaskCommand::Unicode => {
generate_tables()?;
}
Expand All @@ -82,7 +79,6 @@ fn main() -> Result<()> {
TaskCommand::All => {
generate_tables()?;
generate_ast(Overwrite, vec![])?;
generate_parser_tests(Overwrite)?;
generate_formatters();
generate_analyzer()?;
#[cfg(feature = "configuration")]
Expand Down
259 changes: 0 additions & 259 deletions xtask/codegen/src/parser_tests.rs

This file was deleted.

0 comments on commit ec46f37

Please sign in to comment.