style: no "this" or "self" as receiver
This commit is contained in:
@@ -12,12 +12,12 @@ type Abstraction struct {
|
||||
Body Expression
|
||||
}
|
||||
|
||||
func (this *Abstraction) Copy() Expression {
|
||||
return NewAbstraction(this.Parameter, this.Body.Copy())
|
||||
func (a *Abstraction) Copy() Expression {
|
||||
return NewAbstraction(a.Parameter, a.Body.Copy())
|
||||
}
|
||||
|
||||
func (this *Abstraction) Accept(v Visitor) {
|
||||
v.VisitAbstraction(this)
|
||||
func (a *Abstraction) Accept(v Visitor) {
|
||||
v.VisitAbstraction(a)
|
||||
}
|
||||
|
||||
func NewAbstraction(parameter string, body Expression) *Abstraction {
|
||||
@@ -31,12 +31,12 @@ type Application struct {
|
||||
Argument Expression
|
||||
}
|
||||
|
||||
func (this *Application) Copy() Expression {
|
||||
return NewApplication(this.Abstraction.Copy(), this.Argument.Copy())
|
||||
func (a *Application) Copy() Expression {
|
||||
return NewApplication(a.Abstraction.Copy(), a.Argument.Copy())
|
||||
}
|
||||
|
||||
func (this *Application) Accept(v Visitor) {
|
||||
v.VisitApplication(this)
|
||||
func (a *Application) Accept(v Visitor) {
|
||||
v.VisitApplication(a)
|
||||
}
|
||||
|
||||
func NewApplication(function Expression, argument Expression) *Application {
|
||||
@@ -49,12 +49,12 @@ type Variable struct {
|
||||
Value string
|
||||
}
|
||||
|
||||
func (this *Variable) Copy() Expression {
|
||||
return NewVariable(this.Value)
|
||||
func (v *Variable) Copy() Expression {
|
||||
return NewVariable(v.Value)
|
||||
}
|
||||
|
||||
func (this *Variable) Accept(v Visitor) {
|
||||
v.VisitVariable(this)
|
||||
func (v *Variable) Accept(visitor Visitor) {
|
||||
visitor.VisitVariable(v)
|
||||
}
|
||||
|
||||
func NewVariable(name string) *Variable {
|
||||
|
||||
Reference in New Issue
Block a user