packageini// Walk will traverse the AST using the v, the Visitor.funcWalk(tree[]AST,vVisitor)error{for_,node:=rangetree{switchnode.Kind{caseASTKindExpr,ASTKindExprStatement:iferr:=v.VisitExpr(node);err!=nil{returnerr}caseASTKindStatement,ASTKindCompletedSectionStatement,ASTKindNestedSectionStatement,ASTKindCompletedNestedSectionStatement:iferr:=v.VisitStatement(node);err!=nil{returnerr}}}returnnil}