func NewWhileStat(whileTok, endTok *token.Token, cond ExpNode, body BlockStat) WhileStat {
	return WhileStat{
		Location: LocFromTokens(whileTok, endTok),
		CondStat: CondStat{Cond: cond, Body: body},
	}
}
NewWhileStat returns a WhileStat instance representing the statement "while
<cond> do <body> done".
package ast
import (
	"github.com/arnodel/golua/token"
)
type WhileStat struct {
	Location
	CondStat
}
var _ Stat = WhileStat{}