Skip to content

Commit 0b92835

Browse files
committed
save
1 parent 85d7d62 commit 0b92835

23 files changed

+15812
-903
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/oxc_angular_compiler/src/ast/html.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ pub struct HtmlElement<'a> {
5353
pub span: Span,
5454
/// The start tag source span.
5555
pub start_span: Span,
56-
/// The end tag source span (None for self-closing).
56+
/// The end tag source span (None for void/self-closing/incomplete elements).
5757
pub end_span: Option<Span>,
58+
/// Whether this element was explicitly self-closing (e.g., `<div/>`).
59+
pub is_self_closing: bool,
5860
}
5961

6062
/// An attribute node in the HTML AST.
@@ -374,6 +376,7 @@ mod tests {
374376
span: Span::default(),
375377
start_span: Span::default(),
376378
end_span: None,
379+
is_self_closing: false,
377380
};
378381

379382
let child2 = HtmlElement {
@@ -383,6 +386,7 @@ mod tests {
383386
span: Span::default(),
384387
start_span: Span::default(),
385388
end_span: None,
389+
is_self_closing: false,
386390
};
387391

388392
let mut children = Vec::new_in(&allocator);
@@ -396,6 +400,7 @@ mod tests {
396400
span: Span::default(),
397401
start_span: Span::default(),
398402
end_span: None,
403+
is_self_closing: false,
399404
};
400405

401406
let mut nodes = Vec::new_in(&allocator);

crates/oxc_angular_compiler/src/ast/r3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ impl<'a> R3Node<'a> {
279279
// ============================================================================
280280

281281
/// A comment node.
282-
#[derive(Debug)]
282+
#[derive(Debug, Clone)]
283283
pub struct R3Comment<'a> {
284284
/// The comment text.
285285
pub value: Atom<'a>,

0 commit comments

Comments
 (0)