Implemented struct pointer types

This commit is contained in:
2025-02-05 15:16:00 +01:00
parent 85568949a2
commit 5d38a4980a
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{