Fix entity string conversion
This commit is contained in:
parent
359441d5fa
commit
ab262207db
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue