Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
128 changes: 84 additions & 44 deletions Cargo.lock

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

24 changes: 12 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,19 +87,19 @@ multiple_crate_versions = "allow"

[workspace.dependencies]
# External oxc crates from crates.io
oxc_allocator = "0.135"
oxc_ast = "0.135"
oxc_ast_visit = "0.135"
oxc_diagnostics = "0.135"
oxc_napi = "0.135"
oxc_parser = "0.135"
oxc_semantic = "0.135"
oxc_span = "0.135"
oxc_syntax = "0.135"
oxc_allocator = "0.136"
oxc_ast = "0.136"
oxc_ast_visit = "0.136"
oxc_diagnostics = "0.136"
oxc_napi = "0.136"
oxc_parser = "0.136"
oxc_semantic = "0.136"
oxc_span = "0.136"
oxc_syntax = "0.136"
oxc_sourcemap = "7.0.0"
oxc_str = "0.135"
oxc_transformer = "0.135"
oxc_codegen = "0.135"
oxc_str = "0.136"
oxc_transformer = "0.136"
oxc_codegen = "0.136"

# Internal
oxc_angular_compiler = { path = "crates/oxc_angular_compiler" }
Expand Down
10 changes: 5 additions & 5 deletions crates/oxc_angular_compiler/src/component/import_elision.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1111,9 +1111,9 @@ class MyComponent implements OnInit, OnDestroy {
let source_type = SourceType::ts();
let parser_ret = Parser::new(&allocator, &filtered, source_type).parse();
assert!(
parser_ret.errors.is_empty(),
parser_ret.diagnostics.is_empty(),
"Filtered source should be valid TypeScript: {:?}",
parser_ret.errors
parser_ret.diagnostics
);
}

Expand Down Expand Up @@ -1168,12 +1168,12 @@ class AppComponent implements OnInit, OnDestroy {
let allocator = Allocator::default();
let source_type = SourceType::ts();
let parser_ret = Parser::new(&allocator, &filtered, source_type).parse();
if !parser_ret.errors.is_empty() {
for err in &parser_ret.errors {
if !parser_ret.diagnostics.is_empty() {
for err in &parser_ret.diagnostics {
eprintln!("Parse error: {:?}", err);
}
}
assert!(parser_ret.errors.is_empty(), "Filtered source should be valid TypeScript");
assert!(parser_ret.diagnostics.is_empty(), "Filtered source should be valid TypeScript");

// Check that type-only imports are removed from the right places
let import_lines: Vec<_> =
Expand Down
Loading
Loading