summaryrefslogtreecommitdiffstats
path: root/gfx/angle/src/compiler/translator/ValidateSwitch.h
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/angle/src/compiler/translator/ValidateSwitch.h')
-rwxr-xr-xgfx/angle/src/compiler/translator/ValidateSwitch.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/gfx/angle/src/compiler/translator/ValidateSwitch.h b/gfx/angle/src/compiler/translator/ValidateSwitch.h
index feffbc03c..ddbefc561 100755
--- a/gfx/angle/src/compiler/translator/ValidateSwitch.h
+++ b/gfx/angle/src/compiler/translator/ValidateSwitch.h
@@ -9,8 +9,6 @@
#include "compiler/translator/IntermNode.h"
-namespace sh
-{
class TParseContext;
class ValidateSwitch : public TIntermTraverser
@@ -18,17 +16,14 @@ class ValidateSwitch : public TIntermTraverser
public:
// Check for errors and output messages any remaining errors on the context.
// Returns true if there are no errors.
- static bool validate(TBasicType switchType,
- TParseContext *context,
- TIntermBlock *statementList,
- const TSourceLoc &loc);
+ static bool validate(TBasicType switchType, TParseContext *context,
+ TIntermAggregate *statementList, const TSourceLoc &loc);
void visitSymbol(TIntermSymbol *) override;
void visitConstantUnion(TIntermConstantUnion *) override;
bool visitBinary(Visit, TIntermBinary *) override;
bool visitUnary(Visit, TIntermUnary *) override;
- bool visitTernary(Visit, TIntermTernary *) override;
- bool visitIfElse(Visit visit, TIntermIfElse *) override;
+ bool visitSelection(Visit visit, TIntermSelection *) override;
bool visitSwitch(Visit, TIntermSwitch *) override;
bool visitCase(Visit, TIntermCase *node) override;
bool visitAggregate(Visit, TIntermAggregate *) override;
@@ -54,6 +49,4 @@ class ValidateSwitch : public TIntermTraverser
bool mDuplicateCases;
};
-} // namespace sh
-
#endif // COMPILER_TRANSLATOR_VALIDATESWITCH_H_