Skip to content

Commit

Permalink
fix(shader-ast): allChildren() (while loop support)
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jun 24, 2019
1 parent bb424b0 commit 3a559cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shader-ast/src/ast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export const scopeChildren = (t: Term<any>) =>
export const allChildren = (t: Term<any>) =>
t.tag === "scope"
? (<Scope>t).body
: t.tag === "fn" || t.tag === "for"
: t.tag === "fn" || t.tag === "for" || t.tag == "while"
? (<Func<any>>t).scope.body
: t.tag === "if"
? (<Branch>t).f
Expand Down

0 comments on commit 3a559cf

Please sign in to comment.