Skip to content

class Crystal::CStructOrUnionDef
inherits Crystal::ASTNode

A c struct/union definition inside a lib declaration

Class methods

.new(name, body = nil, union = false)

View source

Methods

#==(other : self)

Returns true if this reference is the same as other. Invokes same?.

#accept_children(visitor)

View source

#body=(body : ASTNode)

View source

#clone_without_location

View source

#hash(hasher)

#name=(name : String)

View source

#resolved_type : NonGenericClassType

#resolved_type=(resolved_type : NonGenericClassType)

View source

#resolved_type? : NonGenericClassType?

#union=(union : Bool)

View source

#union? : Bool

View source