chromium/third_party/angle/src/compiler/translator/ValidateSwitch.cpp

//
// Copyright 2002 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.
//

#include "compiler/translator/ValidateSwitch.h"

#include "compiler/translator/Diagnostics.h"
#include "compiler/translator/tree_util/IntermTraverse.h"

namespace sh
{

namespace
{

const int kMaxAllowedTraversalDepth =;

class ValidateSwitch : public TIntermTraverser
{};

bool ValidateSwitch::validate(TBasicType switchType,
                              TDiagnostics *diagnostics,
                              TIntermBlock *statementList,
                              const TSourceLoc &loc)
{}

ValidateSwitch::ValidateSwitch(TBasicType switchType, TDiagnostics *diagnostics)
    :{}

void ValidateSwitch::visitSymbol(TIntermSymbol *)
{}

void ValidateSwitch::visitConstantUnion(TIntermConstantUnion *)
{}

bool ValidateSwitch::visitDeclaration(Visit, TIntermDeclaration *)
{}

bool ValidateSwitch::visitBlock(Visit visit, TIntermBlock *)
{}

bool ValidateSwitch::visitBinary(Visit, TIntermBinary *)
{}

bool ValidateSwitch::visitUnary(Visit, TIntermUnary *)
{}

bool ValidateSwitch::visitTernary(Visit, TIntermTernary *)
{}

bool ValidateSwitch::visitSwizzle(Visit, TIntermSwizzle *)
{}

bool ValidateSwitch::visitIfElse(Visit visit, TIntermIfElse *)
{}

bool ValidateSwitch::visitSwitch(Visit, TIntermSwitch *)
{}

bool ValidateSwitch::visitCase(Visit, TIntermCase *node)
{}

bool ValidateSwitch::visitAggregate(Visit visit, TIntermAggregate *)
{}

bool ValidateSwitch::visitLoop(Visit visit, TIntermLoop *)
{}

bool ValidateSwitch::visitBranch(Visit, TIntermBranch *)
{}

bool ValidateSwitch::validateInternal(const TSourceLoc &loc)
{}

}  // anonymous namespace

bool ValidateSwitchStatementList(TBasicType switchType,
                                 TDiagnostics *diagnostics,
                                 TIntermBlock *statementList,
                                 const TSourceLoc &loc)
{}

}  // namespace sh