code: def analyze_script(self, index=None):
          
          if self.is_analysis_done:
              return
          if index is None:
              index = self.get_stack_index()
          if self.data:
              finfo = self.data[index]
              if self.todolist_enabled:
                  finfo.run_todo_finder()
          self.is_analysis_done = True
docs: Analyze current script with todos