arkanalyzer 1.0.16 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/callgraph/pointerAnalysis/Pag.d.ts +1 -1
- package/lib/callgraph/pointerAnalysis/Pag.d.ts.map +1 -1
- package/lib/callgraph/pointerAnalysis/Pag.js +9 -0
- package/lib/callgraph/pointerAnalysis/PagBuilder.d.ts.map +1 -1
- package/lib/callgraph/pointerAnalysis/PagBuilder.js +6 -2
- package/lib/core/base/Decorator.d.ts +1 -0
- package/lib/core/base/Decorator.d.ts.map +1 -1
- package/lib/core/base/Decorator.js +4 -1
- package/lib/core/base/Type.d.ts +45 -3
- package/lib/core/base/Type.d.ts.map +1 -1
- package/lib/core/base/Type.js +84 -4
- package/lib/core/common/ArkIRTransformer.d.ts +1 -0
- package/lib/core/common/ArkIRTransformer.d.ts.map +1 -1
- package/lib/core/common/ArkIRTransformer.js +42 -23
- package/lib/core/common/ArkValueTransformer.d.ts +1 -0
- package/lib/core/common/ArkValueTransformer.d.ts.map +1 -1
- package/lib/core/common/ArkValueTransformer.js +45 -10
- package/lib/core/common/IRInference.d.ts.map +1 -1
- package/lib/core/common/IRInference.js +6 -0
- package/lib/core/common/ModelUtils.d.ts.map +1 -1
- package/lib/core/common/ModelUtils.js +5 -1
- package/lib/core/common/TypeInference.d.ts +1 -0
- package/lib/core/common/TypeInference.d.ts.map +1 -1
- package/lib/core/common/TypeInference.js +27 -8
- package/lib/core/{common → graph/builder}/CfgBuilder.d.ts +34 -46
- package/lib/core/graph/builder/CfgBuilder.d.ts.map +1 -0
- package/lib/core/graph/builder/CfgBuilder.js +1139 -0
- package/lib/core/graph/builder/ConditionBuilder.d.ts +16 -0
- package/lib/core/graph/builder/ConditionBuilder.d.ts.map +1 -0
- package/lib/core/graph/builder/ConditionBuilder.js +252 -0
- package/lib/core/graph/builder/LoopBuilder.d.ts +21 -0
- package/lib/core/graph/builder/LoopBuilder.d.ts.map +1 -0
- package/lib/core/graph/builder/LoopBuilder.js +251 -0
- package/lib/core/graph/builder/SwitchBuilder.d.ts +12 -0
- package/lib/core/graph/builder/SwitchBuilder.d.ts.map +1 -0
- package/lib/core/graph/builder/SwitchBuilder.js +152 -0
- package/lib/core/graph/builder/TrapBuilder.d.ts +17 -0
- package/lib/core/graph/builder/TrapBuilder.d.ts.map +1 -0
- package/lib/core/graph/builder/TrapBuilder.js +272 -0
- package/lib/core/model/ArkMethod.d.ts +1 -1
- package/lib/core/model/ArkMethod.js +1 -1
- package/lib/core/model/ArkSignature.d.ts +9 -1
- package/lib/core/model/ArkSignature.d.ts.map +1 -1
- package/lib/core/model/ArkSignature.js +17 -1
- package/lib/core/model/builder/ArkClassBuilder.d.ts.map +1 -1
- package/lib/core/model/builder/ArkClassBuilder.js +2 -1
- package/lib/core/model/builder/ArkMethodBuilder.js +1 -1
- package/lib/core/{common → model/builder}/BodyBuilder.d.ts +5 -5
- package/lib/core/model/builder/BodyBuilder.d.ts.map +1 -0
- package/lib/core/{common → model/builder}/BodyBuilder.js +12 -12
- package/lib/core/model/builder/builderUtils.d.ts.map +1 -1
- package/lib/core/model/builder/builderUtils.js +31 -5
- package/lib/save/JsonPrinter.d.ts +1 -1
- package/lib/save/JsonPrinter.d.ts.map +1 -1
- package/lib/save/JsonPrinter.js +2 -2
- package/lib/save/PrinterBuilder.d.ts +22 -0
- package/lib/save/PrinterBuilder.d.ts.map +1 -1
- package/lib/save/PrinterBuilder.js +54 -1
- package/lib/save/arkir/ArkIRClassPrinter.d.ts +14 -0
- package/lib/save/arkir/ArkIRClassPrinter.d.ts.map +1 -0
- package/lib/save/arkir/ArkIRClassPrinter.js +92 -0
- package/lib/save/arkir/ArkIRFieldPrinter.d.ts +12 -0
- package/lib/save/arkir/ArkIRFieldPrinter.d.ts.map +1 -0
- package/lib/save/arkir/ArkIRFieldPrinter.js +64 -0
- package/lib/save/arkir/ArkIRFilePrinter.d.ts +13 -0
- package/lib/save/arkir/ArkIRFilePrinter.d.ts.map +1 -0
- package/lib/save/arkir/ArkIRFilePrinter.js +54 -0
- package/lib/save/arkir/ArkIRMethodPrinter.d.ts +17 -0
- package/lib/save/arkir/ArkIRMethodPrinter.d.ts.map +1 -0
- package/lib/save/arkir/ArkIRMethodPrinter.js +159 -0
- package/lib/save/arkir/ArkIRNamespacePrinter.d.ts +12 -0
- package/lib/save/arkir/ArkIRNamespacePrinter.d.ts.map +1 -0
- package/lib/save/arkir/ArkIRNamespacePrinter.js +66 -0
- package/lib/save/base/BasePrinter.d.ts +24 -0
- package/lib/save/base/BasePrinter.d.ts.map +1 -0
- package/lib/save/base/BasePrinter.js +70 -0
- package/lib/save/base/ExportPrinter.d.ts +9 -0
- package/lib/save/base/ExportPrinter.d.ts.map +1 -0
- package/lib/save/base/ExportPrinter.js +67 -0
- package/lib/save/base/ImportPrinter.d.ts +10 -0
- package/lib/save/base/ImportPrinter.d.ts.map +1 -0
- package/lib/save/base/ImportPrinter.js +92 -0
- package/lib/save/{source/SourceUtils.d.ts → base/PrinterUtils.d.ts} +2 -2
- package/lib/save/{source/SourceUtils.d.ts.map → base/PrinterUtils.d.ts.map} +1 -1
- package/lib/save/{source/SourceUtils.js → base/PrinterUtils.js} +10 -10
- package/lib/save/source/SourceBase.d.ts +2 -11
- package/lib/save/source/SourceBase.d.ts.map +1 -1
- package/lib/save/source/SourceBase.js +3 -25
- package/lib/save/source/SourceBody.js +3 -3
- package/lib/save/source/SourceClass.d.ts +2 -1
- package/lib/save/source/SourceClass.d.ts.map +1 -1
- package/lib/save/source/SourceClass.js +18 -17
- package/lib/save/source/SourceFilePrinter.d.ts +1 -1
- package/lib/save/source/SourceFilePrinter.d.ts.map +1 -1
- package/lib/save/source/SourceFilePrinter.js +9 -10
- package/lib/save/source/SourceMethod.d.ts +1 -1
- package/lib/save/source/SourceMethod.d.ts.map +1 -1
- package/lib/save/source/SourceMethod.js +37 -22
- package/lib/save/source/SourceNamespace.d.ts.map +1 -1
- package/lib/save/source/SourceNamespace.js +6 -6
- package/lib/save/source/SourceStmt.d.ts +1 -1
- package/lib/save/source/SourceStmt.d.ts.map +1 -1
- package/lib/save/source/SourceStmt.js +29 -42
- package/lib/save/source/SourceTransformer.d.ts +3 -1
- package/lib/save/source/SourceTransformer.d.ts.map +1 -1
- package/lib/save/source/SourceTransformer.js +65 -29
- package/package.json +1 -1
- package/lib/core/common/BodyBuilder.d.ts.map +0 -1
- package/lib/core/common/CfgBuilder.d.ts.map +0 -1
- package/lib/core/common/CfgBuilder.js +0 -1886
- package/lib/save/source/SourceModule.d.ts +0 -16
- package/lib/save/source/SourceModule.d.ts.map +0 -1
- package/lib/save/source/SourceModule.js +0 -125
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceBase.d.ts","sourceRoot":"","sources":["../../../src/save/source/SourceBase.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"SourceBase.d.ts","sourceRoot":"","sources":["../../../src/save/source/SourceBase.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,8BAAsB,UAClB,SAAQ,WACR,YAAW,kBAAkB;IAE7B,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,SAAS,EAAE,OAAO,CAAS;gBAElB,OAAO,EAAE,OAAO,EAAE,MAAM,GAAE,MAAW;IAKjD,wBAAwB,IAAI,YAAY,GAAG,SAAS;IAIpD,UAAU,IAAI,OAAO;IAIrB,SAAS,CAAC,SAAS,EAAE,eAAe,GAAG,SAAS,GAAG,IAAI;IAIvD,QAAQ,CAAC,SAAS,EAAE,cAAc,GAAG,QAAQ,GAAG,IAAI;IAIpD,UAAU,IAAI,aAAa;IAI3B,cAAc,CAAC,IAAI,EAAE,KAAK,GAAG,MAAM;IAInC,iBAAiB,IAAI,OAAO;IAInC,SAAS,CAAC,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM;CAmB3D"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c) 2024 Huawei Device Co., Ltd.
|
|
3
|
+
* Copyright (c) 2024-2025 Huawei Device Co., Ltd.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
6
6
|
* You may obtain a copy of the License at
|
|
@@ -15,9 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.SourceBase = void 0;
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
class SourceBase extends Printer_1.Printer {
|
|
18
|
+
const BasePrinter_1 = require("../base/BasePrinter");
|
|
19
|
+
class SourceBase extends BasePrinter_1.BasePrinter {
|
|
21
20
|
constructor(arkFile, indent = '') {
|
|
22
21
|
super(indent);
|
|
23
22
|
this.inBuilder = false;
|
|
@@ -44,15 +43,6 @@ class SourceBase extends Printer_1.Printer {
|
|
|
44
43
|
isInBuilderMethod() {
|
|
45
44
|
return this.inBuilder;
|
|
46
45
|
}
|
|
47
|
-
printDecorator(docorator) {
|
|
48
|
-
docorator.forEach((value) => {
|
|
49
|
-
this.printer.writeIndent().writeLine(`@${value.getContent()}`);
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
modifiersToString(modifiers) {
|
|
53
|
-
let modifiersStr = (0, ArkBaseModel_1.modifiers2stringArray)(modifiers);
|
|
54
|
-
return modifiersStr.join(' ');
|
|
55
|
-
}
|
|
56
46
|
resolveKeywordType(keywordStr) {
|
|
57
47
|
// 'NumberKeyword | NullKeyword |
|
|
58
48
|
let types = [];
|
|
@@ -70,17 +60,5 @@ class SourceBase extends Printer_1.Printer {
|
|
|
70
60
|
}
|
|
71
61
|
return types.join(' | ');
|
|
72
62
|
}
|
|
73
|
-
resolveMethodName(name) {
|
|
74
|
-
if (name === '_Constructor') {
|
|
75
|
-
return 'constructor';
|
|
76
|
-
}
|
|
77
|
-
if (name.startsWith('Get-')) {
|
|
78
|
-
return name.replace('Get-', 'get ');
|
|
79
|
-
}
|
|
80
|
-
if (name.startsWith('Set-')) {
|
|
81
|
-
return name.replace('Set-', 'set ');
|
|
82
|
-
}
|
|
83
|
-
return name;
|
|
84
|
-
}
|
|
85
63
|
}
|
|
86
64
|
exports.SourceBase = SourceBase;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c) 2024 Huawei Device Co., Ltd.
|
|
3
|
+
* Copyright (c) 2024-2025 Huawei Device Co., Ltd.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
6
6
|
* You may obtain a copy of the License at
|
|
@@ -45,7 +45,7 @@ const ArkStream_1 = require("../ArkStream");
|
|
|
45
45
|
const SourceStmt_1 = require("./SourceStmt");
|
|
46
46
|
const CfgStructualAnalysis_1 = require("../../utils/CfgStructualAnalysis");
|
|
47
47
|
const ModelUtils_1 = require("../../core/common/ModelUtils");
|
|
48
|
-
const
|
|
48
|
+
const PrinterUtils_1 = require("../base/PrinterUtils");
|
|
49
49
|
const logger = logger_1.default.getLogger(logger_1.LOG_MODULE_TYPE.ARKANALYZER, 'SourceBody');
|
|
50
50
|
class SourceBody {
|
|
51
51
|
constructor(indent, method, inBuilder) {
|
|
@@ -104,7 +104,7 @@ class SourceBody {
|
|
|
104
104
|
this.tempCodeMap.set(temp, code);
|
|
105
105
|
}
|
|
106
106
|
transTemp2Code(temp) {
|
|
107
|
-
if (this.tempCodeMap.has(temp.getName()) &&
|
|
107
|
+
if (this.tempCodeMap.has(temp.getName()) && PrinterUtils_1.PrinterUtils.isTemp(temp.getName())) {
|
|
108
108
|
this.tempVisitor.add(temp.getName());
|
|
109
109
|
return this.tempCodeMap.get(temp.getName());
|
|
110
110
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ArkClass } from '../../core/model/ArkClass';
|
|
2
|
-
import {
|
|
2
|
+
import { SourceBase } from './SourceBase';
|
|
3
3
|
import { ArkNamespace } from '../../core/model/ArkNamespace';
|
|
4
|
+
import { Dump } from '../base/BasePrinter';
|
|
4
5
|
/**
|
|
5
6
|
* @category save
|
|
6
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceClass.d.ts","sourceRoot":"","sources":["../../../src/save/source/SourceClass.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,QAAQ,EAAiB,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"SourceClass.d.ts","sourceRoot":"","sources":["../../../src/save/source/SourceClass.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,QAAQ,EAAiB,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAO1C,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAG7D,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAE3C;;GAEG;AACH,qBAAa,WAAY,SAAQ,UAAU;IACvC,SAAS,CAAC,GAAG,EAAE,QAAQ,CAAC;IACxB,OAAO,CAAC,WAAW,CAAoB;gBAEpB,GAAG,EAAE,QAAQ,EAAE,MAAM,GAAE,MAAW;IAM9C,wBAAwB,IAAI,YAAY,GAAG,SAAS;IAIpD,OAAO,IAAI,MAAM;IAIjB,IAAI,IAAI,MAAM;IA4DrB,OAAO,CAAC,UAAU;IAwBlB,OAAO,CAAC,eAAe;IAmBvB,SAAS,CAAC,YAAY,IAAI,IAAI,EAAE;IAmBhC,OAAO,CAAC,WAAW;IAiBnB,OAAO,CAAC,oBAAoB;CAU/B;AAED,qBAAa,kBAAmB,SAAQ,WAAW;gBAC5B,GAAG,EAAE,QAAQ,EAAE,MAAM,GAAE,MAAW;IAI9C,OAAO,IAAI,MAAM;IAIjB,IAAI,IAAI,MAAM;CAIxB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c) 2024 Huawei Device Co., Ltd.
|
|
3
|
+
* Copyright (c) 2024-2025 Huawei Device Co., Ltd.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
6
6
|
* You may obtain a copy of the License at
|
|
@@ -21,7 +21,7 @@ const SourceBody_1 = require("./SourceBody");
|
|
|
21
21
|
const SourceField_1 = require("./SourceField");
|
|
22
22
|
const SourceMethod_1 = require("./SourceMethod");
|
|
23
23
|
const SourceTransformer_1 = require("./SourceTransformer");
|
|
24
|
-
const
|
|
24
|
+
const PrinterUtils_1 = require("../base/PrinterUtils");
|
|
25
25
|
const Const_1 = require("../../core/common/Const");
|
|
26
26
|
const ArkField_1 = require("../../core/model/ArkField");
|
|
27
27
|
const ArkMetadata_1 = require("../../core/model/ArkMetadata");
|
|
@@ -42,6 +42,12 @@ class SourceClass extends SourceBase_1.SourceBase {
|
|
|
42
42
|
}
|
|
43
43
|
dump() {
|
|
44
44
|
this.printer.clear();
|
|
45
|
+
if (this.cls.getCategory() === ArkClass_1.ClassCategory.OBJECT) {
|
|
46
|
+
return this.dumpObject();
|
|
47
|
+
}
|
|
48
|
+
if (this.cls.getCategory() === ArkClass_1.ClassCategory.TYPE_LITERAL) {
|
|
49
|
+
return this.dumpTypeLiteral();
|
|
50
|
+
}
|
|
45
51
|
const commentsMetadata = this.cls.getMetadata(ArkMetadata_1.ArkMetadataKind.LEADING_COMMENTS);
|
|
46
52
|
if (commentsMetadata instanceof ArkMetadata_1.CommentsMetadata) {
|
|
47
53
|
const comments = commentsMetadata.getComments();
|
|
@@ -49,19 +55,13 @@ class SourceClass extends SourceBase_1.SourceBase {
|
|
|
49
55
|
this.printer.writeIndent().writeLine(comment.content);
|
|
50
56
|
});
|
|
51
57
|
}
|
|
52
|
-
if (this.cls.getCategory() === ArkClass_1.ClassCategory.OBJECT) {
|
|
53
|
-
return this.dumpObject();
|
|
54
|
-
}
|
|
55
|
-
if (this.cls.getCategory() === ArkClass_1.ClassCategory.TYPE_LITERAL) {
|
|
56
|
-
return this.dumpTypeLiteral();
|
|
57
|
-
}
|
|
58
58
|
this.printDecorator(this.cls.getDecorators());
|
|
59
59
|
// print export class name<> + extends c0 implements x1, x2 {
|
|
60
60
|
this.printer
|
|
61
61
|
.writeIndent()
|
|
62
62
|
.writeSpace(this.modifiersToString(this.cls.getModifiers()))
|
|
63
|
-
.write(`${
|
|
64
|
-
if (!
|
|
63
|
+
.write(`${this.classOriginTypeToString(this.cls.getCategory())} `);
|
|
64
|
+
if (!PrinterUtils_1.PrinterUtils.isAnonymousClass(this.cls.getName())) {
|
|
65
65
|
this.printer.write(this.cls.getName());
|
|
66
66
|
}
|
|
67
67
|
const genericsTypes = this.cls.getGenericsTypes();
|
|
@@ -85,7 +85,7 @@ class SourceClass extends SourceBase_1.SourceBase {
|
|
|
85
85
|
});
|
|
86
86
|
this.printer.decIndent();
|
|
87
87
|
this.printer.writeIndent().write('}');
|
|
88
|
-
if (!
|
|
88
|
+
if (!PrinterUtils_1.PrinterUtils.isAnonymousClass(this.cls.getName())) {
|
|
89
89
|
this.printer.writeLine('');
|
|
90
90
|
}
|
|
91
91
|
return this.printer.toString();
|
|
@@ -93,8 +93,8 @@ class SourceClass extends SourceBase_1.SourceBase {
|
|
|
93
93
|
dumpObject() {
|
|
94
94
|
this.printer.write('{');
|
|
95
95
|
this.cls.getFields().forEach((field, index, array) => {
|
|
96
|
-
let name =
|
|
97
|
-
if (
|
|
96
|
+
let name = PrinterUtils_1.PrinterUtils.escape(field.getName());
|
|
97
|
+
if (PrinterUtils_1.PrinterUtils.isIdentifierText(field.getName())) {
|
|
98
98
|
this.printer.write(name);
|
|
99
99
|
}
|
|
100
100
|
else {
|
|
@@ -114,8 +114,8 @@ class SourceClass extends SourceBase_1.SourceBase {
|
|
|
114
114
|
dumpTypeLiteral() {
|
|
115
115
|
this.printer.write('{');
|
|
116
116
|
this.cls.getFields().forEach((field, index, array) => {
|
|
117
|
-
let name =
|
|
118
|
-
if (
|
|
117
|
+
let name = PrinterUtils_1.PrinterUtils.escape(field.getName());
|
|
118
|
+
if (PrinterUtils_1.PrinterUtils.isIdentifierText(field.getName())) {
|
|
119
119
|
this.printer.write(`${name}: ${this.transformer.typeToString(field.getType())}`);
|
|
120
120
|
}
|
|
121
121
|
else {
|
|
@@ -131,13 +131,14 @@ class SourceClass extends SourceBase_1.SourceBase {
|
|
|
131
131
|
printMethods() {
|
|
132
132
|
let items = [];
|
|
133
133
|
for (let method of this.cls.getMethods()) {
|
|
134
|
-
if (method.isGenerated() ||
|
|
134
|
+
if (method.isGenerated() ||
|
|
135
|
+
(PrinterUtils_1.PrinterUtils.isConstructorMethod(method.getName()) && this.cls.hasViewTree())) {
|
|
135
136
|
continue;
|
|
136
137
|
}
|
|
137
138
|
if (method.isDefaultArkMethod()) {
|
|
138
139
|
items.push(...new SourceMethod_1.SourceMethod(method, this.printer.getIndent()).dumpDefaultMethod());
|
|
139
140
|
}
|
|
140
|
-
else if (!
|
|
141
|
+
else if (!PrinterUtils_1.PrinterUtils.isAnonymousMethod(method.getName())) {
|
|
141
142
|
items.push(new SourceMethod_1.SourceMethod(method, this.printer.getIndent()));
|
|
142
143
|
}
|
|
143
144
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceFilePrinter.d.ts","sourceRoot":"","sources":["../../../src/save/source/SourceFilePrinter.ts"],"names":[],"mappings":"AAkCA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"SourceFilePrinter.d.ts","sourceRoot":"","sources":["../../../src/save/source/SourceFilePrinter.ts"],"names":[],"mappings":"AAkCA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAO3C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,OAAO;IAC1C,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,IAAI,EAAE,CAAM;gBAEP,OAAO,EAAE,OAAO;IAKrB,IAAI,IAAI,MAAM;CA2CxB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c) 2024 Huawei Device Co., Ltd.
|
|
3
|
+
* Copyright (c) 2024-2025 Huawei Device Co., Ltd.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
6
6
|
* You may obtain a copy of the License at
|
|
@@ -15,12 +15,13 @@
|
|
|
15
15
|
*/
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.SourceFilePrinter = void 0;
|
|
18
|
-
const Printer_1 = require("../Printer");
|
|
19
18
|
const SourceClass_1 = require("./SourceClass");
|
|
20
19
|
const SourceMethod_1 = require("./SourceMethod");
|
|
21
|
-
const SourceModule_1 = require("./SourceModule");
|
|
22
20
|
const SourceNamespace_1 = require("./SourceNamespace");
|
|
23
|
-
const
|
|
21
|
+
const PrinterUtils_1 = require("../base/PrinterUtils");
|
|
22
|
+
const ImportPrinter_1 = require("../base/ImportPrinter");
|
|
23
|
+
const ExportPrinter_1 = require("../base/ExportPrinter");
|
|
24
|
+
const Printer_1 = require("../Printer");
|
|
24
25
|
/**
|
|
25
26
|
* @category save
|
|
26
27
|
*/
|
|
@@ -33,9 +34,7 @@ class SourceFilePrinter extends Printer_1.Printer {
|
|
|
33
34
|
dump() {
|
|
34
35
|
this.printer.clear();
|
|
35
36
|
// print imports
|
|
36
|
-
|
|
37
|
-
this.items.push(new SourceModule_1.SourceImportInfo(info));
|
|
38
|
-
}
|
|
37
|
+
this.items.push(...(0, ImportPrinter_1.printImports)(this.arkFile.getImportInfos(), this.printer.getIndent()));
|
|
39
38
|
// print namespace
|
|
40
39
|
for (let ns of this.arkFile.getNamespaces()) {
|
|
41
40
|
this.items.push(new SourceNamespace_1.SourceNamespace(ns));
|
|
@@ -47,18 +46,18 @@ class SourceFilePrinter extends Printer_1.Printer {
|
|
|
47
46
|
if (method.isDefaultArkMethod()) {
|
|
48
47
|
this.items.push(...new SourceMethod_1.SourceMethod(method, this.printer.getIndent()).dumpDefaultMethod());
|
|
49
48
|
}
|
|
50
|
-
else if (!
|
|
49
|
+
else if (!PrinterUtils_1.PrinterUtils.isAnonymousMethod(method.getName())) {
|
|
51
50
|
this.items.push(new SourceMethod_1.SourceMethod(method));
|
|
52
51
|
}
|
|
53
52
|
}
|
|
54
53
|
}
|
|
55
|
-
else if (!
|
|
54
|
+
else if (!PrinterUtils_1.PrinterUtils.isAnonymousClass(cls.getName())) {
|
|
56
55
|
this.items.push(new SourceClass_1.SourceClass(cls));
|
|
57
56
|
}
|
|
58
57
|
}
|
|
59
58
|
// print export
|
|
60
59
|
for (let info of this.arkFile.getExportInfos()) {
|
|
61
|
-
this.items.push(new
|
|
60
|
+
this.items.push(new ExportPrinter_1.ExportPrinter(info));
|
|
62
61
|
}
|
|
63
62
|
this.items.sort((a, b) => a.getLine() - b.getLine());
|
|
64
63
|
this.items.forEach((v) => {
|
|
@@ -16,7 +16,7 @@ export declare class SourceMethod extends SourceBase {
|
|
|
16
16
|
dumpDefaultMethod(): SourceStmt[];
|
|
17
17
|
private printMethod;
|
|
18
18
|
private printBody;
|
|
19
|
-
|
|
19
|
+
private methodProtoToString;
|
|
20
20
|
toArrowFunctionTypeString(): string;
|
|
21
21
|
private initInBuilder;
|
|
22
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceMethod.d.ts","sourceRoot":"","sources":["../../../src/save/source/SourceMethod.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI1C,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"SourceMethod.d.ts","sourceRoot":"","sources":["../../../src/save/source/SourceMethod.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI1C,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAK7D;;GAEG;AACH,qBAAa,YAAa,SAAQ,UAAU;IACxC,OAAO,CAAC,MAAM,CAAY;IAC1B,OAAO,CAAC,WAAW,CAAoB;gBAEpB,MAAM,EAAE,SAAS,EAAE,MAAM,GAAE,MAAW;IAOlD,wBAAwB,IAAI,YAAY,GAAG,SAAS;IAIpD,YAAY,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI;IAItC,IAAI,IAAI,MAAM;IAiBd,OAAO,IAAI,MAAM;IA4BjB,iBAAiB,IAAI,UAAU,EAAE;IAKxC,OAAO,CAAC,WAAW;IAoCnB,OAAO,CAAC,SAAS;IAKjB,OAAO,CAAC,mBAAmB;IAiDpB,yBAAyB,IAAI,MAAM;IAuB1C,OAAO,CAAC,aAAa;CAQxB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c) 2024 Huawei Device Co., Ltd.
|
|
3
|
+
* Copyright (c) 2024-2025 Huawei Device Co., Ltd.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
6
6
|
* You may obtain a copy of the License at
|
|
@@ -20,8 +20,9 @@ const ArkStream_1 = require("../ArkStream");
|
|
|
20
20
|
const SourceBase_1 = require("./SourceBase");
|
|
21
21
|
const SourceBody_1 = require("./SourceBody");
|
|
22
22
|
const SourceTransformer_1 = require("./SourceTransformer");
|
|
23
|
-
const
|
|
23
|
+
const PrinterUtils_1 = require("../base/PrinterUtils");
|
|
24
24
|
const ArkMetadata_1 = require("../../core/model/ArkMetadata");
|
|
25
|
+
const Position_1 = require("../../core/base/Position");
|
|
25
26
|
/**
|
|
26
27
|
* @category save
|
|
27
28
|
*/
|
|
@@ -57,6 +58,9 @@ class SourceMethod extends SourceBase_1.SourceBase {
|
|
|
57
58
|
}
|
|
58
59
|
getLine() {
|
|
59
60
|
let line = this.method.getLine();
|
|
61
|
+
if (line === null && this.method.getDeclareLineCols()) {
|
|
62
|
+
line = (0, Position_1.getLineNo)(this.method.getDeclareLineCols()[0]);
|
|
63
|
+
}
|
|
60
64
|
if (line === null) {
|
|
61
65
|
line = 0;
|
|
62
66
|
}
|
|
@@ -66,7 +70,9 @@ class SourceMethod extends SourceBase_1.SourceBase {
|
|
|
66
70
|
const stmts = [];
|
|
67
71
|
const cfg = this.method.getCfg();
|
|
68
72
|
if (cfg) {
|
|
69
|
-
cfg.getStmts()
|
|
73
|
+
cfg.getStmts()
|
|
74
|
+
.reverse()
|
|
75
|
+
.forEach((stmt) => stmts.push(stmt));
|
|
70
76
|
}
|
|
71
77
|
for (const stmt of stmts) {
|
|
72
78
|
if (stmt.getOriginPositionInfo().getLineNo() > 0) {
|
|
@@ -81,10 +87,19 @@ class SourceMethod extends SourceBase_1.SourceBase {
|
|
|
81
87
|
}
|
|
82
88
|
printMethod(method) {
|
|
83
89
|
this.printDecorator(method.getDecorators());
|
|
84
|
-
|
|
90
|
+
let implementationSig = method.getImplementationSignature();
|
|
91
|
+
if (this.method.getDeclareSignatures()) {
|
|
92
|
+
for (const methodSig of this.method.getDeclareSignatures()) {
|
|
93
|
+
this.printer.writeIndent().writeLine(`${this.methodProtoToString(methodSig)};`);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
if (!implementationSig) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
this.printer.writeIndent().write(this.methodProtoToString(implementationSig));
|
|
85
100
|
// abstract function no body
|
|
86
|
-
if (
|
|
87
|
-
this.printer.writeLine(
|
|
101
|
+
if (SourceMethod.getPrinterOptions().noMethodBody) {
|
|
102
|
+
this.printer.writeIndent().writeLine(`;`);
|
|
88
103
|
return;
|
|
89
104
|
}
|
|
90
105
|
this.printer.writeLine(' {');
|
|
@@ -92,7 +107,7 @@ class SourceMethod extends SourceBase_1.SourceBase {
|
|
|
92
107
|
this.printBody(method);
|
|
93
108
|
this.printer.decIndent();
|
|
94
109
|
this.printer.writeIndent();
|
|
95
|
-
if (
|
|
110
|
+
if (PrinterUtils_1.PrinterUtils.isAnonymousMethod(method.getName())) {
|
|
96
111
|
this.printer.write('}');
|
|
97
112
|
}
|
|
98
113
|
else {
|
|
@@ -103,29 +118,28 @@ class SourceMethod extends SourceBase_1.SourceBase {
|
|
|
103
118
|
let srcBody = new SourceBody_1.SourceBody(this.printer.getIndent(), method, this.inBuilder);
|
|
104
119
|
this.printer.write(srcBody.dump());
|
|
105
120
|
}
|
|
106
|
-
methodProtoToString(
|
|
121
|
+
methodProtoToString(methodSig) {
|
|
107
122
|
var _a;
|
|
108
123
|
let code = new ArkStream_1.ArkCodeBuffer();
|
|
109
|
-
code.writeSpace(this.modifiersToString(method.getModifiers()));
|
|
110
|
-
if (!
|
|
111
|
-
if ((_a = method.getDeclaringArkClass()) === null || _a === void 0 ? void 0 : _a.isDefaultArkClass()) {
|
|
124
|
+
code.writeSpace(this.modifiersToString(this.method.getModifiers()));
|
|
125
|
+
if (!PrinterUtils_1.PrinterUtils.isAnonymousMethod(methodSig.getMethodSubSignature().getMethodName())) {
|
|
126
|
+
if ((_a = this.method.getDeclaringArkClass()) === null || _a === void 0 ? void 0 : _a.isDefaultArkClass()) {
|
|
112
127
|
code.writeSpace('function');
|
|
113
128
|
}
|
|
114
|
-
if (method.getAsteriskToken()) {
|
|
129
|
+
if (this.method.getAsteriskToken()) {
|
|
115
130
|
code.writeSpace('*');
|
|
116
131
|
}
|
|
117
|
-
code.write(this.resolveMethodName(
|
|
132
|
+
code.write(this.resolveMethodName(methodSig.getMethodSubSignature().getMethodName()));
|
|
118
133
|
}
|
|
119
|
-
const genericTypes = method.getGenericTypes();
|
|
134
|
+
const genericTypes = this.method.getGenericTypes();
|
|
120
135
|
if (genericTypes && genericTypes.length > 0) {
|
|
121
|
-
let typeParameters = [];
|
|
122
|
-
genericTypes.forEach((genericType) => {
|
|
123
|
-
typeParameters.push(this.transformer.typeToString(genericType));
|
|
124
|
-
});
|
|
125
136
|
code.write(`<${this.transformer.typeArrayToString(genericTypes)}>`);
|
|
126
137
|
}
|
|
127
138
|
let parameters = [];
|
|
128
|
-
|
|
139
|
+
methodSig
|
|
140
|
+
.getMethodSubSignature()
|
|
141
|
+
.getParameters()
|
|
142
|
+
.forEach((parameter) => {
|
|
129
143
|
let str = parameter.getName();
|
|
130
144
|
if (parameter.hasDotDotDotToken()) {
|
|
131
145
|
str = `...${parameter.getName()}`;
|
|
@@ -139,11 +153,12 @@ class SourceMethod extends SourceBase_1.SourceBase {
|
|
|
139
153
|
parameters.push(str);
|
|
140
154
|
});
|
|
141
155
|
code.write(`(${parameters.join(', ')})`);
|
|
142
|
-
const returnType =
|
|
143
|
-
if (
|
|
156
|
+
const returnType = methodSig.getMethodSubSignature().getReturnType();
|
|
157
|
+
if (methodSig.getMethodSubSignature().getMethodName() !== 'constructor' &&
|
|
158
|
+
!(returnType instanceof Type_1.UnknownType)) {
|
|
144
159
|
code.write(`: ${this.transformer.typeToString(returnType)}`);
|
|
145
160
|
}
|
|
146
|
-
if (
|
|
161
|
+
if (PrinterUtils_1.PrinterUtils.isAnonymousMethod(methodSig.getMethodSubSignature().getMethodName())) {
|
|
147
162
|
code.write(' =>');
|
|
148
163
|
}
|
|
149
164
|
return code.toString();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceNamespace.d.ts","sourceRoot":"","sources":["../../../src/save/source/SourceNamespace.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,
|
|
1
|
+
{"version":3,"file":"SourceNamespace.d.ts","sourceRoot":"","sources":["../../../src/save/source/SourceNamespace.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAO1C;;GAEG;AACH,qBAAa,eAAgB,SAAQ,UAAU;IAC3C,EAAE,EAAE,YAAY,CAAC;gBAEE,EAAE,EAAE,YAAY,EAAE,MAAM,GAAE,MAAW;IAKjD,OAAO,IAAI,MAAM;IAIjB,IAAI,IAAI,MAAM;CAsDxB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright (c) 2024 Huawei Device Co., Ltd.
|
|
3
|
+
* Copyright (c) 2024-2025 Huawei Device Co., Ltd.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
* you may not use this file except in compliance with the License.
|
|
6
6
|
* You may obtain a copy of the License at
|
|
@@ -19,8 +19,8 @@ const ArkMetadata_1 = require("../../core/model/ArkMetadata");
|
|
|
19
19
|
const SourceBase_1 = require("./SourceBase");
|
|
20
20
|
const SourceClass_1 = require("./SourceClass");
|
|
21
21
|
const SourceMethod_1 = require("./SourceMethod");
|
|
22
|
-
const
|
|
23
|
-
const
|
|
22
|
+
const PrinterUtils_1 = require("../base/PrinterUtils");
|
|
23
|
+
const ExportPrinter_1 = require("../base/ExportPrinter");
|
|
24
24
|
/**
|
|
25
25
|
* @category save
|
|
26
26
|
*/
|
|
@@ -46,7 +46,7 @@ class SourceNamespace extends SourceBase_1.SourceBase {
|
|
|
46
46
|
let items = [];
|
|
47
47
|
// print class
|
|
48
48
|
for (let cls of this.ns.getClasses()) {
|
|
49
|
-
if (
|
|
49
|
+
if (PrinterUtils_1.PrinterUtils.isAnonymousClass(cls.getName())) {
|
|
50
50
|
continue;
|
|
51
51
|
}
|
|
52
52
|
if (cls.isDefaultArkClass()) {
|
|
@@ -54,7 +54,7 @@ class SourceNamespace extends SourceBase_1.SourceBase {
|
|
|
54
54
|
if (method.isDefaultArkMethod()) {
|
|
55
55
|
items.push(...new SourceMethod_1.SourceMethod(method, this.printer.getIndent()).dumpDefaultMethod());
|
|
56
56
|
}
|
|
57
|
-
else if (!
|
|
57
|
+
else if (!PrinterUtils_1.PrinterUtils.isAnonymousMethod(method.getName())) {
|
|
58
58
|
items.push(new SourceMethod_1.SourceMethod(method, this.printer.getIndent()));
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -69,7 +69,7 @@ class SourceNamespace extends SourceBase_1.SourceBase {
|
|
|
69
69
|
}
|
|
70
70
|
// print exportInfos
|
|
71
71
|
for (let exportInfo of this.ns.getExportInfos()) {
|
|
72
|
-
items.push(new
|
|
72
|
+
items.push(new ExportPrinter_1.ExportPrinter(exportInfo, this.printer.getIndent()));
|
|
73
73
|
}
|
|
74
74
|
items.sort((a, b) => a.getLine() - b.getLine());
|
|
75
75
|
items.forEach((v) => {
|
|
@@ -5,9 +5,9 @@ import { AliasType } from '../../core/base/Type';
|
|
|
5
5
|
import { Value } from '../../core/base/Value';
|
|
6
6
|
import { BasicBlock } from '../../core/graph/BasicBlock';
|
|
7
7
|
import { ArkCodeBuffer } from '../ArkStream';
|
|
8
|
-
import { Dump } from './SourceBase';
|
|
9
8
|
import { StmtReader } from './SourceBody';
|
|
10
9
|
import { SourceTransformer, TransformerContext } from './SourceTransformer';
|
|
10
|
+
import { Dump } from '../base/BasePrinter';
|
|
11
11
|
export interface StmtPrinterContext extends TransformerContext {
|
|
12
12
|
getStmtReader(): StmtReader;
|
|
13
13
|
setTempCode(temp: string, code: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceStmt.d.ts","sourceRoot":"","sources":["../../../src/save/source/SourceStmt.ts"],"names":[],"mappings":"AAgBA,OAAO,EAEH,eAAe,EAIlB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAE9C,OAAO,EAEH,aAAa,EACb,SAAS,EACT,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,IAAI,EACP,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAmB,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"SourceStmt.d.ts","sourceRoot":"","sources":["../../../src/save/source/SourceStmt.ts"],"names":[],"mappings":"AAgBA,OAAO,EAEH,eAAe,EAIlB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAE9C,OAAO,EAEH,aAAa,EACb,SAAS,EACT,aAA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