2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
|
# File 'lib/puppet/pops/model/ast.rb', line 2184
def self.create(locator, offset, length, name, type_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::QRefDefinition[name]', attrs['name'].type, name)
ta.assert_instance_of('Puppet::AST::TypeAlias[type_expr]', attrs['type_expr'].type, type_expr)
new(locator, offset, length, name, type_expr)
end
|