Cosmo::Scope
Constructors
Instance methods
as_namespace
Sourcedeclare(typedef : Token, identifier : Token, value : ValueType, mutable : Bool = false, visibility : Visibility = Visibility::Private) : ValueType
Sourcelookup(token : Token) : ValueType
Sourceparent
SourceReturns true if the variable exists and is public, otherwise false
to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO) which can be overridden for custom implementations.
Also see #inspect.
variables
Sourcevariables=(variables : Hash(String, NamedTuple(type: String, value: Cosmo::ValueType, mutable: Bool, visibility: Cosmo::AST::Visibility)))
Source