Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove JS parser test generation codegen #4443

Merged
merged 2 commits into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading