Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
struct
Ast::Variant
Inherits
IrNode
<
Struct
<
Value
<
Object
Constructors
new
(location :
Location
, name : ::
String
, fields : ::
Array
(::
Tuple
(::
String
,
Type
)) | ::
Nil
= nil)
Source
Instance methods
fields
Source
fields=
(fields : ::
Array
(::
Tuple
(::
String
,
Type
)) | ::
Nil
)
Source
location
Source
location=
(location :
Location
)
Source
name
Source
name=
(name : ::
String
)
Source
to_s
(io :
IO
)
Same as
#inspect(io)
.
Source