class

TLParser::Definition

Inherits Reference < Object

Constructors

new(namespace : Array(String), name : String, id : UInt32, params : Array(TLParser::Parameter), type : TLParser::Type, category : TLParser::Category, description : String = "")
Source

Class methods

parse(str : String)
Source

Instance methods

==(other)

Returns false (other can only be a Value here).

Source
category

The category to which this definition belongs

Source
category=(category : Category)

The category to which this definition belongs

Source
description

A description for this definition

Source
description=(description : String)

A description for this definition

Source
full_name

Convenience function to format both the namespace and name back into a single string.

Source
id

The numeric identifier of this definition.

If a definition has an identifier, it overrides this value. Otherwise, the identifier is inferred from the definition.

Source
id=(id : UInt32)

The numeric identifier of this definition.

If a definition has an identifier, it overrides this value. Otherwise, the identifier is inferred from the definition.

Source
name

The name of this definition. Also known as "predicate" or "method".

Source
name=(name : String)

The name of this definition. Also known as "predicate" or "method".

Source
namespace

The namespace components of the definition. This list will be empty if the name of the definition belongs to the global namespace.

Source
namespace=(namespace : Array(String))

The namespace components of the definition. This list will be empty if the name of the definition belongs to the global namespace.

Source
namespace_str(joiner = ".", proc : String -> String = ->(str : String) do str end)
Source
params

A possibly-empty list of parameters this definition has.

Source
params=(params : Array(Parameter))

A possibly-empty list of parameters this definition has.

Source
to_s(io)
Source
type

The type to which this definition belongs.

Source
type=(type : Type)

The type to which this definition belongs.

Source