1602
1603
1604
1605
1606
1607
1608
1609
1610
|
# File 'lib/puppet/pops/model/ast.rb', line 1602
def self.create(locator, offset, length, 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::AttributesOperation[expr]', attrs['expr'].type, expr)
new(locator, offset, length, expr)
end
|