(command.CommandList children: [ (command.ShFunction name: _adb_command_usage body: (command.BraceGroup children: [ (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:12) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:14) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: '$( "$1" help 2>&1 | command grep "^ *\\(adb \\)\\? *$2 " \\\n' span_id: 23 ) (Token id:Id.Lit_Chars val:' | sed -e "s/[]|[]/\\n/g" | _parse_help - )' span_id:24) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [11] ) ] ) ] ) ) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.ShFunction name: _adb 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:62) ) ] ) (command.Case to_match: {($ Id.VSub_DollarName '$prev')} arms: [ (case_arm pat_list: [{(-s)} {(-p)} {(--algo)} {(--key)} {(--iv)}] action: [ (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:85) ) ] spids: [73 82 88 -1] ) (case_arm pat_list: [{(-f)}] action: [ (C {(_filedir)}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:98) ) ] spids: [91 92 101 -1] ) ] ) (C {(local)} {(cmd)} {(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 1)}) ) cond: (arith_expr.Binary op_id: Id.Arith_Less left: (arith_expr.VarRef token:(Token id:Id.Lit_ArithVarLike val:i span_id:124)) right: (arith_expr.VarRef token: (Token id:Id.Lit_ArithVarLike val:cword span_id:128) ) ) 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.LogicalAnd left: (bool_expr.Binary op_id: Id.BoolBinary_GlobNEqual left: { (DQ (braced_var_sub token: (Token id: Id.VSub_Name val: words span_id: 147 ) bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.VarRef token: (Token id: Id.Lit_ArithVarLike val: i span_id: 149 ) ) ) ) ) } right: {(-) (Id.Lit_Other '*')} ) right: (bool_expr.Binary op_id: Id.BoolBinary_GlobNEqual left: { (DQ (braced_var_sub token: (Token id: Id.VSub_Name val: words span_id: 163 ) bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.Binary op_id: Id.Arith_Minus left: (arith_expr.VarRef token: (Token id: Id.Lit_ArithVarLike val: i span_id: 165 ) ) right: (arith_expr.ArithWord w: {(Id.Lit_Digits 1)} ) ) ) ) ) } right: {(-) (Id.Lit_Other '[') (sp) (Id.Lit_Other ']')} ) ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:180) ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:cmd) op: assign_op.Equal rhs: { (DQ (braced_var_sub token: (Token id:Id.VSub_Name val:words span_id:188) bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.VarRef token: (Token id: Id.Lit_ArithVarLike val: i span_id: 190 ) ) ) ) ) } spids: [185] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Break val:break span_id:196) ) ] spids: [141 182] ) ] ) ] ) ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.LogicalNot child: (bool_expr.WordTest w:{(DQ ($ Id.VSub_DollarName '$cmd'))}) ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:218) ) ] action: [ (C {(local)} {(Id.Lit_VarLike 'tmp=') (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:226) ) } ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.LogicalOr left: (bool_expr.LogicalNot child: (bool_expr.WordTest w: {($ Id.VSub_DollarName '$cur')} ) ) right: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {($ Id.VSub_DollarName '$cur')} right: {(-) (Id.Lit_Other '*')} ) ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:248) ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:tmp) op: assign_op.PlusEqual rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:254) words: [ { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 256 ) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: '$( _parse_help "$1" help )' span_id: 263 ) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [253] ) ] ) ] spids: [230 250] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.LogicalOr left: (bool_expr.LogicalNot child: (bool_expr.WordTest w: {($ Id.VSub_DollarName '$cur')} ) ) right: (bool_expr.Binary op_id: Id.BoolBinary_GlobNEqual left: {($ Id.VSub_DollarName '$cur')} right: {(-) (Id.Lit_Other '*')} ) ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:298) ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:tmp) op: assign_op.PlusEqual rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:304) words: [ { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 306 ) command_list: (command.CommandList children: [ (command.Pipeline children: [ (command.Simple words: [ {($ Id.VSub_Number '$1')} {(help)} ] redirects: [ (redir.Redir op: (Token id: Id.Redir_GreatAnd val: '2>&' span_id: 312 ) fd: 2 arg_word: {(1)} ) ] ) (C {(awk)} { (SQ (Token id: Id.Lit_Chars val: '$1 == "adb" { print $2 }' span_id: 320 ) ) } ) ] negated: F ) ] ) ) } ] ) } spids: [303] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:tmp) op: assign_op.PlusEqual rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:329) words: [{(devices)} {(connect)} {(disconnect)} {(sideload)}] ) } spids: [328] ) ] ) ] spids: [280 300] ) ] ) (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:346) words: [ { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 348 ) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: '${tmp[@]}' span_id: 355 ) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [345] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:369) ) ] spids: [207 220] ) ] ) (C {(_adb_command_usage)} {(DQ ($ Id.VSub_Number '$1'))} {($ Id.VSub_DollarName '$cmd')}) (command.Case to_match: {($ Id.VSub_DollarName '$cmd')} arms: [ (case_arm pat_list: [{(push)} {(restore)} {(sideload)}] action: [(C {(_filedir)})] spids: [398 403 409 -1] ) (case_arm pat_list: [{(forward)}] 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:417) words: [ { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 419 ) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: '$( "$1" help 2>&1 | sed -ne "s/^ *adb *forward *-/-/p" | \\\n' span_id: 428 ) (Token id:Id.Lit_Chars val:' _parse_help - )' span_id:429) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [416] ) ] ) ] spids: [412 413 443 -1] ) (case_arm pat_list: [{(reboot)}] 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:451) words: [ { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 453 ) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: 'bootloader recovery' span_id: 460 ) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [450] ) ] ) ] spids: [446 447 474 -1] ) ] ) ] ) ) (C {(complete)} {(-F)} {(_adb)} {(adb)}) ] ) ] )