Method: Puppet::Pops::Model::KeyedEntry.create

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

.create(locator, offset, length, key, value) ⇒ Object



1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
# File 'lib/puppet/pops/model/ast.rb', line 1048

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