(CommandList
  children: [
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:locatedb)
          op: Equal
          rhs: {(DQ (/tmp/locate.db))}
          spids: [11]
        )
      ]
      spids: [11]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (C {(Lit_Other '[')} 
                  {
                    (DQ 
                      (CommandSubPart
                        command_list: (CommandList children:[(C {(whoami)})])
                        left_token: <Left_CommandSub '$('>
                        spids: [22 24]
                      )
                    )
                  } {(KW_Bang '!') (Lit_Other '=')} {(DQ (root))} {(Lit_Other ']')}
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (SimpleCommand
              words: [{(echo)} {(DQ ('Must be root to run this command.'))}]
              redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[47])]
            )
            (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)})
          ]
          spids: [16777215 38]
        )
      ]
      spids: [16777215 55]
    )
    (SimpleCommand
      words: [{(find)} {(/)} {(-print)}]
      redirects: [
        (Redir op_id:Redir_Great fd:16777215 arg_word:{($ VSub_Name '$locatedb')} spids:[64])
      ]
    )
    (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(0)})
  ]
)