A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/google/go-jsonnet/commit/a1964b49f18919f5aaed17d3c2f6b48a35634b5c below:

support for traversing AST tree with parens and objectcomps · google/go-jsonnet@a1964b4 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+3

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+3

-1

lines changed Original file line number Diff line number Diff line change

@@ -263,7 +263,7 @@ func specialChildren(node ast.Node) []ast.Node {

263 263

case *ast.ArrayComp:

264 264

return []ast.Node{node.Body}

265 265

case *ast.ObjectComp:

266 - 266 +

return inObjectFieldsChildren(node.Fields)

267 267

case *ast.Self:

268 268

return nil

269 269

case *ast.SuperIndex:

@@ -274,6 +274,8 @@ func specialChildren(node ast.Node) []ast.Node {

274 274

return nil

275 275

case *ast.Var:

276 276

return nil

277 +

case *ast.Parens:

278 +

return nil

277 279

}

278 280

panic(fmt.Sprintf("specialChildren: Unknown node %#v", node))

279 281

}

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4