class CrShader::ClassLoweringPass::CallSiteRewriter

Overview

Scope-aware rewriter converting ClassName.new(...), ClassName.static(...), and instance.method(...) across all shader stages and helper functions.

Defined in:

crshader/parser/class_lowering.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(program : ShaderProgram, sym : SymbolTable, custom_constructors : Set(String), skip_custom_ctor_for : String | Nil = nil) #

Instance Method Detail

def transform(node : Crystal::TypeDeclaration) : Crystal::ASTNode #

def transform(node : Crystal::Assign) : Crystal::ASTNode #

def transform(node : Crystal::If) : Crystal::ASTNode #

def transform(node : Crystal::Call) : Crystal::ASTNode #