struct

Ast::Extend

Inherits Ast::HasTypeParams < Ast::TopLevelItem < IrNode < Struct < Value < Object

Constructors

new(location : Location, type_params : Slice(TypeParameter) | ::Nil, type : Type, traits : ::Array(Type) = [] of Type)
Source
new(location : Location, type : Type, *, type_params : Slice(TypeParameter) | ::Nil = nil, traits : ::Array(Type) = [] of Type)
Source

Instance methods

name
Source
to_s(io : IO)

Same as #inspect(io).

Source
traits
Source
traits=(traits : ::Array(Type))
Source
type
Source
type=(type : Type)
Source