From 57258c2988f9b665adfbbcf56da94843e80d8fd7 Mon Sep 17 00:00:00 2001 From: Larpon Date: Fri, 5 Feb 2021 21:02:29 +0100 Subject: [PATCH] builtin: document remaining pub structs in builtin.v (#8576) --- vlib/builtin/builtin.v | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/vlib/builtin/builtin.v b/vlib/builtin/builtin.v index 92a768e370..0d089c97fd 100644 --- a/vlib/builtin/builtin.v +++ b/vlib/builtin/builtin.v @@ -4,8 +4,8 @@ module builtin __global ( - g_m2_buf byteptr - g_m2_ptr byteptr + g_m2_buf byteptr + g_m2_ptr byteptr ) // isnil returns true if an object is nil (only for C objects). @@ -38,7 +38,7 @@ __global ( total_m = i64(0) nr_mallocs = int(0) // will be filled in cgen - as_cast_type_indexes []VCastTypeIndexName + as_cast_type_indexes []VCastTypeIndexName ) fn __as_cast(obj voidptr, obj_type int, expected_type int) voidptr { @@ -85,11 +85,13 @@ fn __print_assert_failure(i &VAssertMetaInfo) { } } +// MethodArgs holds type information for function and/or method arguments. pub struct MethodArgs { pub: typ int } +// FunctionData holds information about a parsed function. pub struct FunctionData { pub: name string @@ -99,6 +101,7 @@ pub: typ int } +// FieldData holds information about a field. Fields reside on structs. pub struct FieldData { pub: name string