Fix entity string conversion

This commit is contained in:
Sasha Koshka 2023-10-29 14:34:21 -04:00
parent 359441d5fa
commit ab262207db
1 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ func (*Declaration) expression(){}
func (*Declaration) statement(){}
func (this *Declaration) Type () Type { return this.Ty }
func (this *Declaration) String () string {
return fmt.Sprint(this.Name, ":", this.Type)
return fmt.Sprint(this.Name, ":", this.Ty)
}
// Call calls upon the function specified by the first argument, passing the
@ -214,7 +214,7 @@ func (*ValueCast) expression(){}
func (*ValueCast) statement(){}
func (this *ValueCast) Type () Type { return this.Ty }
func (this *ValueCast) String () string {
return fmt.Sprint("[~ ", this.Type, this.Value, "]")
return fmt.Sprint("[~ ", this.Ty, this.Value, "]")
}
// Bit casting takes the raw data in memory of a certain value and re-interprets
@ -230,7 +230,7 @@ func (*BitCast) expression(){}
func (*BitCast) statement(){}
func (this *BitCast) Type () Type { return this.Ty }
func (this *BitCast) String () string {
return fmt.Sprint("[~~ ", this.Type, this.Value, "]")
return fmt.Sprint("[~~ ", this.Ty, this.Value, "]")
}
// Operations perform math, logic, or bit manipulation on values. They accept