Class: Rubycc::Front::AST::InitAttributes

Inherits:
Data
  • Object
show all
Defined in:
lib/rubycc/front/ast.rb

Overview

What a function's __attribute__((constructor)) / __attribute__((destructor)) asked for. Each field is nil when that attribute never appeared, or the priority it carried — the run-order number, with the parser's DEFAULT_INIT_PRIORITY standing for the unnumbered spelling. A function may be both, as "attribute((constructor,destructor))" is.

Instance Attribute Summary collapse

Instance Attribute Details

#constructorObject (readonly)

Returns the value of attribute constructor

Returns:

  • (Object)

    the current value of constructor



509
510
511
# File 'lib/rubycc/front/ast.rb', line 509

def constructor
  @constructor
end

#destructorObject (readonly)

Returns the value of attribute destructor

Returns:

  • (Object)

    the current value of destructor



509
510
511
# File 'lib/rubycc/front/ast.rb', line 509

def destructor
  @destructor
end