1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

builtin, cgen: support FieldData.unaliased_typ, use it for generalising x.json2 (able to encode type aliased struct fields) (#16469)

This commit is contained in:
Hitalo Souza
2022-11-20 06:18:14 -03:00
committed by GitHub
parent 06764bc559
commit 45854882b9
16 changed files with 981 additions and 317 deletions

View File

@ -110,12 +110,13 @@ pub:
// FieldData holds information about a field. Fields reside on structs.
pub struct FieldData {
pub:
name string
attrs []string
is_pub bool
is_mut bool
is_shared bool
typ int
name string
attrs []string
is_pub bool
is_mut bool
is_shared bool
typ int
unaliased_typ int
}
pub enum AttributeKind {