Method: Puppet::Pops::Model::LiteralList.create

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

.create(locator, offset, length, values = _pcore_type['values'].value) ⇒ Object



978
979
980
981
982
983
984
985
986
# File 'lib/puppet/pops/model/ast.rb', line 978

def self.create(locator, offset, length, values = _pcore_type['values'].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::LiteralList[values]', attrs['values'].type, values)
  new(locator, offset, length, values)
end