1 //
2 // Copyright (c) 2002-2012 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 // UnfoldShortCircuitToIf is an AST traverser to convert short-circuiting operators to if-else
7 // statements.
8 // The results are assigned to s# temporaries, which are used by the main translator instead of
9 // the original expression.
10 //
11 
12 #ifndef COMPILER_TRANSLATOR_UNFOLDSHORTCIRCUIT_H_
13 #define COMPILER_TRANSLATOR_UNFOLDSHORTCIRCUIT_H_
14 
15 namespace sh
16 {
17 
18 class TIntermNode;
19 class TSymbolTable;
20 
21 void UnfoldShortCircuitToIf(TIntermNode *root, TSymbolTable *symbolTable);
22 
23 }  // namespace sh
24 
25 #endif  // COMPILER_TRANSLATOR_UNFOLDSHORTCIRCUIT_H_
26