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, _archdef) ⇒ 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.
3869 |
# File 'lib/idl/ast.rb', line 3869 def initialize(input, interval) = super(input, interval, EMPTY_ARRAY) |
Instance Method Details
#to_idl ⇒ Object
3884 |
# File 'lib/idl/ast.rb', line 3884 def to_idl = "-" |
#type(_symtab) ⇒ Type
Return the type of this node
3877 3878 3879 |
# File 'lib/idl/ast.rb', line 3877 def type(_symtab) Type.new(:dontcare) end |
#type_check(_symtab) ⇒ Object
3872 3873 3874 |
# File 'lib/idl/ast.rb', line 3872 def type_check(_symtab) # nothing to do! end |
#value(_symtab, _archdef) ⇒ Integer, Boolean
Return the compile-time-known value of the node
3882 |
# File 'lib/idl/ast.rb', line 3882 def value(_symtab, _archdef) = 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