Skip to content

Commit 41a5534

Browse files
authored
feat: allow calling non target methods and some bugs (#166)
- fixes targetting bugs - fixes instrumenter bugs - fixes branch distance bugs - fixes statement pool bugs - allows calling non target methods
1 parent 44d9386 commit 41a5534

File tree

67 files changed

+3029
-1939
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+3029
-1939
lines changed

.eslintrc.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@
6060
}
6161
],
6262
"unicorn/filename-case": "off",
63+
"unicorn/prefer-ternary": "warn",
64+
6365
// "no-unused-vars": "off",
6466
// "@typescript-eslint/no-unused-vars": "off",
6567
// "unused-imports/no-unused-imports": "error",

libraries/analysis-javascript/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export * from "./lib/type/resolving/TypeEnum";
5656
export * from "./lib/type/resolving/TypeModel";
5757
export * from "./lib/type/resolving/TypeModelFactory";
5858
export * from "./lib/type/resolving/InferenceTypeModelFactory";
59-
export * from "./lib/type/resolving/RandomTypeModelFactory";
6059

6160
export * from "./lib/utils/fileSystem";
6261

libraries/analysis-javascript/lib/constant/ConstantPool.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ export class ConstantPool {
3232
this._numericPool = new Map();
3333
this.addNumeric(Math.PI);
3434
this.addNumeric(Math.E);
35-
this.addNumeric(-1);
36-
this.addNumeric(0);
37-
this.addNumeric(+1);
3835

3936
this._integerPool = new Map();
4037
this.addInteger(-1);
@@ -63,6 +60,7 @@ export class ConstantPool {
6360
this._integerPool.set(value, 1);
6461
}
6562
this._integerCount++;
63+
this.addNumeric(value);
6664
}
6765

6866
public addBigInt(value: bigint): void {

libraries/analysis-javascript/lib/target/Target.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export interface SubTarget extends CoreSubTarget {
3636

3737
export interface NamedSubTarget extends SubTarget {
3838
name: string;
39+
typeId: string;
3940
}
4041

4142
export type Exportable = {

0 commit comments

Comments
 (0)