File tree Expand file tree Collapse file tree 4 files changed +10
-11
lines changed Expand file tree Collapse file tree 4 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ export class VariableObject {
8484 frozen : boolean ;
8585 dynamic : boolean ;
8686 displayhint : string ;
87- has_more : boolean ;
87+ hasMore : boolean ;
8888 id : number ;
8989 constructor ( node : any ) {
9090 this . name = MINode . valueOf ( node , "name" ) ;
@@ -97,7 +97,7 @@ export class VariableObject {
9797 this . dynamic = ! ! MINode . valueOf ( node , "dynamic" ) ;
9898 this . displayhint = MINode . valueOf ( node , "displayhint" ) ;
9999 // TODO: use has_more when it's > 0
100- this . has_more = ! ! MINode . valueOf ( node , "has_more" ) ;
100+ this . hasMore = ! ! MINode . valueOf ( node , "has_more" ) ;
101101 }
102102
103103 public applyChanges ( node : MINode ) {
@@ -107,7 +107,7 @@ export class VariableObject {
107107 }
108108 this . dynamic = ! ! MINode . valueOf ( node , "dynamic" ) ;
109109 this . displayhint = MINode . valueOf ( node , "displayhint" ) ;
110- this . has_more = ! ! MINode . valueOf ( node , "has_more" ) ;
110+ this . hasMore = ! ! MINode . valueOf ( node , "has_more" ) ;
111111 }
112112
113113 public isCompound ( ) : boolean {
Original file line number Diff line number Diff line change @@ -743,12 +743,12 @@ export class MI2 extends EventEmitter implements IBackend {
743743 }
744744
745745 async sendCliCommand ( command : string , threadId : number = 0 , frameLevel : number = 0 ) {
746- let mi_command = "interpreter-exec " ;
746+ let miCommand = "interpreter-exec " ;
747747 if ( threadId != 0 ) {
748- mi_command += `--thread ${ threadId } --frame ${ frameLevel } ` ;
748+ miCommand += `--thread ${ threadId } --frame ${ frameLevel } ` ;
749749 }
750- mi_command += `console "${ command . replace ( / [ \\ " ' ] / g, '\\$&' ) } "` ;
751- await this . sendCommand ( mi_command ) ;
750+ miCommand += `console "${ command . replace ( / [ \\ " ' ] / g, '\\$&' ) } "` ;
751+ await this . sendCommand ( miCommand ) ;
752752 }
753753
754754 sendCommand ( command : string , suppressFailure : boolean = false ) : Thenable < MINode > {
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ suite("MI Parse", () => {
9595 assert . notEqual ( parsed . resultRecords , undefined ) ;
9696 assert . equal ( parsed . resultRecords . resultClass , "done" ) ;
9797 assert . equal ( parsed . resultRecords . results . length , 1 ) ;
98- const asm_insns = [
98+ const asmInsns = [
9999 "asm_insns" ,
100100 [
101101 [
@@ -125,7 +125,7 @@ suite("MI Parse", () => {
125125 ]
126126 ]
127127 ] ;
128- assert . deepEqual ( parsed . resultRecords . results [ 0 ] , asm_insns ) ;
128+ assert . deepEqual ( parsed . resultRecords . results [ 0 ] , asmInsns ) ;
129129 assert . equal ( parsed . result ( "asm_insns.src_and_asm_line.line_asm_insn[1].address" ) , "0x00000000004e7da5" ) ;
130130 } ) ;
131131 test ( "valueof children" , ( ) => {
Original file line number Diff line number Diff line change 3434 "space-before-function-paren" : false ,
3535 "trailing-comma" : false ,
3636 "triple-equals" : false ,
37- "typedef-whitespace" : false ,
38- "variable-name" : false
37+ "typedef-whitespace" : false
3938 }
4039}
You can’t perform that action at this time.
0 commit comments