summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/angle/src/compiler/translator/FindSymbolNode.h
blob: 08dfb9a22240caa6705b5a972c5d263facd50242 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//
// Copyright (c) 2015 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// FindSymbolNode.h:
//     Utility for finding a symbol node inside an AST tree.

#ifndef COMPILER_TRANSLATOR_FIND_SYMBOL_H_
#define COMPILER_TRANSLATOR_FIND_SYMBOL_H_

#include "compiler/translator/BaseTypes.h"
#include "compiler/translator/Common.h"

namespace sh
{

class TIntermNode;
class TIntermSymbol;

const TIntermSymbol *FindSymbolNode(TIntermNode *root,
                                    const TString &symbolName,
                                    TBasicType basicType);

}  // namespace sh

#endif  // COMPILER_TRANSLATOR_FIND_SYMBOL_H_