Implemented struct pointer types

This commit is contained in:
Eduard Urbach 2025-02-05 15:16:00 +01:00
parent f7bc903aa4
commit f76f0a1e4b
Signed by: eduard
GPG key ID: 49226B848C78F6C8
17 changed files with 190 additions and 102 deletions

View file

@ -33,7 +33,12 @@ func (s *Scanner) scanStruct(file *fs.File, tokens token.List, i int) (int, erro
fieldName := tokens[i].Text(file.Bytes)
i++
fieldTypeName := tokens[i].Text(file.Bytes)
fieldType := types.Parse(fieldTypeName)
fieldType := types.Int
if fieldTypeName != "Int" {
panic("not implemented")
}
i++
structure.AddField(&types.Field{