ShaderTools.Hlsl.Binding.BoundTreeWalker.VisitIfStatement C# (CSharp) Method

VisitIfStatement() protected method

protected VisitIfStatement ( BoundIfStatement node ) : void
node ShaderTools.Hlsl.Binding.BoundNodes.BoundIfStatement
return void
        protected virtual void VisitIfStatement(BoundIfStatement node)
        {
            VisitExpression(node.Condition);

            VisitStatement(node.Consequence);

            if (node.AlternativeOpt != null)
                VisitStatement(node.AlternativeOpt);
        }