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 = "")
SourceClass methods
parse(str : String)
SourceInstance methods
full_name
Convenience function to format both the namespace and name back into a single string.
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.
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.
namespace
The namespace components of the definition. This list will be empty if the name of the definition belongs to the global namespace.
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.
namespace_str(joiner = ".", proc : String -> String = ->(str : String) do
str
end)
Sourceto_s(io)
Source