public override void Visit(EffectBlock effectBlock) { HasMixin = true; // Create a context associated with ShaderBlock currentContext = new ShaderBlockContext(); effectBlock.SetTag(BlockContextTag, currentContext); foreach (Statement statement in effectBlock.Body.Statements) { VisitDynamic(statement); } currentContext = null; }
private void Visit(ShaderBlock shaderBlock) { HasMixin = true; // Create a context associated with ShaderBlock currentContext = new ShaderBlockContext(); shaderBlock.SetTag(BlockContextTag, currentContext); foreach (Statement statement in shaderBlock.Body.Statements) { VisitDynamic(statement); } currentContext = null; }