@abaplint/transpiler 2.0.50 → 2.0.51
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.
|
@@ -51,9 +51,15 @@ class SQLiteDatabaseSchema {
|
|
|
51
51
|
// it will be fine, the runtime representation of xstring is also text
|
|
52
52
|
return `TEXT`;
|
|
53
53
|
}
|
|
54
|
+
else if (type instanceof abaplint.BasicTypes.HexType) {
|
|
55
|
+
return `NCHAR(${type.getLength() * 2})`;
|
|
56
|
+
}
|
|
54
57
|
else if (type instanceof abaplint.BasicTypes.IntegerType) {
|
|
55
58
|
return `INT`;
|
|
56
59
|
}
|
|
60
|
+
else if (type instanceof abaplint.BasicTypes.PackedType) {
|
|
61
|
+
return `DECIMAL(${type.getLength()},${type.getDecimals()})`;
|
|
62
|
+
}
|
|
57
63
|
else if (type instanceof abaplint.BasicTypes.VoidType) {
|
|
58
64
|
throw `Type of ${table}-${fieldname} is VoidType(${type.getVoided()}), make sure the type is know, enable strict syntax checking`;
|
|
59
65
|
}
|
|
@@ -13,7 +13,7 @@ class MethodImplementationTranspiler {
|
|
|
13
13
|
let methodName = token.getStr();
|
|
14
14
|
const scope = traversal.findCurrentScopeByToken(token);
|
|
15
15
|
if (scope === undefined) {
|
|
16
|
-
throw new Error("MethodTranspiler, scope not found");
|
|
16
|
+
throw new Error("MethodTranspiler, scope not found, " + methodName);
|
|
17
17
|
}
|
|
18
18
|
else if (scope.getIdentifier().sname !== methodName) {
|
|
19
19
|
throw new Error("MethodTranspiler, wrong scope found, " + scope.getIdentifier().sname);
|