parameters: (actions_dict, inputs, outputs, description, command)
docstring: Merge action into an existing list of actions.
  
    Care must be taken so that actions which have overlapping inputs either don't
    get assigned to the same input, or get collapsed into one.
  
    Arguments:
      actions_dict: dictionary keyed on input name, which maps to a list of
        dicts describing the actions attached to that input file.
      inputs: list of inputs
      outputs: list of outputs
      description: description of the action
      command: command line to execute
docstring_summary: Merge action into an existing list of actions.
docstring_tokens: Merge action into an existing list of actions .
function: def _AddActionStep(actions_dict, inputs, outputs, description, command):
    """Merge action into an existing list of actions.
  
    Care must be taken so that actions which have overlapping inputs either don't
    get assigned to the same input, or get collapsed into one.
  
    Arguments:
      actions_dict: dictionary keyed on input name, which maps to a list of
        dicts describing the actions attached to that input file.
      inputs: list of inputs
      outputs: list of outputs
      description: description of the action
      command: command line to execute
    """
    # Require there to be at least one input (call sites will ensure this).
    assert inputs
  
    action = {
        'inputs': inputs,
        'outputs': outputs,
        'description': description,
        'command': command,
    }
  
    # Pick where to stick this action.
    # While less than optimal in terms of build time, attach them to the first
    # input for now.
    chosen_input = inputs[0]
  
    # Add it there.
    if chosen_input not in actions_dict:
      actions_dict[chosen_input] = []
    actions_dict[chosen_input].append(action)
function_tokens: def _AddActionStep ( actions_dict , inputs , outputs , description , command ) : # Require there to be at least one input (call sites will ensure this). assert inputs action = { 'inputs' : inputs , 'outputs' : outputs , 'description' : description , 'command' : command , } # Pick where to stick this action. # While less than optimal in terms of build time, attach them to the first # input for now. chosen_input = inputs [ 0 ] # Add it there. if chosen_input not in actions_dict : actions_dict [ chosen_input ] = [ ] actions_dict [ chosen_input ] . append ( action )