Files
codeql/rust/ast-generator/src/codegen.rs
2024-10-08 10:03:00 +02:00

17 lines
353 B
Rust

pub mod grammar;
pub fn reformat(x: String) -> String {
x
}
pub fn add_preamble(_x: crate::flags::CodegenType, y: String) -> String {
y
}
pub fn ensure_file_contents(
_x: crate::flags::CodegenType,
path: &std::path::Path,
contents: &String,
_check: bool,
) {
std::fs::write(path, contents).expect("Unable to write file");
}