627
628
629
630
631
632
633
634
635
636
|
# File 'lib/puppet/pops/model/ast.rb', line 627
def self.create(locator, offset, length, left_expr, keys = _pcore_type['keys'].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::AccessExpression[left_expr]', attrs['left_expr'].type, left_expr)
ta.assert_instance_of('Puppet::AST::AccessExpression[keys]', attrs['keys'].type, keys)
new(locator, offset, length, left_expr, keys)
end
|