class ADSL::Parser::ASTDereference
Public Instance Methods
objset_has_side_effects?()
click to toggle source
# File lib/adsl/parser/ast_nodes.rb, line 1121 def objset_has_side_effects? @objset.nil? ? false : @objset.objset_has_side_effects? end
to_adsl()
click to toggle source
# File lib/adsl/parser/ast_nodes.rb, line 1133 def to_adsl "#{ @objset.to_adsl }.#{ rel_name.text }" end
typecheck_and_resolve(context)
click to toggle source
# File lib/adsl/parser/ast_nodes.rb, line 1125 def typecheck_and_resolve(context) objset = @objset.typecheck_and_resolve context klass = objset.type raise ADSLError, 'Empty objset dereference' if klass.nil? relation = context.find_relation objset.type, @rel_name.text, @rel_name.lineno return ADSL::DS::DSDereference.new :objset => objset, :relation => relation end