class TLParser::Type
- TLParser::Type
- Reference
- Object
Defined in:
tl_parser/tl/type.crConstructors
Class Method Summary
Instance Method Summary
-
#==(other)
Returns
false
(other can only be aValue
here). -
#bare : Bool
Whether this type is bare or boxed.
-
#bare=(bare : Bool)
Whether this type is bare or boxed.
- #find_generic_refs
-
#generic_arg : Type | Nil
The generic argument's type, if
#generic_ref
is true. -
#generic_arg=(generic_arg : Type | Nil)
The generic argument's type, if
#generic_ref
is true. -
#generic_ref : Bool
Whether the type name refers to a generic definition.
-
#generic_ref=(generic_ref : Bool)
Whether the type name refers to a generic definition.
-
#name : String
The name of the type.
-
#name=(name : String)
The name of the type.
-
#namespace : Array(String)
The namespace components of the type.
-
#namespace=(namespace : Array(String))
The namespace components of the type.
- #namespace_str(joiner = ".", proc : String -> String = ->(str : String) do str end)
- #to_s(io)
Constructor Detail
def self.new(namespace : Array(String), name : String, bare : Bool = false, generic_ref : Bool = false, generic_arg : Nil | TLParser::Type = nil)
#
Class Method Detail
Instance Method Detail
def ==(other)
#
Description copied from class Reference
Returns false
(other can only be a Value
here).
The generic argument's type, if #generic_ref
is true.