Class: Idl::DontCareLvalueAst
- Includes:
- Rvalue
- Defined in:
- lib/idl/ast.rb
Instance Method Summary collapse
-
#initialize(input, interval) ⇒ DontCareLvalueAst
constructor
A new instance of DontCareLvalueAst.
- #to_idl ⇒ Object
-
#type(_symtab) ⇒ Type
Return the type of this node.
- #type_check(_symtab) ⇒ Object
-
#value(_symtab, _cfg_arch) ⇒ Integer, Boolean
Return the compile-time-known value of the node.
-
#values(symtab) ⇒ Array<Integer>, ...
included
from Rvalue
Return a complete list of possible compile-time-known values of the node, or raise a ValueError if the full list cannot be determined.
Constructor Details
#initialize(input, interval) ⇒ DontCareLvalueAst
Returns a new instance of DontCareLvalueAst.
3892 |
# File 'lib/idl/ast.rb', line 3892 def initialize(input, interval) = super(input, interval, EMPTY_ARRAY) |
Instance Method Details
#to_idl ⇒ Object
3907 |
# File 'lib/idl/ast.rb', line 3907 def to_idl = "-" |
#type(_symtab) ⇒ Type
Return the type of this node
3900 3901 3902 |
# File 'lib/idl/ast.rb', line 3900 def type(_symtab) Type.new(:dontcare) end |
#type_check(_symtab) ⇒ Object
3895 3896 3897 |
# File 'lib/idl/ast.rb', line 3895 def type_check(_symtab) # nothing to do! end |
#value(_symtab, _cfg_arch) ⇒ Integer, Boolean
Return the compile-time-known value of the node
3905 |
# File 'lib/idl/ast.rb', line 3905 def value(_symtab, _cfg_arch) = internal_error "Why are you calling value for an lval?" |
#values(symtab) ⇒ Array<Integer>, ... Originally defined in module Rvalue
Return a complete list of possible compile-time-known values of the node, or raise a ValueError if the full list cannot be determined
For most AstNodes, this will just be a single-entry array