@staticmethod<EOL><INDENT>def _populate_instance_with_positional_arguments(metamodel, stmt):<DEDENT>
if stmt.kind.upper() not in metamodel.metaclasses:<EOL><INDENT>names = ['<STR_LIT>' % idx for idx in range(len(stmt.values))]<EOL>ModelLoader._populate_matching_class(metamodel, stmt.kind, <EOL>names, stmt.values)<EOL><DEDENT>metaclass = metamodel.find_metaclass(stmt.kind)<EOL>if len(metaclass.attributes) != len(stmt.values):<EOL><INDENT>logger.warn('<STR_LIT>' % (stmt.filename, stmt.lineno))<EOL><DEDENT>inst = metamodel.new(stmt.kind)<EOL>for attr, value in zip(metaclass.attributes, stmt.values):<EOL><INDENT>name, ty = attr<EOL>py_value = deserialize_value(ty, value)<EOL>if py_value is None:<EOL><INDENT>raise ParsingException("<STR_LIT>""<STR_LIT>" % (stmt.filename,<EOL>stmt.lineno,<EOL>value,<EOL>ty))<EOL><DEDENT>inst.__dict__[name] = py_value<EOL><DEDENT>return inst<EOL>
Populate a *metamodel* with an instance previously encountered from 
input that was defined using positional arguments.