Commit f678c54d authored by Etienne Renault's avatar Etienne Renault

desugararray: rename pass

* Rename transform/arraytreatment.go
to transform/desugararray.go: Here.
parent 7180a4d1
......@@ -137,7 +137,7 @@ func compileTo(path string, src []byte, file *os.File,
&transform.Channel{
Goroutines: goroutines,
},
&transform.ArrayTreat{},
&transform.DesugarArray{},
&transform.NormalizeDeclarations{},
&transform.ElseFull{},
&transform.ConditionnalCall{},
......
......@@ -25,11 +25,11 @@ import (
)
/*
The ArrayTreatment's purpose is to integrate array. This is done
The DesugarArrayment's purpose is to integrate array. This is done
by simply registering array to meta
*/
type ArrayTreat struct {
type DesugarArray struct {
currentFuncName string
currentFunc *ast.FuncDecl
allvalues []*ast.AssignStmt
......@@ -37,7 +37,7 @@ type ArrayTreat struct {
}
//Pre traversal applies the transformation.
func (t *ArrayTreat) Pre(meta *Meta, v *Visitor) bool {
func (t *DesugarArray) Pre(meta *Meta, v *Visitor) bool {
c := v.Cursor()
switch node := c.Node().(type) {
case *ast.FuncDecl:
......@@ -167,7 +167,7 @@ func (t *ArrayTreat) Pre(meta *Meta, v *Visitor) bool {
}
// Post traversal applies the transformation.
func (t *ArrayTreat) Post(meta *Meta, v *Visitor) bool {
func (t *DesugarArray) Post(meta *Meta, v *Visitor) bool {
c := v.Cursor()
switch node := c.Node().(type) {
case *ast.FuncDecl:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment