Class: Dhallish::Ast::GetContext

Inherits:
Object
  • Object
show all
Defined in:
lib/ast.rb

Instance Method Summary collapse

Constructor Details

#initializeGetContext

Returns a new instance of GetContext.



825
# File 'lib/ast.rb', line 825

def initialize() @typectx = nil end

Instance Method Details

#compute_type(ctx) ⇒ Object



827
828
829
830
# File 'lib/ast.rb', line 827

def compute_type(ctx)
	@typectx = ctx
	Types::Record.new({})
end

#evaluate(ctx) ⇒ Object



832
# File 'lib/ast.rb', line 832

def evaluate(ctx) { "<#TYPES#>" => @typectx, "<#VALS#>" => ctx } end