示例#1
0
    def create_assigns(self, parent, cur, eq_loc):
        """
Create assignment with multiple returns

| Structure:
|   Assigns
|   | <list of return vars>
|   | Get|Var

Args:
    parent (Block): Reference to parent node
    cur (int): position where assignments is identified
    eq_loc (int): position of assignment equal sign

Returns:
    int: position where assignments ends

See also:
    :py:func:`matlab2cpp.tree.assign.multi`
    """
        assert isinstance(parent, mc.collection.Block)
        return assign.multi(self, parent, cur, eq_loc)
示例#2
0
    def create_assigns(self, parent, cur, eq_loc):
        """
Create assignment with multiple returns

| Structure:
|   Assigns
|   | <list of return vars>
|   | Get|Var

Args:
    parent (Block): Reference to parent node
    cur (int): position where assignments is identified
    eq_loc (int): position of assignment equal sign

Returns:
    int: position where assignments ends

See also:
    :py:func:`matlab2cpp.tree.assign.multi`
    """
        assert isinstance(parent, mc.collection.Block)
        return assign.multi(self, parent, cur, eq_loc)