parameters: (dirName)
return_statement: return retVal
docstring: Returns all JS files under dirName
docstring_summary: Returns all JS files under dirName
docstring_tokens: Returns all JS files under dirName
function: def getAllJSFiles(dirName):
      '''
      Returns all JS files under dirName
      '''
      retVal = []
      if os.path.isfile(dirName) and dirName.endswith(".js"):
          retVal = [dirName]
      elif os.path.isdir(dirName):
          tempList = [os.path.join(dirName, x) for x in os.listdir(dirName)]
          for x in tempList:
              retVal += getAllJSFiles(x)
      #else:
      #    raise Exception("getAllJSFiles: encountered a non-file/non-dir:" + dirName)
      return retVal
function_tokens: def getAllJSFiles ( dirName ) : retVal = [ ] if os . path . isfile ( dirName ) and dirName . endswith ( ".js" ) : retVal = [ dirName ] elif os . path . isdir ( dirName ) : tempList = [ os . path . join ( dirName , x ) for x in os . listdir ( dirName ) ] for x in tempList : retVal += getAllJSFiles ( x ) #else: #    raise Exception("getAllJSFiles: encountered a non-file/non-dir:" + dirName) return retVal