Skip to content

Commit cfc7c91

Browse files
committed
Changing access modifiers
1 parent 169584d commit cfc7c91

File tree

5 files changed

+41
-41
lines changed

5 files changed

+41
-41
lines changed

src/app/app.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import { faInfoCircle } from '@fortawesome/free-solid-svg-icons';
99
})
1010
export class AppComponent {
1111

12-
private bytecode: ArrayBuffer;
13-
private currentDate: Date = new Date();
14-
private infoIcon: IconDefinition = faInfoCircle;
12+
bytecode: ArrayBuffer;
13+
currentDate: Date = new Date();
14+
infoIcon: IconDefinition = faInfoCircle;
1515

1616
setBytecode(bytecode: ArrayBuffer) {
1717
this.bytecode = bytecode;

src/app/bytecode-reader/bytecode-reader.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import { faFolderOpen } from '@fortawesome/free-solid-svg-icons';
99
})
1010
export class BytecodeReaderComponent implements OnInit {
1111

12-
private file: any;
13-
@Output("bytecode") private bytecodeEmitter: EventEmitter<ArrayBuffer> = new EventEmitter();
14-
private uploadedFileName: string = "simple_calculator.obj";
12+
file: any;
13+
@Output("bytecode") bytecodeEmitter: EventEmitter<ArrayBuffer> = new EventEmitter();
14+
uploadedFileName: string = "simple_calculator.obj";
1515
folderOpenIcon: IconDefinition = faFolderOpen;
1616

1717
constructor() { }

src/app/bytecode-viewer/bytecode-viewer.component.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@ import { faExclamationCircle, faChartBar, faFile } from '@fortawesome/free-solid
1010
})
1111
export class BytecodeViewerComponent implements OnInit {
1212

13-
private uint8Array: Uint8Array;
14-
private charArray: string[] = [];
15-
private disassembler: Disassembler;
16-
private error: string;
13+
uint8Array: Uint8Array;
14+
charArray: string[] = [];
15+
disassembler: Disassembler;
16+
error: string;
1717

18-
private selectedIndex: number;
19-
private entryPointIndex: number;
20-
private destinationIndex: number;
18+
selectedIndex: number;
19+
entryPointIndex: number;
20+
destinationIndex: number;
2121

22-
private loading: boolean = false;
22+
loading: boolean = false;
2323

24-
private exclamationIcon: IconDefinition = faExclamationCircle;
25-
private fileIcon: IconDefinition = faFile;
26-
private barChartIcon: IconDefinition = faChartBar;
24+
exclamationIcon: IconDefinition = faExclamationCircle;
25+
fileIcon: IconDefinition = faFile;
26+
barChartIcon: IconDefinition = faChartBar;
2727

28-
private firstSet: boolean = true;
28+
firstSet: boolean = true;
2929

3030
constructor() {
3131
}

src/app/shared/disassembler.shared.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,22 @@ class DisassembledInstruction {
3333

3434
export class Disassembler {
3535

36-
private uint8Array: Uint8Array;
37-
private current: number = 0;
38-
private address: number = 0;
39-
private headerSize: number = 0;
36+
uint8Array: Uint8Array;
37+
current: number = 0;
38+
address: number = 0;
39+
headerSize: number = 0;
4040
public disassembledInstructions: DisassembledInstruction[];
4141

42-
private opcode: number;
43-
private operand1: number;
44-
private operand2: number;
42+
opcode: number;
43+
operand1: number;
44+
operand2: number;
4545

46-
private codeSize: number;
47-
private dataSize: number;
48-
private entryPoint: number;
46+
codeSize: number;
47+
dataSize: number;
48+
entryPoint: number;
4949

50-
private jumpDestination: number;
51-
private warning: string;
50+
jumpDestination: number;
51+
warning: string;
5252

5353
public static readonly MIN_OBJ_SIZE: number = 1 + 1 + 3 * 4 + 1;
5454

@@ -152,26 +152,26 @@ export class Disassembler {
152152
this.disassembledInstructions = [];
153153
}
154154

155-
private get() {
155+
get() {
156156
return this.uint8Array[this.current++] & 0x0ff;
157157
}
158158

159-
private get2() {
159+
get2() {
160160
return (this.get() << 8 | this.get()) & 0x0ffff;
161161
}
162162

163-
private get4() {
163+
get4() {
164164
return (this.get2() << 16 | this.get2());
165165
}
166166

167-
private jumpOffset() {
167+
jumpOffset() {
168168
let displacement = this.operand1 = this.get2();
169169
displacement = displacement << 16 >> 16;
170170
this.jumpDestination = this.address + displacement;
171171
return displacement + ' (dest: ' + this.jumpDestination + ')';
172172
}
173173

174-
private put(instruction: Instruction, bytes: Uint8Array, operands: string = null, isJumpInstruction: boolean = false) {
174+
put(instruction: Instruction, bytes: Uint8Array, operands: string = null, isJumpInstruction: boolean = false) {
175175
if (this.jumpDestination && (this.jumpDestination < 0 || this.jumpDestination >= this.uint8Array.length)) {
176176
this.warning = 'This instruction is problematic! Destination address does not exist.';
177177
}

src/app/stats/stats.component.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ import { Disassembler } from '../shared/disassembler.shared';
88
})
99
export class StatsComponent implements OnInit {
1010

11-
@Input("loading") private loading: boolean = false;
11+
@Input("loading") public loading: boolean = false;
1212

13-
private numInstructions: number = 0;
14-
private averageInstructionLength: number = 0;
15-
private numSubroutines: number = 0;
16-
private averageJumpOffset: number = 0;
13+
public numInstructions: number = 0;
14+
public averageInstructionLength: number = 0;
15+
public numSubroutines: number = 0;
16+
public averageJumpOffset: number = 0;
1717
private numJumpInstructions: number = 0;
1818
private instructionCount = {};
19-
private instructionCountArray = [];
19+
public instructionCountArray = [];
2020

2121
constructor() { }
2222

0 commit comments

Comments
 (0)