Class: Rubycc::Front::AST::Cast
- Inherits:
-
Data
- Object
- Data
- Rubycc::Front::AST::Cast
- Defined in:
- lib/rubycc/front/ast.rb
Overview
A cast "( type-name ) operand" (ISO C 6.5.4). type is the resolved
Rubycc::Type the operand is converted to and operand is the
cast-expression to its right. The generator settles which conversions
are legal (arithmetic reinterpretation, a pointer retag, discarding a
value with "(void)", a null-pointer-constant cast) and emits any code a
narrowing needs; the parser only builds the node.
Instance Attribute Summary collapse
-
#operand ⇒ Object
readonly
Returns the value of attribute operand.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Attribute Details
#operand ⇒ Object (readonly)
Returns the value of attribute operand
162 163 164 |
# File 'lib/rubycc/front/ast.rb', line 162 def operand @operand end |
#token ⇒ Object (readonly)
Returns the value of attribute token
162 163 164 |
# File 'lib/rubycc/front/ast.rb', line 162 def token @token end |
#type ⇒ Object (readonly)
Returns the value of attribute type
162 163 164 |
# File 'lib/rubycc/front/ast.rb', line 162 def type @type end |