mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 18:53:35 +00:00
.github
actions
api
assets
charts
cmd
deploy
docs
e2e
examples
internal
scripts
tools
troubleshooting
vendor
github.com
IBM
armon
aws
aws-sdk-go
aws
internal
context
ini
ast.go
comma_token.go
comment_token.go
doc.go
empty_token.go
expression.go
fuzz.go
ini.go
ini_lexer.go
ini_parser.go
literal_tokens.go
newline_token.go
number_helper.go
op_tokens.go
parse_error.go
parse_stack.go
sep_tokens.go
skipper.go
statement.go
value_util.go
visitor.go
walker.go
ws_token.go
sdkio
sdkmath
sdkrand
sdkuri
shareddefaults
strings
sync
private
service
LICENSE.txt
NOTICE.txt
beorn7
bits-and-blooms
blang
cenkalti
ceph
cespare
container-storage-interface
csi-addons
cyphar
davecgh
docker
evanphx
fatih
felixge
fsnotify
ghodss
go-logr
gogo
golang
google
googleapis
grpc-ecosystem
hashicorp
imdario
inconshreveable
jmespath
json-iterator
kubernetes-csi
libopenstorage
mattn
matttproud
mitchellh
moby
modern-go
nxadm
oklog
onsi
opencontainers
openshift
pborman
pierrec
pkg
pmezard
prometheus
ryanuber
spf13
stretchr
go.opentelemetry.io
go.uber.org
golang.org
gomodules.xyz
google.golang.org
gopkg.in
k8s.io
sigs.k8s.io
modules.txt
.commitlintrc.yml
.gitignore
.mergify.yml
.pre-commit-config.yaml
LICENSE
Makefile
README.md
build.env
deploy.sh
go.mod
go.sum
updated kubernetes packages to latest release. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
26 lines
503 B
Go
26 lines
503 B
Go
package ini
|
|
|
|
// Walk will traverse the AST using the v, the Visitor.
|
|
func Walk(tree []AST, v Visitor) error {
|
|
for _, node := range tree {
|
|
switch node.Kind {
|
|
case ASTKindExpr,
|
|
ASTKindExprStatement:
|
|
|
|
if err := v.VisitExpr(node); err != nil {
|
|
return err
|
|
}
|
|
case ASTKindStatement,
|
|
ASTKindCompletedSectionStatement,
|
|
ASTKindNestedSectionStatement,
|
|
ASTKindCompletedNestedSectionStatement:
|
|
|
|
if err := v.VisitStatement(node); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|