Skip to content

Commit

Permalink
Merge pull request #159 from quasilyte/quasilyte/fix/walk_exhaustiveness
Browse files Browse the repository at this point in the history
ast: make Walk() type switch exhaustive
  • Loading branch information
goccy authored Sep 10, 2020
2 parents cd8ac38 + e73153f commit 890f9ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ast/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -1430,6 +1430,7 @@ func Walk(v Visitor, node Node) {
}

switch n := node.(type) {
case *CommentNode:
case *NullNode:
case *IntegerNode:
case *FloatNode:
Expand All @@ -1438,6 +1439,10 @@ func Walk(v Visitor, node Node) {
case *BoolNode:
case *InfinityNode:
case *NanNode:
case *LiteralNode:
Walk(v, n.Value)
case *DirectiveNode:
Walk(v, n.Value)
case *TagNode:
Walk(v, n.Value)
case *DocumentNode:
Expand Down

0 comments on commit 890f9ae

Please sign in to comment.