/** @param inputs The ordered list of all inputs for the compiler. */
 GlobalVarReferenceMap(List<CompilerInput> inputs, List<CompilerInput> externs) {
   inputOrder = new HashMap<>();
   int ind = 0;
   for (CompilerInput extern : externs) {
     inputOrder.put(extern.getInputId(), ind);
     ind++;
   }
   for (CompilerInput input : inputs) {
     inputOrder.put(input.getInputId(), ind);
     ind++;
   }
 }
 /**
  * Creates a variable reference in a given script file name, used in tests.
  *
  * @return The created reference.
  */
 @VisibleForTesting
 static Reference createRefForTest(CompilerInput input) {
   return new Reference(new Node(Token.NAME), null, null, input.getInputId());
 }