(command.AndOr ops: [Id.Op_DAmp] children: [ (command.ShFunction name: _mdtool body: (command.BraceGroup children: [ (C {(local)} {(cur)} {(prev)} {(words)} {(cword)}) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {(_init_completion)}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:26) ) ] ) (C {(local)} {(command)} {(i)}) (command.ForExpr init: (arith_expr.BinaryAssign op_id: Id.Arith_Equal left: (sh_lhs_expr.Name name:i) right: (arith_expr.ArithWord w:{(Id.Lit_Digits 0)}) ) cond: (arith_expr.Binary op_id: Id.Arith_Less left: (arith_expr.VarRef token:(Token id:Id.Lit_ArithVarLike val:i span_id:47)) right: (arith_expr.Binary op_id: Id.Arith_Minus left: (arith_expr.ArithWord w: { (braced_var_sub token: (Token id:Id.VSub_Name val:words span_id:53) prefix_op: (Id.VSub_Pound) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) } ) right: (arith_expr.ArithWord w:{(Id.Lit_Digits 1)}) ) ) update: (arith_expr.UnaryAssign op_id:Id.Node_PostDPlus child:(sh_lhs_expr.Name name:i)) body: (command.DoGroup children: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: { (braced_var_sub token: (Token id:Id.VSub_Name val:words span_id:77) bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.VarRef token: (Token id: Id.Lit_ArithVarLike val: i span_id: 79 ) ) ) ) } right: { (word_part.ExtGlob op: (Token id:Id.ExtGlob_At val:'@(' span_id:85) arms: [{(build)} {(generate-makefiles)} {(setup)}] ) } ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:94) ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:command) op: assign_op.Equal rhs: { (braced_var_sub token: (Token id:Id.VSub_Name val:words span_id:101) bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.VarRef token: (Token id: Id.Lit_ArithVarLike val: i span_id: 103 ) ) ) ) } spids: [99] ) ] ) ] spids: [72 96] ) ] ) ] ) ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Unary op_id: Id.BoolUnary_n child: {(DQ ($ Id.VSub_DollarName '$command'))} ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:126) ) ] action: [ (command.Case to_match: {($ Id.VSub_DollarName '$command')} arms: [ (case_arm pat_list: [{(DQ (build))}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:145) words: [ { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 147 ) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: '--f --buildfile --p --project' span_id: 154 ) ) } {(-S) (DQ (':'))} {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [144] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:219) arg_word: {(0)} ) ] spids: [138 141 224 -1] ) (case_arm pat_list: [{(DQ (generate-makefiles))}] action: [ (C {(compopt)} {(-o)} {(filenames)}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:241) words: [ { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 243 ) command_list: (command.CommandList children: [ (C {(compgen)} {(-o)} {(filenames)} {(-G) (DQ ('*.mds'))} {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [240] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {(DQ ($ Id.VSub_DollarName '$prev'))} right: {(Id.Lit_Other '*') (mds)} ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:281) ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:287) words: [ { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 289 ) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: '--simple-makefiles --s --d:' span_id: 296 ) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [286] ) ] ) ] spids: [267 283] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:315) arg_word: {(0)} ) ] spids: [227 230 320 -1] ) (case_arm pat_list: [{(DQ (setup))}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:334) words: [ { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 336 ) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: 'install i uninstall u check-install\n' span_id: 343 ) (Token id: Id.Lit_Chars val: ' ci update up list l list-av la list-update lu rep-add ra\n' span_id: 344 ) (Token id: Id.Lit_Chars val: ' rep-remove rr rep-update ru rep-list rl reg-update\n' span_id: 345 ) (Token id: Id.Lit_Chars val: ' reg-build rgu info rep-build rb pack p help h dump-file' span_id: 346 ) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [333] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:362) arg_word: {(0)} ) ] spids: [323 326 367 -1] ) ] ) ] spids: [115 128] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:378) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:380) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: 'gsetup build dbgen project-export\n' span_id: 387 ) (Token id:Id.Lit_Chars val:' generate-makefiles gettext-update setup -q' span_id:388) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [377] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:403) arg_word: {(0)} ) ] ) ) (C {(complete)} {(-F)} {(_mdtool)} {(mdtool)}) ] )