this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

cue/ast/astutil: assume LetClause.Expr and Alias.Expr are non-nil

ast.Walk and astutil.Apply make this assumption,
so astutil.Resolve can as well.

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I4a13935dca332fb3af000c8ee1f6126b93e138b6
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1225194
Reviewed-by: Matthew Sackman <matthew@cue.works>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>

+2 -6
+2 -6
cue/ast/astutil/resolve.go
··· 469 469 saved := s.index[name] 470 470 delete(s.index, name) // The same name may still appear in another scope 471 471 472 - if x.Expr != nil { 473 - ast.Walk(x.Expr, s.Before, nil) 474 - } 472 + ast.Walk(x.Expr, s.Before, nil) 475 473 s.index[name] = saved 476 474 return false 477 475 ··· 481 479 saved := s.index[name] 482 480 delete(s.index, name) // The same name may still appear in another scope 483 481 484 - if x.Expr != nil { 485 - ast.Walk(x.Expr, s.Before, nil) 486 - } 482 + ast.Walk(x.Expr, s.Before, nil) 487 483 s.index[name] = saved 488 484 return false 489 485