(command.AndOr ops: [Op_DAmp] children: [ (command.FuncDef name: _apt_build body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:cur spids:[13]) op: Equal spids: [13] ) (assign_pair lhs: (lhs_expr.LhsName name:prev spids:[15]) op: Equal spids: [15] ) (assign_pair lhs: (lhs_expr.LhsName name:words spids:[17]) op: Equal spids: [17] ) (assign_pair lhs: (lhs_expr.LhsName name:cword spids:[19]) op: Equal spids: [19] ) ] spids: [11] ) (command.AndOr ops: [Op_DPipe] children: [ (C {(_init_completion)}) (command.ControlFlow token:<ControlFlow_Return return>) ] ) (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:special spids:[32]) op: Equal spids: [32] ) (assign_pair lhs: (lhs_expr.LhsName name:i spids:[34]) op: Equal spids: [34] ) ] spids: [30] ) (command.ForExpr init: (arith_expr.BinaryAssign op_id: Arith_Equal left: (lhs_expr.LhsName name:i spids:[41]) right: (arith_expr.ArithWord w:{(Lit_Digits 0)}) ) cond: (arith_expr.ArithBinary op_id: Arith_Less left: (arith_expr.ArithVarRef token:<Lit_ArithVarLike i>) right: (arith_expr.ArithBinary op_id: Arith_Minus left: (arith_expr.ArithWord w: { (word_part.BracedVarSub token: <VSub_Name words> prefix_op: VSub_Pound bracket_op: (bracket_op.WholeArray op_id:Lit_At) spids: [50 56] ) } ) right: (arith_expr.ArithWord w:{(Lit_Digits 1)}) ) ) update: (arith_expr.UnaryAssign op_id: Node_PostDPlus child: (lhs_expr.LhsName name:i spids:[61]) ) body: (command.DoGroup children: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: { (word_part.BracedVarSub token: <VSub_Name words> bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.ArithVarRef token: <Lit_ArithVarLike i> ) ) spids: [75 80] ) } right: { (word_part.ExtGlobPart op: <ExtGlob_At '@('> arms: [{(install)} {(remove)} {(source)} {(info)} {(clean)}] spids: [84 94] ) } ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:special spids:[102]) op: Equal rhs: { (word_part.BracedVarSub token: <VSub_Name words> bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.ArithVarRef token:<Lit_ArithVarLike i>) ) spids: [103 108] ) } spids: [102] ) ] spids: [102] ) ] spids: [16777215 99] ) ] spids: [16777215 111] ) ] spids: [68 114] ) ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolUnary op_id: BoolUnary_n child: {($ VSub_DollarName '$special')} ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.Case to_match: {($ VSub_DollarName '$special')} arms: [ (case_arm pat_list: [{(install)} {(source)} {(info)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[147]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.SimpleCommand words: [ {(apt-cache)} {(pkgnames)} {(DQ ($ VSub_DollarName '$cur'))} ] redirects: [ (redir.Redir op: <Redir_Great '2>'> fd: 2 arg_word: {(/dev/null)} ) ] ) ] ) left_token: <Left_CommandSub '$('> spids: [150 164] ) } ] ) } spids: [147] ) ] spids: [147] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [139 144 174 16777215] ) (case_arm pat_list: [{(remove)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[181]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(_xfunc)} {(dpkg)} {(_comp_dpkg_installed_packages)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [186 198] ) } ] ) } spids: [181] ) ] spids: [181] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [177 178 208 16777215] ) (case_arm pat_list: [{(Lit_Other '*')}] action: [ (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [211 212 220 16777215] ) ] spids: [132 136 223] ) ] spids: [16777215 129] ) ] spids: [16777215 226] ) (command.Case to_match: {($ VSub_DollarName '$prev')} arms: [ (case_arm pat_list: [{(--patch)} {(--build-dir)} {(--repository-dir)}] action: [ (C {(_filedir)}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [237 242 253 16777215] ) (case_arm pat_list: [{(-h)} {(--help)}] action: [(command.ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})] spids: [256 259 267 16777215] ) ] spids: [230 234 270] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {(DQ ($ VSub_DollarName '$cur'))} right: {(-) (Lit_Other '*')} ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[293]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ <'--help --show-upgraded -u --build-dir\n'> < ' --repository-dir --build-only --build-command --reinstall --rebuild\n' > <' --remove-builddep --no-wrapper --purge --patch --patch-strip -p\n'> <' --yes -y --version -v --no-source'> ) } {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [296 315] ) } ] ) } spids: [293] ) ] spids: [293] ) ] spids: [16777215 290] ) ] else_action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[324]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ <'update upgrade install remove source\n'> < ' dist-upgrade world clean info clean-build update-repository' > ) } {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [327 346] ) } ] ) } spids: [324] ) ] spids: [324] ) ] spids: [321 351] ) (command.ControlFlow token:<ControlFlow_Return return> arg_word:{(0)}) ] spids: [8] ) spids: [4 7] ) (C {(complete)} {(-F)} {(_apt_build)} {(apt-build)}) ] )