@abaplint/core 2.102.66 → 2.102.67
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.
|
@@ -25,7 +25,12 @@ class ReduceBody {
|
|
|
25
25
|
scope.push(_scope_type_1.ScopeType.Let, "LET", node.getFirstToken().getStart(), filename);
|
|
26
26
|
scoped = true;
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
let foundType = targetType;
|
|
29
|
+
const source = i.findDirectExpression(Expressions.Source);
|
|
30
|
+
if (source) {
|
|
31
|
+
foundType = new source_1.Source().runSyntax(source, scope, filename, targetType);
|
|
32
|
+
}
|
|
33
|
+
const found = new inline_field_definition_1.InlineFieldDefinition().runSyntax(i, scope, filename, foundType);
|
|
29
34
|
if (found && first === undefined) {
|
|
30
35
|
first = found;
|
|
31
36
|
}
|
|
@@ -17,7 +17,7 @@ class StringTemplate {
|
|
|
17
17
|
}
|
|
18
18
|
else if ((typeUtils.isCharLike(type) === false && typeUtils.isHexLike(type) === false)
|
|
19
19
|
|| type instanceof basic_1.StructureType) {
|
|
20
|
-
throw new Error("
|
|
20
|
+
throw new Error("String template, not character like, " + type.constructor.name);
|
|
21
21
|
}
|
|
22
22
|
const format = templateSource.findDirectExpression(Expressions.StringTemplateFormatting);
|
|
23
23
|
const formatConcat = format === null || format === void 0 ? void 0 : format.concatTokens();
|
|
@@ -9,10 +9,17 @@ class AbstractFile {
|
|
|
9
9
|
return this.filename;
|
|
10
10
|
}
|
|
11
11
|
baseName() {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
let name = this.getFilename();
|
|
13
|
+
let index = name.lastIndexOf("\\");
|
|
14
|
+
if (index) {
|
|
15
|
+
index = index + 1;
|
|
16
|
+
}
|
|
17
|
+
name = name.substring(index);
|
|
18
|
+
index = name.lastIndexOf("/");
|
|
19
|
+
if (index) {
|
|
20
|
+
index = index + 1;
|
|
21
|
+
}
|
|
22
|
+
return name.substring(index);
|
|
16
23
|
}
|
|
17
24
|
getObjectType() {
|
|
18
25
|
var _a;
|
package/build/src/registry.js
CHANGED