Method: Puppet::Pops::Model::SelectorEntry.create

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

.create(locator, offset, length, matching_expr, value_expr) ⇒ Object



4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
# File 'lib/puppet/pops/model/ast.rb', line 4386

def self.create(locator, offset, length, matching_expr, value_expr)
  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::SelectorEntry[matching_expr]', attrs['matching_expr'].type, matching_expr)
  ta.assert_instance_of('Puppet::AST::SelectorEntry[value_expr]', attrs['value_expr'].type, value_expr)
  new(locator, offset, length, matching_expr, value_expr)
end