Class: Rubex::SymbolTable::Scope::StructOrUnion
- Inherits:
-
Object
- Object
- Rubex::SymbolTable::Scope::StructOrUnion
- Includes:
- Rubex::SymbolTable::Scope
- Defined in:
- lib/rubex/symbol_table/scope.rb
Instance Attribute Summary
Attributes included from Rubex::SymbolTable::Scope
#arg_entries, #c_method_entries, #carray_entries, #entries, #free_temp_entries, #global_entries, #klass_name, #name, #outer_scope, #ruby_class_entries, #ruby_constant_entries, #ruby_method_entries, #ruby_obj_entries, #self_name, #sue_entries, #temp_entries, #type, #type_entries, #var_entries
Instance Method Summary collapse
-
#initialize(name, outer_scope) ⇒ StructOrUnion
constructor
FIXME: Change scope structure to identify struct scopes by name too.
Methods included from Rubex::SymbolTable::Scope
#[], #add_c_method, #add_carray, #add_ruby_class, #add_ruby_method, #add_ruby_obj, #allocate_temp, #check_entry, #declare_sue, #declare_type, #declare_var, #find, #has_entry?, #release_temp
Constructor Details
#initialize(name, outer_scope) ⇒ StructOrUnion
FIXME: Change scope structure to identify struct scopes by name too.
347 348 349 350 351 |
# File 'lib/rubex/symbol_table/scope.rb', line 347 def initialize name, outer_scope super(outer_scope) @klass_name = outer_scope.klass_name @name = name end |