3584
3585
3586
3587
3588
3589
3590
3591
3592
|
# File 'lib/puppet/pops/model/ast.rb', line 3584
def self.create(locator, offset, length, segments = _pcore_type['segments'].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::ConcatenatedString[segments]', attrs['segments'].type, segments)
new(locator, offset, length, segments)
end
|