Implemented environment type
This commit is contained in:
parent
1268344238
commit
96ac298980
15 changed files with 67 additions and 51 deletions
|
@ -14,26 +14,14 @@ type Function struct {
|
|||
Package string
|
||||
Name string
|
||||
UniqueName string
|
||||
All *Environment
|
||||
File *fs.File
|
||||
Body token.List
|
||||
Input []*Parameter
|
||||
Output []*Parameter
|
||||
OutputTypes []types.Type
|
||||
Functions map[string]*Function
|
||||
Structs map[string]*types.Struct
|
||||
Constants map[string]*Constant
|
||||
DLLs dll.List
|
||||
Err error
|
||||
deferred []func()
|
||||
count counter
|
||||
}
|
||||
|
||||
// counter stores how often a certain statement appeared so we can generate a unique label from it.
|
||||
type counter struct {
|
||||
assert int
|
||||
branch int
|
||||
multiBranch int
|
||||
data int
|
||||
loop int
|
||||
subBranch int
|
||||
count count
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue