From 47fba3292662758df0cba75b516ea9000ae70a3c Mon Sep 17 00:00:00 2001 From: David Mak Date: Mon, 25 Nov 2024 15:58:42 +0800 Subject: [PATCH] [core] codegen/types: Add docs for NDArrayType::fields --- nac3core/src/codegen/types/ndarray/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nac3core/src/codegen/types/ndarray/mod.rs b/nac3core/src/codegen/types/ndarray/mod.rs index ec9dffca..307e67c3 100644 --- a/nac3core/src/codegen/types/ndarray/mod.rs +++ b/nac3core/src/codegen/types/ndarray/mod.rs @@ -102,12 +102,13 @@ impl<'ctx> NDArrayType<'ctx> { Ok(()) } - // TODO: Move this into e.g. StructProxyType + /// Returns an instance of [`StructFields`] containing all field accessors for this type. #[must_use] fn fields(ctx: &'ctx Context, llvm_usize: IntType<'ctx>) -> NDArrayStructFields<'ctx> { NDArrayStructFields::new(ctx, llvm_usize) } + /// See [`NDArrayType::fields`]. // TODO: Move this into e.g. StructProxyType #[must_use] pub fn get_fields(&self, ctx: &'ctx Context) -> NDArrayStructFields<'ctx> {