Method: Puppet::Pops::Model::MatchExpression.create

Defined in:
lib/puppet/pops/model/ast.rb

.create(locator, offset, length, left_expr, right_expr, operator) ⇒ Object



796
797
798
799
800
801
802
803
804
805
806
# File 'lib/puppet/pops/model/ast.rb', line 796

def self.create(locator, offset, length, left_expr, right_expr, operator)
  ta = Types::TypeAsserter
  attrs = _pcore_type.attributes(true)
  ta.assert_instance_of('Puppet::AST::Positioned[locator]', attrs['locator'].type, locator)
  ta.assert_instance_of('Puppet::AST::Positioned[offset]', attrs['offset'].type, offset)
  ta.assert_instance_of('Puppet::AST::Positioned[length]', attrs['length'].type, length)
  ta.assert_instance_of('Puppet::AST::BinaryExpression[left_expr]', attrs['left_expr'].type, left_expr)
  ta.assert_instance_of('Puppet::AST::BinaryExpression[right_expr]', attrs['right_expr'].type, right_expr)
  ta.assert_instance_of('Puppet::AST::MatchExpression[operator]', attrs['operator'].type, operator)
  new(locator, offset, length, left_expr, right_expr, operator)
end