Olli Etuaho | 09b04a2 | 2016-12-15 13:30:26 +0000 | [diff] [blame^] | 1 | // |
| 2 | // Copyright (c) 2015 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 | // FindSymbolNode.h: |
| 7 | // Utility for finding a symbol node inside an AST tree. |
| 8 | |
| 9 | #ifndef COMPILER_TRANSLATOR_FIND_SYMBOL_H_ |
| 10 | #define COMPILER_TRANSLATOR_FIND_SYMBOL_H_ |
| 11 | |
| 12 | #include "compiler/translator/BaseTypes.h" |
| 13 | #include "compiler/translator/Common.h" |
| 14 | |
| 15 | namespace sh |
| 16 | { |
| 17 | |
| 18 | class TIntermNode; |
| 19 | class TIntermSymbol; |
| 20 | |
| 21 | const TIntermSymbol *FindSymbolNode(TIntermNode *root, |
| 22 | const TString &symbolName, |
| 23 | TBasicType basicType); |
| 24 | |
| 25 | } // namespace sh |
| 26 | |
| 27 | #endif // COMPILER_TRANSLATOR_FIND_SYMBOL_H_ |