Method: Puppet::Pops::Model::CaseExpression.create

Defined in:
lib/puppet/pops/model/ast.rb

.create(locator, offset, length, test, options = _pcore_type['options'].value) ⇒ Object



1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
# File 'lib/puppet/pops/model/ast.rb', line 1364

def self.create(locator, offset, length, test, options = _pcore_type['options'].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::CaseExpression[test]', attrs['test'].type, test)
  ta.assert_instance_of('Puppet::AST::CaseExpression[options]', attrs['options'].type, options)
  new(locator, offset, length, test, options)
end