Vala.Scope – vala Reference Manual
Packages
vala
Vala
Scope
owner
parent_scope
Scope
add
get_symbol_table
is_subscope_of
lookup
remove
_owner
_parent_scope
anonymous_members
symbol_table
Scope
Object Hierarchy:
Vala.Scope
Vala.Scope
Vala.Scope
Description:
public
class
Scope
Represents a part of the symbol tree.
Namespace:
Vala
Package:
vala
Content:
Properties:
public
unowned
Symbol
owner
{
get
;
set
; }
The symbol that owns this scope.
public
unowned
Scope
parent_scope
{
get
;
set
; }
The parent of this scope.
Creation methods:
public
Scope
(
Symbol
? owner =
null
)
Creates a new scope.
Methods:
public
void
add
(
string
? name,
Symbol
sym)
Adds the specified symbol with the specified name to the symbol table of this scope.
public
unowned
Map
<
string
,
Symbol
>
get_symbol_table
()
public
bool
is_subscope_of
(
Scope
? scope)
Returns whether the specified scope is an ancestor of this scope.
public
Symbol
?
lookup
(
string
name)
Returns the symbol stored in the symbol table with the specified name.
public
void
remove
(
string
name)
Fields:
private
unowned
Symbol
_owner
private
unowned
Scope
_parent_scope
private
List
<
Symbol
>
anonymous_members
private
Map
<
string
,
Symbol
>
symbol_table