Skip to content

Commit 1137c48

Browse files
committed
[WIP] progress
1 parent 153d00c commit 1137c48

File tree

4 files changed

+234
-200
lines changed

4 files changed

+234
-200
lines changed

xml-schema-tests/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fn main() {
3838

3939
let renames = Default::default();
4040
let mut gen = ParserGenerator::new(vec![proc], &parse_context, renames);
41-
let scope = gen.gen_target_scope();
41+
gen.gen_target_scope();
4242

4343
let filename = in_path.file_name().unwrap();
4444
let out_path =
@@ -53,7 +53,7 @@ fn main() {
5353
.write(b"#[allow(unused_imports)]\nuse xml_schema::support;\n")
5454
.expect(&format!("Could not write in {:?}", out_path));
5555
out_file
56-
.write(scope.to_string().as_bytes())
56+
.write(gen.scope.to_string().as_bytes())
5757
.expect(&format!("Could not write in {:?}", out_path));
5858
}
5959
println!("cargo:rerun-if-changed={}", in_dir.to_str().unwrap());

xml-schema/src/bin/gen.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ fn main() {
5858
}
5959

6060
let mut gen = ParserGenerator::new(processors, &parse_context, renames);
61-
let scope = gen.gen_target_scope();
62-
println!("#[allow(unused_imports)]\nuse support;\n{}", scope.to_string());
61+
gen.gen_target_scope();
62+
println!("#[allow(unused_imports)]\nuse support;\n{}", gen.scope.to_string());
6363
}

0 commit comments

Comments
 (0)