Class: Rubycc::Front::AST::FunctionDef
- Inherits:
-
Data
- Object
- Data
- Rubycc::Front::AST::FunctionDef
- Defined in:
- lib/rubycc/front/ast.rb
Overview
A function definition. return_type is the declared Rubycc::Type
(int, char, void or a pointer). params is an array of Parameter
(each with a non-nil name) and body is an array of statement nodes.
storage records the storage-class specifier (nil/:static/:extern) for
Phase B, the generator not yet acting on it. variadic is true when the
parameter list ends in "..." (the variable part is reachable only through
va_* in Phase B; a body that ignores it compiles and runs already).
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#return_type ⇒ Object
readonly
Returns the value of attribute return_type.
-
#storage ⇒ Object
readonly
Returns the value of attribute storage.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#variadic ⇒ Object
readonly
Returns the value of attribute variadic.
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body
501 502 503 |
# File 'lib/rubycc/front/ast.rb', line 501 def body @body end |
#name ⇒ Object (readonly)
Returns the value of attribute name
501 502 503 |
# File 'lib/rubycc/front/ast.rb', line 501 def name @name end |
#params ⇒ Object (readonly)
Returns the value of attribute params
501 502 503 |
# File 'lib/rubycc/front/ast.rb', line 501 def params @params end |
#return_type ⇒ Object (readonly)
Returns the value of attribute return_type
501 502 503 |
# File 'lib/rubycc/front/ast.rb', line 501 def return_type @return_type end |
#storage ⇒ Object (readonly)
Returns the value of attribute storage
501 502 503 |
# File 'lib/rubycc/front/ast.rb', line 501 def storage @storage end |
#token ⇒ Object (readonly)
Returns the value of attribute token
501 502 503 |
# File 'lib/rubycc/front/ast.rb', line 501 def token @token end |
#variadic ⇒ Object (readonly)
Returns the value of attribute variadic
501 502 503 |
# File 'lib/rubycc/front/ast.rb', line 501 def variadic @variadic end |