2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
|
# File 'lib/puppet/pops/model/ast.rb', line 2724
def self.create(locator, offset, length, parameters = _pcore_type['parameters'].value, body = nil, return_type = nil)
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::LambdaExpression[parameters]', attrs['parameters'].type, parameters)
ta.assert_instance_of('Puppet::AST::LambdaExpression[body]', attrs['body'].type, body)
ta.assert_instance_of('Puppet::AST::LambdaExpression[return_type]', attrs['return_type'].type, return_type)
new(locator, offset, length, parameters, body, return_type)
end
|