Class: Jade::Frontend::TypeChecking::Placeholder

Inherits:
Data
  • Object
show all
Defined in:
lib/jade/frontend/type_checking/placeholder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#constraintsObject (readonly)

Returns the value of attribute constraints

Returns:

  • (Object)

    the current value of constraints



4
5
6
# File 'lib/jade/frontend/type_checking/placeholder.rb', line 4

def constraints
  @constraints
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



4
5
6
# File 'lib/jade/frontend/type_checking/placeholder.rb', line 4

def type
  @type
end

Instance Method Details

#free_varsObject



5
6
7
# File 'lib/jade/frontend/type_checking/placeholder.rb', line 5

def free_vars
  type.unbound_vars + constraints.flat_map(&:unbound_vars)
end