Skip to content

Commit cafd9af

Browse files
committed
Add VirtualTable AST production.
1 parent 526474e commit cafd9af

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/ast.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7413,7 +7413,9 @@ where
74137413
match *self {
74147414
SpecialName::VirtualTable(ref ty) => {
74157415
write!(ctx, "{{vtable(")?;
7416+
ctx.push_demangle_node(DemangleNodeType::VirtualTable);
74167417
ty.demangle(ctx, scope)?;
7418+
ctx.pop_demangle_node();
74177419
write!(ctx, ")}}")?;
74187420
Ok(())
74197421
}

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ pub enum DemangleNodeType {
249249
DataMemberPrefix,
250250
/// Entering a <nested-name> production
251251
NestedName,
252+
/// Entering a <special-name> production that is a vtable.
253+
VirtualTable,
252254
}
253255

254256
/// Sink for demangled text that reports syntactic structure.

0 commit comments

Comments
 (0)