@abaplint/core 2.118.6 → 2.118.7

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.
@@ -17,6 +17,8 @@ class Submit {
17
17
  const exporting = (0, combi_1.str)("EXPORTING LIST TO MEMORY");
18
18
  const spool = (0, combi_1.seq)("SPOOL PARAMETERS", expressions_1.Source);
19
19
  const archive = (0, combi_1.seq)("ARCHIVE PARAMETERS", expressions_1.Source);
20
+ const archiveMode = (0, combi_1.seq)("ARCHIVE MODE", expressions_1.Source);
21
+ const receiver = (0, combi_1.seq)("RECEIVER", expressions_1.Source);
20
22
  const lineSize = (0, combi_1.seq)("LINE-SIZE", expressions_1.Source);
21
23
  const lineCount = (0, combi_1.seq)("LINE-COUNT", expressions_1.Source);
22
24
  const user = (0, combi_1.seq)("USER", expressions_1.Source);
@@ -35,7 +37,7 @@ class Submit {
35
37
  const imm = (0, combi_1.seq)("IMMEDIATELY", expressions_1.Source);
36
38
  const dest = (0, combi_1.seq)("DESTINATION", expressions_1.Source);
37
39
  const language = (0, combi_1.seq)("LANGUAGE", expressions_1.Source);
38
- const perm = (0, combi_1.per)((0, combi_1.plus)(awith), selectionTable, (0, combi_1.plus)(awith), spool, lineSize, lineCount, archive, user, sset, ssetp, keep, cover, imm, layout, dest, coverText, listName, language, free, newList, uss, copies, datasetExpiration, "TO SAP-SPOOL", "WITHOUT SPOOL DYNPRO", "VIA SELECTION-SCREEN", exporting, expressions_1.AndReturn, job);
40
+ const perm = (0, combi_1.per)((0, combi_1.plus)(awith), selectionTable, (0, combi_1.plus)(awith), (0, combi_1.plus)(awith), spool, lineSize, lineCount, archive, archiveMode, receiver, user, sset, ssetp, keep, cover, imm, layout, dest, coverText, listName, language, free, newList, uss, copies, datasetExpiration, "TO SAP-SPOOL", "WITHOUT SPOOL DYNPRO", "VIA SELECTION-SCREEN", exporting, expressions_1.AndReturn, job);
39
41
  const ret = (0, combi_1.seq)("SUBMIT", prog, (0, combi_1.opt)(perm));
40
42
  return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
41
43
  }
@@ -74,7 +74,7 @@ class Registry {
74
74
  }
75
75
  static abaplintVersion() {
76
76
  // magic, see build script "version.sh"
77
- return "2.118.6";
77
+ return "2.118.7";
78
78
  }
79
79
  getDDICReferences() {
80
80
  return this.ddicReferences;
@@ -56,11 +56,17 @@ MODIFY TABLE foo FROM bar.`,
56
56
  match = this.tryMatch(statement, this.reg, Statements.DeleteDatabase);
57
57
  }
58
58
  else if (statement.get() instanceof Statements.ModifyInternal) {
59
- match = this.tryMatch(statement, this.reg, Statements.ModifyDatabase);
59
+ match = this.tryMatch(statement, this.reg, Statements.ModifyDatabase) || this.isBareStatement(statement);
60
60
  }
61
61
  else if (statement.get() instanceof Statements.ModifyDatabase) {
62
62
  match = this.tryMatch(statement, this.reg, Statements.ModifyInternal);
63
63
  }
64
+ else if (statement.get() instanceof Statements.InsertDatabase) {
65
+ match = this.isBareStatement(statement);
66
+ }
67
+ else if (statement.get() instanceof Statements.UpdateDatabase) {
68
+ match = this.isBareStatement(statement);
69
+ }
64
70
  if (match) {
65
71
  const issue = issue_1.Issue.atStatement(file, statement, this.getMessage(), this.getMetadata().key, this.conf.severity);
66
72
  issues.push(issue);
@@ -68,6 +74,11 @@ MODIFY TABLE foo FROM bar.`,
68
74
  }
69
75
  return issues;
70
76
  }
77
+ isBareStatement(st) {
78
+ const tokens = st.getTokens().slice(0);
79
+ tokens.pop();
80
+ return tokens.length === 2;
81
+ }
71
82
  tryMatch(st, reg, type1) {
72
83
  const ver = reg.getConfig().getVersion();
73
84
  const tokens = st.getTokens().slice(0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.118.6",
3
+ "version": "2.118.7",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",