@abaplint/core 2.113.246 → 2.113.247

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.
@@ -2463,7 +2463,6 @@ declare namespace Expressions {
2463
2463
  SQLArithmetics,
2464
2464
  SQLAsName,
2465
2465
  SQLCase,
2466
- SQLCast,
2467
2466
  SQLCDSParameters,
2468
2467
  SQLClient,
2469
2468
  SQLCompareOperator,
@@ -6196,10 +6195,6 @@ declare class SQLCase extends Expression {
6196
6195
  getRunnable(): IStatementRunnable;
6197
6196
  }
6198
6197
 
6199
- declare class SQLCast extends Expression {
6200
- getRunnable(): IStatementRunnable;
6201
- }
6202
-
6203
6198
  declare class SQLCDSParameters extends Expression {
6204
6199
  getRunnable(): IStatementRunnable;
6205
6200
  }
@@ -179,7 +179,6 @@ __exportStar(require("./sql_arithmetic_operator"), exports);
179
179
  __exportStar(require("./sql_arithmetics"), exports);
180
180
  __exportStar(require("./sql_as_name"), exports);
181
181
  __exportStar(require("./sql_case"), exports);
182
- __exportStar(require("./sql_cast"), exports);
183
182
  __exportStar(require("./sql_cds_parameters"), exports);
184
183
  __exportStar(require("./sql_client"), exports);
185
184
  __exportStar(require("./sql_compare_operator"), exports);
@@ -12,7 +12,7 @@ class SQLField extends combi_1.Expression {
12
12
  const abap = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), _1.SimpleFieldChain2), version_1.Version.OpenABAP);
13
13
  const as = (0, combi_1.seq)("AS", _1.SQLAsName);
14
14
  const parenFieldName = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WParenLeftW), _1.SQLFieldName, (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.WParenRightW), (0, combi_1.tok)(tokens_1.WParenRight)));
15
- const field = (0, combi_1.altPrio)(_1.SQLAggregation, _1.SQLCase, _1.SQLCast, sql_function_1.SQLFunction, sql_path_1.SQLPath, _1.SQLFieldName, abap, _1.Constant, parenFieldName);
15
+ const field = (0, combi_1.altPrio)(_1.SQLAggregation, _1.SQLCase, sql_function_1.SQLFunction, sql_path_1.SQLPath, _1.SQLFieldName, abap, _1.Constant, parenFieldName);
16
16
  const parenField = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WParenLeftW), field, (0, combi_1.tok)(tokens_1.WParenRightW));
17
17
  const sub = (0, combi_1.plusPrio)((0, combi_1.seq)((0, combi_1.altPrio)("+", "-", "*", "/", "&&"), (0, combi_1.altPrio)(parenField, field)));
18
18
  const arith = (0, combi_1.ver)(version_1.Version.v740sp05, sub);
@@ -8,10 +8,11 @@ const integer_1 = require("./integer");
8
8
  const sql_function_input_1 = require("./sql_function_input");
9
9
  class SQLFunction extends combi_1.Expression {
10
10
  getRunnable() {
11
- const castTypes = (0, combi_1.altPrio)((0, combi_1.seq)("CHAR", (0, combi_1.optPrio)((0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), integer_1.Integer, (0, combi_1.tok)(tokens_1.WParenRightW)))), (0, combi_1.seq)("DEC", (0, combi_1.tok)(tokens_1.ParenLeftW), integer_1.Integer, ",", integer_1.Integer, (0, combi_1.tok)(tokens_1.WParenRightW)), (0, combi_1.seq)("NUMC", (0, combi_1.optPrio)((0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), integer_1.Integer, (0, combi_1.tok)(tokens_1.WParenRightW)))), "FLTP", "INT2", "INT4", "INT8");
11
+ const castTypes = (0, combi_1.altPrio)((0, combi_1.seq)("CHAR", (0, combi_1.optPrio)((0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), integer_1.Integer, (0, combi_1.tok)(tokens_1.WParenRightW)))), (0, combi_1.seq)("DEC", (0, combi_1.tok)(tokens_1.ParenLeftW), integer_1.Integer, ",", integer_1.Integer, (0, combi_1.tok)(tokens_1.WParenRightW)), (0, combi_1.seq)("NUMC", (0, combi_1.optPrio)((0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), integer_1.Integer, (0, combi_1.tok)(tokens_1.WParenRightW)))), "DATS", "FLTP", "INT2", "INT4", "INT8");
12
12
  const commaParam = (0, combi_1.seq)(",", sql_function_input_1.SQLFunctionInput);
13
13
  // note: the function names are not keywords, they are usually in lower case
14
14
  const abs = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.regex)(/^abs$/i), (0, combi_1.tok)(tokens_1.ParenLeftW), sql_function_input_1.SQLFunctionInput, (0, combi_1.tok)(tokens_1.WParenRightW)));
15
+ // yea, 750 is correct, but it also works technically in version v740sp05
15
16
  const cast = (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.seq)((0, combi_1.regex)(/^cast$/i), (0, combi_1.tok)(tokens_1.ParenLeftW), sql_function_input_1.SQLFunctionInput, "AS", castTypes, (0, combi_1.tok)(tokens_1.WParenRightW)));
16
17
  const ceil = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.regex)(/^ceil$/i), (0, combi_1.tok)(tokens_1.ParenLeftW), sql_function_input_1.SQLFunctionInput, (0, combi_1.tok)(tokens_1.WParenRightW)));
17
18
  const coalesce = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.regex)(/^coalesce$/i), (0, combi_1.tok)(tokens_1.ParenLeftW), sql_function_input_1.SQLFunctionInput, commaParam, (0, combi_1.optPrio)(commaParam), (0, combi_1.tok)(tokens_1.WParenRightW)));
@@ -30,6 +30,7 @@ class ABAPObject extends _abstract_object_1.AbstractObject {
30
30
  setDirty() {
31
31
  this.syntaxResult = undefined;
32
32
  this.texts = undefined;
33
+ this.parsed = [];
33
34
  super.setDirty();
34
35
  }
35
36
  getABAPFiles() {
@@ -22,6 +22,7 @@ class AbstractObject {
22
22
  return this.name;
23
23
  }
24
24
  setDirty() {
25
+ this.old = [];
25
26
  this.dirty = true;
26
27
  }
27
28
  addFile(file) {
@@ -74,7 +74,7 @@ class Registry {
74
74
  }
75
75
  static abaplintVersion() {
76
76
  // magic, see build script "version.sh"
77
- return "2.113.246";
77
+ return "2.113.247";
78
78
  }
79
79
  getDDICReferences() {
80
80
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.113.246",
3
+ "version": "2.113.247",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SQLCast = void 0;
4
- const _1 = require(".");
5
- const version_1 = require("../../../version");
6
- const tokens_1 = require("../../1_lexer/tokens");
7
- const combi_1 = require("../combi");
8
- const sql_field_name_1 = require("./sql_field_name");
9
- class SQLCast extends combi_1.Expression {
10
- getRunnable() {
11
- const abap = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), _1.SimpleFieldChain2), version_1.Version.OpenABAP);
12
- // todo: from version something
13
- return (0, combi_1.seq)("CAST", "(", (0, combi_1.opt)((0, combi_1.altPrio)(sql_field_name_1.SQLFieldName, abap)), "AS", sql_field_name_1.SQLFieldName, ")");
14
- }
15
- }
16
- exports.SQLCast = SQLCast;
17
- //# sourceMappingURL=sql_cast.js.map