Skip to content

Commit cd2c3de

Browse files
committed
chore(compiler): explicitly declare member accessibility for IRInstruction and IROperand classes
1 parent 9dd089d commit cd2c3de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/compiler/compiler.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
/* IRInstruction */
22
// eslint-disable-next-line @typescript-eslint/no-unused-vars
33
class IRInstruction {
4-
opcode: string;
5-
operands: IROperand[];
4+
public opcode: string;
5+
public operands: IROperand[];
66

77
constructor(opcode: string, operands: IROperand[]) {
88
this.opcode = opcode;
99
this.operands = operands;
1010
}
1111
}
1212
class IROperand {
13-
type: string;
14-
value: number;
13+
public type: string;
14+
public value: number;
1515

1616
constructor(type: string, value: number) {
1717
this.type = type;

0 commit comments

Comments
 (0)