Method: Puppet::Pops::Model::QRefDefinition.create

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

.create(locator, offset, length, name) ⇒ Object



2125
2126
2127
2128
2129
2130
2131
2132
2133
# File 'lib/puppet/pops/model/ast.rb', line 2125

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