class CrShader::ClassDecl

Defined in:

crshader/ast/shader_ast.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, fields : Array(StructField) = [] of StructField, methods : Hash(String, ClassMethodDecl) = {} of String => ClassMethodDecl, initializer : Crystal::Def | Nil = nil, is_imported : Bool = false) #

Instance Method Detail

def fields : Array(StructField) #

def fields=(fields : Array(StructField)) #

def initializer : Crystal::Def | Nil #

def initializer=(initializer : Crystal::Def | Nil) #

def is_imported : Bool #

def is_imported=(is_imported : Bool) #

def methods : Hash(String, ClassMethodDecl) #

def methods=(methods : Hash(String, ClassMethodDecl)) #

def name : String #

def name=(name : String) #