forked from M-Labs/nac3
fixup! core/object: add ListObject and TupleObject
fix List field items name
This commit is contained in:
parent
aad4fafcba
commit
4e3e490b92
|
@ -25,7 +25,7 @@ impl<'ctx, Item: Model<'ctx>> StructKind<'ctx> for List<Item> {
|
||||||
|
|
||||||
fn traverse_fields<F: FieldTraversal<'ctx>>(&self, traversal: &mut F) -> Self::Fields<F> {
|
fn traverse_fields<F: FieldTraversal<'ctx>>(&self, traversal: &mut F) -> Self::Fields<F> {
|
||||||
Self::Fields {
|
Self::Fields {
|
||||||
items: traversal.add("data", Ptr(self.item)),
|
items: traversal.add("items", Ptr(self.item)),
|
||||||
len: traversal.add_auto("len"),
|
len: traversal.add_auto("len"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue