1 | // |
2 | // Copyright (c) 2002-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 | |
7 | #ifndef COMPILER_TRANSLATOR_VALIDATESWITCH_H_ |
8 | #define COMPILER_TRANSLATOR_VALIDATESWITCH_H_ |
9 | |
10 | #include "compiler/translator/BaseTypes.h" |
11 | #include "compiler/translator/Common.h" |
12 | |
13 | namespace sh |
14 | { |
15 | class TDiagnostics; |
16 | class TIntermBlock; |
17 | |
18 | // Check for errors and output error messages on the context. |
19 | // Returns true if there are no errors. |
20 | bool ValidateSwitchStatementList(TBasicType switchType, |
21 | TDiagnostics *diagnostics, |
22 | TIntermBlock *statementList, |
23 | const TSourceLoc &loc); |
24 | |
25 | } // namespace sh |
26 | |
27 | #endif // COMPILER_TRANSLATOR_VALIDATESWITCH_H_ |
28 | |