Ast::Trait
Inherits Ast::TypeDeclaration < Ast::HasTypeParams < Ast::TopLevelItem < IrNode < Struct < Value < Object
Constructors
new(location : Location, name : ::String, type_params : Slice(TypeParameter) | ::Nil = nil, traits : ::Array(Type) | ::Nil = nil, methods : ::Array(AbstractMethod) = [] of AbstractMethod, convention : Convention = nil)
Sourcenew(location : Location, convention : Convention, name : ::String, type_params : Slice(TypeParameter) | ::Nil = nil, traits : ::Array(Type) | ::Nil = nil, methods : ::Array(AbstractMethod) = [] of AbstractMethod)
SourceInstance methods
methods
Sourcetype_params
Source