@abaplint/core 2.102.61 → 2.102.62
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/build/src/abap/1_lexer/tokens/_token.js +3 -0
- package/build/src/abap/5_syntax/expressions/sql_compare.js +4 -0
- package/build/src/abap/5_syntax/spaghetti_scope.js +3 -0
- package/build/src/abap/types/_typed_identifier.js +3 -0
- package/build/src/objects/_abap_object.js +3 -0
- package/build/src/registry.js +1 -1
- package/package.json +1 -1
|
@@ -3,6 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Token = void 0;
|
|
4
4
|
const position_1 = require("../../../position");
|
|
5
5
|
class Token {
|
|
6
|
+
[Symbol.for("debug.description")]() {
|
|
7
|
+
return `${this.constructor.name} ${this.str}`;
|
|
8
|
+
}
|
|
6
9
|
constructor(start, str) {
|
|
7
10
|
this.start = start;
|
|
8
11
|
this.str = str;
|
|
@@ -4,12 +4,16 @@ exports.SQLCompare = void 0;
|
|
|
4
4
|
const Expressions = require("../../2_statements/expressions");
|
|
5
5
|
const nodes_1 = require("../../nodes");
|
|
6
6
|
const basic_1 = require("../../types/basic");
|
|
7
|
+
const source_1 = require("./source");
|
|
7
8
|
const sql_source_1 = require("./sql_source");
|
|
8
9
|
class SQLCompare {
|
|
9
10
|
runSyntax(node, scope, filename, tables) {
|
|
10
11
|
var _a;
|
|
11
12
|
let sourceType;
|
|
12
13
|
let token;
|
|
14
|
+
for (const s of node.findAllExpressions(Expressions.SimpleSource3)) {
|
|
15
|
+
new source_1.Source().runSyntax(s, scope, filename);
|
|
16
|
+
}
|
|
13
17
|
for (const s of node.findAllExpressions(Expressions.SQLSource)) {
|
|
14
18
|
for (const child of s.getChildren()) {
|
|
15
19
|
if (child instanceof nodes_1.ExpressionNode) {
|
|
@@ -23,6 +23,9 @@ class ScopeData {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
class SpaghettiScopeNode extends ScopeData {
|
|
26
|
+
[Symbol.for("debug.description")]() {
|
|
27
|
+
return `SpaghettiSN ${this.identifier.sname} ${this.identifier.stype}`;
|
|
28
|
+
}
|
|
26
29
|
constructor(identifier, parent) {
|
|
27
30
|
super();
|
|
28
31
|
this.identifier = identifier;
|
|
@@ -3,6 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TypedIdentifier = void 0;
|
|
4
4
|
const _identifier_1 = require("../4_file_information/_identifier");
|
|
5
5
|
class TypedIdentifier extends _identifier_1.Identifier {
|
|
6
|
+
[Symbol.for("debug.description")]() {
|
|
7
|
+
return `${this.constructor.name} ${this.getName()}:${this.getType().constructor.name}`;
|
|
8
|
+
}
|
|
6
9
|
static from(id, type, meta) {
|
|
7
10
|
return new TypedIdentifier(id.getToken(), id.getFilename(), type, meta);
|
|
8
11
|
}
|
|
@@ -5,6 +5,9 @@ const _abstract_object_1 = require("./_abstract_object");
|
|
|
5
5
|
const xml_utils_1 = require("../xml_utils");
|
|
6
6
|
const abap_parser_1 = require("../abap/abap_parser");
|
|
7
7
|
class ABAPObject extends _abstract_object_1.AbstractObject {
|
|
8
|
+
[Symbol.for("debug.description")]() {
|
|
9
|
+
return `${this.constructor.name} ${this.getName()}`;
|
|
10
|
+
}
|
|
8
11
|
constructor(name) {
|
|
9
12
|
super(name);
|
|
10
13
|
this.parsed = [];
|
package/build/src/registry.js
CHANGED