We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
IRInstruction
IROperand
1 parent 9dd089d commit cd2c3deCopy full SHA for cd2c3de
src/compiler/compiler.ts
@@ -1,17 +1,17 @@
1
/* IRInstruction */
2
// eslint-disable-next-line @typescript-eslint/no-unused-vars
3
class IRInstruction {
4
- opcode: string;
5
- operands: IROperand[];
+ public opcode: string;
+ public operands: IROperand[];
6
7
constructor(opcode: string, operands: IROperand[]) {
8
this.opcode = opcode;
9
this.operands = operands;
10
}
11
12
class IROperand {
13
- type: string;
14
- value: number;
+ public type: string;
+ public value: number;
15
16
constructor(type: string, value: number) {
17
this.type = type;
0 commit comments