code: public void addNewScript(JsAst ast) {
      if (!addNewSourceAst(ast)) {
        return;
      }
      Node emptyScript = new Node(Token.SCRIPT);
      InputId inputId = ast.getInputId();
      emptyScript.setInputId(inputId);
      emptyScript.setStaticSourceFile(
          SourceFile.fromCode(inputId.getIdName(), ""));
  
      processNewScript(ast, emptyScript);
    }
docs: Adds a new Script AST to the compile state. If a script for the same file
  already exists the script will not be added, instead a call to
  #replaceScript should be used.
  
  @param ast the ast of the new file