Implemented struct pointer types
This commit is contained in:
@ -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{
|
||||
|
Reference in New Issue
Block a user