Implemented struct pointer types
This commit is contained in:
parent
f7bc903aa4
commit
f76f0a1e4b
17 changed files with 190 additions and 102 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue