mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-16 07:28:52 +00:00
Update skeleton
This commit is contained in:
@@ -208,11 +208,18 @@ impl AssertSupported for Initializer {
|
||||
fn assert_supported(&self) {
|
||||
match self {
|
||||
Self::Expression(expr) => expr.assert_supported(),
|
||||
Self::List(_) => panic!("Initializer::List"),
|
||||
Self::List(items) => items.assert_supported(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl AssertSupported for InitializerListItem {
|
||||
fn assert_supported(&self) {
|
||||
assert!(self.designation.is_empty());
|
||||
self.initializer.assert_supported();
|
||||
}
|
||||
}
|
||||
|
||||
impl AssertSupported for Declarator {
|
||||
fn assert_supported(&self) {
|
||||
self.kind.assert_supported();
|
||||
|
||||
Reference in New Issue
Block a user