2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
|
# File 'lib/puppet/pops/model/ast.rb', line 2908
def self.create(locator, offset, length, test, then_expr = nil, else_expr = 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::IfExpression[test]', attrs['test'].type, test)
ta.assert_instance_of('Puppet::AST::IfExpression[then_expr]', attrs['then_expr'].type, then_expr)
ta.assert_instance_of('Puppet::AST::IfExpression[else_expr]', attrs['else_expr'].type, else_expr)
new(locator, offset, length, test, then_expr, else_expr)
end
|