tslint: Enable variable-name
This commit is contained in:
parent
7c76de4536
commit
6e6899a231
4 changed files with 10 additions and 11 deletions
|
|
@ -84,7 +84,7 @@ export class VariableObject {
|
||||||
frozen: boolean;
|
frozen: boolean;
|
||||||
dynamic: boolean;
|
dynamic: boolean;
|
||||||
displayhint: string;
|
displayhint: string;
|
||||||
has_more: boolean;
|
hasMore: boolean;
|
||||||
id: number;
|
id: number;
|
||||||
constructor(node: any) {
|
constructor(node: any) {
|
||||||
this.name = MINode.valueOf(node, "name");
|
this.name = MINode.valueOf(node, "name");
|
||||||
|
|
@ -97,7 +97,7 @@ export class VariableObject {
|
||||||
this.dynamic = !!MINode.valueOf(node, "dynamic");
|
this.dynamic = !!MINode.valueOf(node, "dynamic");
|
||||||
this.displayhint = MINode.valueOf(node, "displayhint");
|
this.displayhint = MINode.valueOf(node, "displayhint");
|
||||||
// TODO: use has_more when it's > 0
|
// TODO: use has_more when it's > 0
|
||||||
this.has_more = !!MINode.valueOf(node, "has_more");
|
this.hasMore = !!MINode.valueOf(node, "has_more");
|
||||||
}
|
}
|
||||||
|
|
||||||
public applyChanges(node: MINode) {
|
public applyChanges(node: MINode) {
|
||||||
|
|
@ -107,7 +107,7 @@ export class VariableObject {
|
||||||
}
|
}
|
||||||
this.dynamic = !!MINode.valueOf(node, "dynamic");
|
this.dynamic = !!MINode.valueOf(node, "dynamic");
|
||||||
this.displayhint = MINode.valueOf(node, "displayhint");
|
this.displayhint = MINode.valueOf(node, "displayhint");
|
||||||
this.has_more = !!MINode.valueOf(node, "has_more");
|
this.hasMore = !!MINode.valueOf(node, "has_more");
|
||||||
}
|
}
|
||||||
|
|
||||||
public isCompound(): boolean {
|
public isCompound(): boolean {
|
||||||
|
|
|
||||||
|
|
@ -743,12 +743,12 @@ export class MI2 extends EventEmitter implements IBackend {
|
||||||
}
|
}
|
||||||
|
|
||||||
async sendCliCommand(command: string, threadId: number = 0, frameLevel: number = 0) {
|
async sendCliCommand(command: string, threadId: number = 0, frameLevel: number = 0) {
|
||||||
let mi_command = "interpreter-exec ";
|
let miCommand = "interpreter-exec ";
|
||||||
if (threadId != 0) {
|
if (threadId != 0) {
|
||||||
mi_command += `--thread ${threadId} --frame ${frameLevel} `;
|
miCommand += `--thread ${threadId} --frame ${frameLevel} `;
|
||||||
}
|
}
|
||||||
mi_command += `console "${command.replace(/[\\"']/g, '\\$&')}"`;
|
miCommand += `console "${command.replace(/[\\"']/g, '\\$&')}"`;
|
||||||
await this.sendCommand(mi_command);
|
await this.sendCommand(miCommand);
|
||||||
}
|
}
|
||||||
|
|
||||||
sendCommand(command: string, suppressFailure: boolean = false): Thenable<MINode> {
|
sendCommand(command: string, suppressFailure: boolean = false): Thenable<MINode> {
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,7 @@ suite("MI Parse", () => {
|
||||||
assert.notEqual(parsed.resultRecords, undefined);
|
assert.notEqual(parsed.resultRecords, undefined);
|
||||||
assert.equal(parsed.resultRecords.resultClass, "done");
|
assert.equal(parsed.resultRecords.resultClass, "done");
|
||||||
assert.equal(parsed.resultRecords.results.length, 1);
|
assert.equal(parsed.resultRecords.results.length, 1);
|
||||||
const asm_insns = [
|
const asmInsns = [
|
||||||
"asm_insns",
|
"asm_insns",
|
||||||
[
|
[
|
||||||
[
|
[
|
||||||
|
|
@ -125,7 +125,7 @@ suite("MI Parse", () => {
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
assert.deepEqual(parsed.resultRecords.results[0], asm_insns);
|
assert.deepEqual(parsed.resultRecords.results[0], asmInsns);
|
||||||
assert.equal(parsed.result("asm_insns.src_and_asm_line.line_asm_insn[1].address"), "0x00000000004e7da5");
|
assert.equal(parsed.result("asm_insns.src_and_asm_line.line_asm_insn[1].address"), "0x00000000004e7da5");
|
||||||
});
|
});
|
||||||
test("valueof children", () => {
|
test("valueof children", () => {
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,6 @@
|
||||||
"space-before-function-paren": false,
|
"space-before-function-paren": false,
|
||||||
"trailing-comma": false,
|
"trailing-comma": false,
|
||||||
"triple-equals": false,
|
"triple-equals": false,
|
||||||
"typedef-whitespace": false,
|
"typedef-whitespace": false
|
||||||
"variable-name": false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue