code: public Map<String, Node> getTemplateNodeToMatchMap() {
      Map<String, Node> map = new HashMap<>(stringLiteralMatches);
  
      for (int i = 0; i < templateParams.size(); i++) {
        String name = templateParams.get(i);
        map.put(name, paramNodeMatches.get(i));
      }
  
      for (int i = 0; i < templateLocals.size(); i++) {
        String name = templateLocals.get(i);
        map.put(name, IR.name(localVarMatches.get(i)));
      }
  
      return map;
    }
docs: Returns a map from named template Nodes (such as parameters
  or local variables) to Nodes that were matches from the last matched
  template.