Implemented environment type
This commit is contained in:
parent
1268344238
commit
96ac298980
15 changed files with 67 additions and 51 deletions
|
@ -33,7 +33,7 @@ func (f *Function) PeriodToRegister(node *expression.Expression, register cpu.Re
|
|||
return field.Type, nil
|
||||
}
|
||||
|
||||
constant, isConst := f.Constants[f.Package+"."+leftText+"."+rightText]
|
||||
constant, isConst := f.All.Constants[f.Package+"."+leftText+"."+rightText]
|
||||
|
||||
if isConst {
|
||||
number, err := ToNumber(constant.Token, constant.File)
|
||||
|
@ -48,7 +48,7 @@ func (f *Function) PeriodToRegister(node *expression.Expression, register cpu.Re
|
|||
}
|
||||
|
||||
uniqueName := fmt.Sprintf("%s.%s", leftText, rightText)
|
||||
function, exists := f.Functions[uniqueName]
|
||||
function, exists := f.All.Functions[uniqueName]
|
||||
|
||||
if exists {
|
||||
f.File.Imports[leftText].Used = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue