lang: Rename prog struct field to body

This is more consistent and avoids the future prog.prog stuttering.
This commit is contained in:
James Shubin
2021-10-20 15:59:41 -04:00
parent 2eb3b541f4
commit 09812a7bfc
5 changed files with 101 additions and 101 deletions

View File

@@ -46,7 +46,7 @@ func TestInterpolate0(t *testing.T) {
{
ast := &StmtProg{
Prog: []interfaces.Stmt{},
Body: []interfaces.Stmt{},
}
testCases = append(testCases, test{ // 0
"nil",
@@ -57,7 +57,7 @@ func TestInterpolate0(t *testing.T) {
}
{
ast := &StmtProg{
Prog: []interfaces.Stmt{
Body: []interfaces.Stmt{
&StmtRes{
Kind: "test",
Name: &ExprStr{
@@ -101,7 +101,7 @@ func TestInterpolate0(t *testing.T) {
},
}
ast := &StmtProg{
Prog: []interfaces.Stmt{
Body: []interfaces.Stmt{
&StmtRes{
Kind: "test",
Name: &ExprStr{
@@ -130,7 +130,7 @@ func TestInterpolate0(t *testing.T) {
}
{
ast := &StmtProg{
Prog: []interfaces.Stmt{
Body: []interfaces.Stmt{
&StmtRes{
Kind: "test",
Name: &ExprStr{
@@ -160,7 +160,7 @@ func TestInterpolate0(t *testing.T) {
}
{
ast := &StmtProg{
Prog: []interfaces.Stmt{
Body: []interfaces.Stmt{
&StmtRes{
Kind: "test",
Name: &ExprStr{
@@ -297,7 +297,7 @@ func TestInterpolateBasicStmt(t *testing.T) {
//}
{
ast := &StmtProg{
Prog: []interfaces.Stmt{
Body: []interfaces.Stmt{
&StmtRes{
Kind: "test",
Name: &ExprStr{
@@ -315,7 +315,7 @@ func TestInterpolateBasicStmt(t *testing.T) {
},
}
exp := &StmtProg{
Prog: []interfaces.Stmt{
Body: []interfaces.Stmt{
&StmtRes{
Kind: "test",
Name: &ExprStr{
@@ -341,7 +341,7 @@ func TestInterpolateBasicStmt(t *testing.T) {
}
{
ast := &StmtProg{
Prog: []interfaces.Stmt{
Body: []interfaces.Stmt{
&StmtRes{
Kind: "test",
Name: &ExprStr{
@@ -373,7 +373,7 @@ func TestInterpolateBasicStmt(t *testing.T) {
},
}
exp := &StmtProg{
Prog: []interfaces.Stmt{
Body: []interfaces.Stmt{
&StmtRes{
Kind: "test",
Name: resName,
@@ -397,7 +397,7 @@ func TestInterpolateBasicStmt(t *testing.T) {
}
{
ast := &StmtProg{
Prog: []interfaces.Stmt{
Body: []interfaces.Stmt{
&StmtRes{
Kind: "test",
Name: &ExprStr{
@@ -430,7 +430,7 @@ func TestInterpolateBasicStmt(t *testing.T) {
},
}
exp := &StmtProg{
Prog: []interfaces.Stmt{
Body: []interfaces.Stmt{
&StmtRes{
Kind: "test",
Name: resName,