@abaplint/core 2.120.64 → 2.120.65

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.
Files changed (167) hide show
  1. package/build/abaplint.d.ts +2 -154
  2. package/build/src/abap/2_statements/statements/create_data.js +1 -1
  3. package/build/src/abap/2_statements/statements/loop.js +1 -1
  4. package/build/src/abap/5_syntax/expressions/_check_text_symbol.js +56 -0
  5. package/build/src/abap/5_syntax/expressions/method_call_param.js +4 -0
  6. package/build/src/abap/5_syntax/expressions/method_parameters.js +4 -0
  7. package/build/src/abap/5_syntax/expressions/select.js +7 -0
  8. package/build/src/abap/5_syntax/statements/create_data.js +3 -0
  9. package/build/src/abap/5_syntax/statements/loop.js +10 -3
  10. package/build/src/abap/5_syntax/statements/move.js +28 -0
  11. package/build/src/abap/artifacts.js +33 -36
  12. package/build/src/objects/_abstract_object.js +3 -0
  13. package/build/src/objects/_unknown_object.js +0 -3
  14. package/build/src/objects/abap_query_functional_area.js +0 -4
  15. package/build/src/objects/abap_query_query.js +0 -4
  16. package/build/src/objects/activation_variant.js +0 -4
  17. package/build/src/objects/api_release_state.js +0 -4
  18. package/build/src/objects/application_descriptors_fiori.js +0 -4
  19. package/build/src/objects/application_job_catalog_entry.js +0 -4
  20. package/build/src/objects/application_job_template.js +0 -4
  21. package/build/src/objects/application_log_object.js +0 -4
  22. package/build/src/objects/assignment_service_to_authorization_group.js +0 -4
  23. package/build/src/objects/atc_check_category.js +0 -4
  24. package/build/src/objects/atc_check_object.js +0 -4
  25. package/build/src/objects/atc_check_variant.js +0 -4
  26. package/build/src/objects/authorization_check_field.js +0 -4
  27. package/build/src/objects/authorization_group.js +0 -4
  28. package/build/src/objects/authorization_object.js +0 -4
  29. package/build/src/objects/authorization_object_class.js +0 -4
  30. package/build/src/objects/authorization_object_extension.js +0 -4
  31. package/build/src/objects/badi_definition.js +0 -4
  32. package/build/src/objects/behavior_definition.js +0 -4
  33. package/build/src/objects/brf_plus_system_application.js +0 -4
  34. package/build/src/objects/bsp_application.js +0 -4
  35. package/build/src/objects/business_add_in_implementation.js +0 -4
  36. package/build/src/objects/business_catalog.js +0 -4
  37. package/build/src/objects/business_catalog_app_assignment.js +0 -4
  38. package/build/src/objects/business_configuration_maintenance_object.js +0 -4
  39. package/build/src/objects/business_configuration_set.js +0 -4
  40. package/build/src/objects/business_function_assignment.js +0 -4
  41. package/build/src/objects/business_function_set_assignment.js +0 -4
  42. package/build/src/objects/business_object_model.js +0 -4
  43. package/build/src/objects/business_object_type.js +0 -4
  44. package/build/src/objects/cds_entity_buffer.js +0 -4
  45. package/build/src/objects/cds_metadata_extension.js +5 -4
  46. package/build/src/objects/cds_type.js +0 -4
  47. package/build/src/objects/change_document.js +0 -4
  48. package/build/src/objects/chapter_of_book_structure.js +0 -4
  49. package/build/src/objects/checkpoint_group.js +0 -4
  50. package/build/src/objects/classification.js +0 -4
  51. package/build/src/objects/communication_scenario.js +0 -4
  52. package/build/src/objects/composite_enhancement_implementation.js +0 -4
  53. package/build/src/objects/composite_enhancement_spot.js +0 -4
  54. package/build/src/objects/concepts_of_package.js +0 -4
  55. package/build/src/objects/custom_data_browser_object.js +0 -4
  56. package/build/src/objects/customer_enhancement_project.js +0 -4
  57. package/build/src/objects/customizing_attributes.js +0 -4
  58. package/build/src/objects/customizing_img_activity.js +0 -4
  59. package/build/src/objects/customizing_transaction.js +0 -4
  60. package/build/src/objects/data_control.js +0 -4
  61. package/build/src/objects/datastore_object.js +0 -4
  62. package/build/src/objects/dialog_module.js +0 -4
  63. package/build/src/objects/documentation.js +0 -4
  64. package/build/src/objects/domain.js +2 -0
  65. package/build/src/objects/ecatt_test_configuration.js +0 -4
  66. package/build/src/objects/ecatt_test_data_container.js +0 -4
  67. package/build/src/objects/ecatt_test_script.js +0 -4
  68. package/build/src/objects/email_template.js +0 -4
  69. package/build/src/objects/enhancement_spot.js +0 -4
  70. package/build/src/objects/entity_type.js +0 -4
  71. package/build/src/objects/event_binding.js +0 -4
  72. package/build/src/objects/event_consumer.js +0 -4
  73. package/build/src/objects/field_catalog.js +0 -4
  74. package/build/src/objects/form_object_form.js +0 -4
  75. package/build/src/objects/form_object_interface.js +0 -4
  76. package/build/src/objects/format_type.js +0 -4
  77. package/build/src/objects/gateway_model.js +0 -4
  78. package/build/src/objects/gateway_model_metadata.js +0 -4
  79. package/build/src/objects/gateway_odata_group_and_assignment.js +0 -4
  80. package/build/src/objects/gateway_project.js +0 -4
  81. package/build/src/objects/gateway_service.js +0 -4
  82. package/build/src/objects/gateway_service_groups_metadata.js +0 -4
  83. package/build/src/objects/gateway_vocabulary_annotation.js +0 -4
  84. package/build/src/objects/general_hierarchy_storage_extrension_name.js +0 -4
  85. package/build/src/objects/general_storage_structure.js +0 -4
  86. package/build/src/objects/general_text.js +0 -4
  87. package/build/src/objects/http_service.js +0 -4
  88. package/build/src/objects/iac_binary_data.js +0 -4
  89. package/build/src/objects/iac_language_resource.js +0 -4
  90. package/build/src/objects/iac_service.js +0 -4
  91. package/build/src/objects/iac_template.js +0 -4
  92. package/build/src/objects/iam_app.js +0 -4
  93. package/build/src/objects/icf_service.js +0 -4
  94. package/build/src/objects/idoc.js +0 -4
  95. package/build/src/objects/idoc_extension.js +0 -4
  96. package/build/src/objects/inbound_service.js +0 -4
  97. package/build/src/objects/info_area.js +0 -4
  98. package/build/src/objects/info_object.js +0 -4
  99. package/build/src/objects/knowledge_transfer_document.js +0 -4
  100. package/build/src/objects/maintenance_and_transport_object.js +0 -4
  101. package/build/src/objects/messaging_channel.js +0 -4
  102. package/build/src/objects/mime_object.js +1 -4
  103. package/build/src/objects/namespace.js +0 -4
  104. package/build/src/objects/neptune_api.js +0 -4
  105. package/build/src/objects/neptune_app.js +0 -4
  106. package/build/src/objects/neptune_custom_color.js +0 -4
  107. package/build/src/objects/neptune_custom_js_helper.js +0 -4
  108. package/build/src/objects/neptune_documentation.js +0 -4
  109. package/build/src/objects/neptune_enhancement.js +0 -4
  110. package/build/src/objects/neptune_launchpad.js +0 -4
  111. package/build/src/objects/neptune_launchpad_layout.js +0 -4
  112. package/build/src/objects/neptune_login_page.js +0 -4
  113. package/build/src/objects/neptune_media_library.js +0 -4
  114. package/build/src/objects/neptune_media_pack.js +0 -4
  115. package/build/src/objects/neptune_metadata.js +0 -4
  116. package/build/src/objects/neptune_mobile_client.js +0 -4
  117. package/build/src/objects/neptune_odata.js +0 -4
  118. package/build/src/objects/neptune_policy.js +0 -4
  119. package/build/src/objects/neptune_rfc_mapping.js +0 -4
  120. package/build/src/objects/neptune_rich_text_template.js +0 -4
  121. package/build/src/objects/neptune_splash_screen.js +0 -4
  122. package/build/src/objects/neptune_sticky_banner.js +0 -4
  123. package/build/src/objects/neptune_tile.js +0 -4
  124. package/build/src/objects/neptune_tile_group.js +0 -4
  125. package/build/src/objects/neptune_tile_layout.js +0 -4
  126. package/build/src/objects/neptune_url_alias.js +0 -4
  127. package/build/src/objects/oauth2_profile.js +0 -4
  128. package/build/src/objects/object_characteristic.js +0 -4
  129. package/build/src/objects/outbound_service.js +0 -4
  130. package/build/src/objects/package.js +0 -4
  131. package/build/src/objects/package_interface.js +0 -4
  132. package/build/src/objects/page_format.js +0 -4
  133. package/build/src/objects/parameter.js +0 -4
  134. package/build/src/objects/personalization_object.js +0 -4
  135. package/build/src/objects/push_channel.js +0 -4
  136. package/build/src/objects/query_user_group.js +0 -4
  137. package/build/src/objects/restriction_field.js +0 -4
  138. package/build/src/objects/restriction_type.js +0 -4
  139. package/build/src/objects/rfc_service.js +0 -4
  140. package/build/src/objects/sapscript.js +0 -4
  141. package/build/src/objects/sapscript_style.js +0 -4
  142. package/build/src/objects/screen_variant.js +0 -4
  143. package/build/src/objects/search_help.js +0 -4
  144. package/build/src/objects/service_binding.js +0 -4
  145. package/build/src/objects/service_definition.js +0 -4
  146. package/build/src/objects/shared_memory.js +0 -4
  147. package/build/src/objects/smart_form.js +0 -4
  148. package/build/src/objects/smart_style.js +0 -4
  149. package/build/src/objects/standard_task.js +0 -4
  150. package/build/src/objects/switch_assignment_hierarchy.js +0 -4
  151. package/build/src/objects/switch_assignments.js +0 -4
  152. package/build/src/objects/technical_job_definition.js +0 -4
  153. package/build/src/objects/transaction_variant.js +0 -4
  154. package/build/src/objects/transformation.js +0 -4
  155. package/build/src/objects/view_cluster.js +0 -4
  156. package/build/src/objects/virtual_end_point.js +0 -4
  157. package/build/src/objects/web_dynpro_application.js +0 -4
  158. package/build/src/objects/web_dynpro_application_configuration.js +0 -4
  159. package/build/src/objects/web_dynpro_component.js +0 -4
  160. package/build/src/objects/web_dynpro_component_configuration.js +0 -4
  161. package/build/src/objects/web_reporting_template.js +0 -4
  162. package/build/src/registry.js +1 -1
  163. package/build/src/rules/else_after_all_returns.js +2 -2
  164. package/build/src/rules/implement_methods.js +36 -13
  165. package/build/src/rules/index.js +1 -0
  166. package/build/src/rules/preferred_parameter_ignored.js +141 -0
  167. package/package.json +1 -1
@@ -8,7 +8,7 @@ const version_1 = require("../../../version");
8
8
  class CreateData {
9
9
  getMatcher() {
10
10
  const areaHandle = (0, combi_1.seq)("AREA HANDLE", expressions_1.Source);
11
- const typeHandle = (0, combi_1.seq)("TYPE HANDLE", expressions_1.Source);
11
+ const typeHandle = (0, combi_1.seq)("TYPE HANDLE", expressions_1.SimpleSource3);
12
12
  const type = (0, combi_1.seq)((0, combi_1.alt)("TYPE", "TYPE REF TO", "TYPE TABLE OF", "TYPE TABLE OF REF TO", "TYPE SORTED TABLE OF", "TYPE HASHED TABLE OF", "TYPE STANDARD TABLE OF", "TYPE LINE OF"), (0, combi_1.alt)(expressions_1.TypeName, expressions_1.Dynamic));
13
13
  const like = (0, combi_1.seq)((0, combi_1.alt)("LIKE", "LIKE HASHED TABLE OF", "LIKE LINE OF", "LIKE STANDARD TABLE OF", "LIKE SORTED TABLE OF", "LIKE TABLE OF"), (0, combi_1.alt)(expressions_1.Source, expressions_1.Dynamic));
14
14
  const length = (0, combi_1.seq)("LENGTH", expressions_1.Source);
@@ -9,7 +9,7 @@ class Loop {
9
9
  getMatcher() {
10
10
  const where = (0, combi_1.seq)("WHERE", (0, combi_1.alt)(expressions_1.ComponentCond, (0, combi_1.verNotLang)(version_1.LanguageVersion.KeyUser, expressions_1.Dynamic)));
11
11
  const group = (0, combi_1.ver)(version_1.Release.v740sp08, (0, combi_1.seq)("GROUP BY", loop_group_by_1.LoopGroupBy), { also: combi_1.AlsoIn.OpenABAP });
12
- const step = (0, combi_1.ver)(version_1.Release.v757, (0, combi_1.seq)("STEP", expressions_1.Source));
12
+ const step = (0, combi_1.ver)(version_1.Release.v757, (0, combi_1.seq)("STEP", expressions_1.Source), { also: combi_1.AlsoIn.OpenABAP });
13
13
  const from = (0, combi_1.seq)("FROM", expressions_1.Source);
14
14
  const to = (0, combi_1.seq)("TO", expressions_1.Source);
15
15
  const usingKey = (0, combi_1.seq)("USING KEY", (0, combi_1.altPrio)(expressions_1.SimpleName, expressions_1.Dynamic));
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.checkTextSymbol = checkTextSymbol;
37
+ const Expressions = __importStar(require("../../2_statements/expressions"));
38
+ const basic_1 = require("../../types/basic");
39
+ const _syntax_input_1 = require("../_syntax_input");
40
+ // A text symbol, 'text'(001), is a character literal of type C. Unlike a plain
41
+ // literal it does not convert when passed to a method parameter typed STRING,
42
+ // the system reports it as not type-compatible. Returns true if an issue was reported.
43
+ function checkTextSymbol(source, parameterType, input) {
44
+ if (source === undefined || !(parameterType instanceof basic_1.StringType)) {
45
+ return false;
46
+ }
47
+ const children = source.getChildren();
48
+ const constant = children.length === 1 ? source.findDirectExpression(Expressions.Constant) : undefined;
49
+ if ((constant === null || constant === void 0 ? void 0 : constant.findDirectExpression(Expressions.TextElementString)) === undefined) {
50
+ return false;
51
+ }
52
+ const message = `Text symbol "${source.concatTokens()}" is a character literal, not type-compatible with a STRING parameter`;
53
+ input.issues.push((0, _syntax_input_1.syntaxIssue)(input, source.getFirstToken(), message));
54
+ return true;
55
+ }
56
+ //# sourceMappingURL=_check_text_symbol.js.map
@@ -44,6 +44,7 @@ const _type_utils_1 = require("../_type_utils");
44
44
  const _syntax_input_1 = require("../_syntax_input");
45
45
  const constant_1 = require("./constant");
46
46
  const _check_offset_length_1 = require("./_check_offset_length");
47
+ const _check_text_symbol_1 = require("./_check_text_symbol");
47
48
  class MethodCallParam {
48
49
  static runSyntax(node, input, method) {
49
50
  if (!(node.get() instanceof Expressions.MethodCallParam)) {
@@ -116,6 +117,9 @@ class MethodCallParam {
116
117
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
117
118
  return;
118
119
  }
120
+ else if ((0, _check_text_symbol_1.checkTextSymbol)(child, targetType, input)) {
121
+ return;
122
+ }
119
123
  else if (new _type_utils_1.TypeUtils(input.scope).isAssignableStrict(sourceType, targetType, child) === false) {
120
124
  const message = "Method parameter type not compatible";
121
125
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
@@ -46,6 +46,7 @@ const assert_error_1 = require("../assert_error");
46
46
  const field_chain_1 = require("./field_chain");
47
47
  const _reference_1 = require("../_reference");
48
48
  const _check_offset_length_1 = require("./_check_offset_length");
49
+ const _check_text_symbol_1 = require("./_check_text_symbol");
49
50
  class MethodParameters {
50
51
  constructor() {
51
52
  this.requiredParameters = undefined;
@@ -197,6 +198,9 @@ class MethodParameters {
197
198
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
198
199
  continue;
199
200
  }
201
+ else if ((0, _check_text_symbol_1.checkTextSymbol)(item.source, parameter.getType(), input)) {
202
+ return;
203
+ }
200
204
  else if (new _type_utils_1.TypeUtils(input.scope).isAssignableStrict(item.sourceType, parameter.getType(), item.source) === false) {
201
205
  const message = "Method parameter type not compatible, " + item.name;
202
206
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
@@ -239,6 +239,13 @@ class Select {
239
239
  const intoTable = node.findDirectExpression(Expressions.SQLIntoTable);
240
240
  if (intoTable) {
241
241
  const inline = intoTable.findFirstExpression(Expressions.InlineData);
242
+ if (inline
243
+ && intoTable.findDirectTokenByText("INTO") !== undefined
244
+ && intoTable.findDirectTokenByText("CORRESPONDING") !== undefined
245
+ && !(0, version_1.releaseAtLeast)(input.scope.getRelease(), version_1.Release.v755)) {
246
+ const message = "INTO CORRESPONDING FIELDS OF TABLE with an inline declaration requires 7.55";
247
+ input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
248
+ }
242
249
  if (inline) {
243
250
  inline_data_1.InlineData.runSyntax(inline, input, this.buildTableType(fields, dbSources, input.scope, from));
244
251
  }
@@ -59,6 +59,9 @@ class CreateData {
59
59
  return;
60
60
  }
61
61
  }
62
+ for (const s of node.findDirectExpressions(Expressions.SimpleSource3)) {
63
+ source_1.Source.runSyntax(s, input);
64
+ }
62
65
  for (const t of node.findDirectExpressions(Expressions.Target)) {
63
66
  target_1.Target.runSyntax(t, input);
64
67
  }
@@ -131,14 +131,21 @@ class Loop {
131
131
  // https://github.com/abap2xlsx/abap2xlsx/issues/1341
132
132
  const keyName = node.findExpressionAfterToken("KEY");
133
133
  let key = undefined;
134
- if ((keyName === null || keyName === void 0 ? void 0 : keyName.get()) instanceof Expressions.SimpleName) {
135
- // it might be dynamic, in that case we cannot check anything
136
- key = (_b = topType.getOptions().secondary) === null || _b === void 0 ? void 0 : _b.find(k => k.name.toUpperCase() === keyName.getFirstToken().getStr().toUpperCase());
134
+ const name = (keyName === null || keyName === void 0 ? void 0 : keyName.get()) instanceof Expressions.SimpleName ? keyName.getFirstToken().getStr().toUpperCase() : undefined;
135
+ // it might be dynamic, in that case we cannot check anything; and
136
+ // primary_key is the predefined name of the primary key every table has
137
+ if (name !== undefined && name !== "PRIMARY_KEY") {
138
+ key = (_b = topType.getOptions().secondary) === null || _b === void 0 ? void 0 : _b.find(k => k.name.toUpperCase() === name);
137
139
  if (key === undefined) {
138
140
  const message = "Key " + (keyName === null || keyName === void 0 ? void 0 : keyName.concatTokens()) + " not found in table type";
139
141
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
140
142
  return;
141
143
  }
144
+ if (cond.findDirectTokenByText("OR") !== undefined) {
145
+ const message = "Loop, secondary key requires an optimizable WHERE, top-level OR not allowed";
146
+ input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
147
+ return;
148
+ }
142
149
  if (!(0, version_1.releaseAtLeast)(input.scope.getRelease(), version_1.Release.v740sp02)) {
143
150
  const compares = cond.findAllExpressionsRecursive(Expressions.ComponentCompare).map(c => c.concatTokens().toUpperCase());
144
151
  for (const keyField of key.keyFields) {
@@ -42,6 +42,7 @@ const _type_utils_1 = require("../_type_utils");
42
42
  const _syntax_input_1 = require("../_syntax_input");
43
43
  const dereference_1 = require("../expressions/dereference");
44
44
  const basic_1 = require("../../types/basic");
45
+ const nodes_1 = require("../../nodes");
45
46
  class Move {
46
47
  runSyntax(node, input) {
47
48
  const targets = node.findDirectExpressions(Expressions.Target);
@@ -73,6 +74,13 @@ class Move {
73
74
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
74
75
  return;
75
76
  }
77
+ if (inline === undefined
78
+ && node.findDirectTokenByText("=") !== undefined
79
+ && Move.isRefInferIntoGenericFieldSymbol(targets, source, targetType)) {
80
+ const message = "REF #( ) cannot infer a type from a generic target, use REF data( ) or a named type";
81
+ input.issues.push((0, _syntax_input_1.syntaxIssue)(input, source.getFirstToken(), message));
82
+ return;
83
+ }
76
84
  if (node.findDirectExpression(Expressions.Dereference)) {
77
85
  sourceType = dereference_1.Dereference.runSyntax(node, sourceType, input);
78
86
  }
@@ -96,6 +104,26 @@ class Move {
96
104
  return;
97
105
  }
98
106
  }
107
+ /** target = REF #( ... ), with the single target being a field symbol typed "any" or "data",
108
+ * the type of REF # is inferred from the target, which is generic */
109
+ static isRefInferIntoGenericFieldSymbol(targets, source, targetType) {
110
+ var _a;
111
+ if (targets.length !== 1 || source === undefined) {
112
+ return false;
113
+ }
114
+ else if (!(targetType instanceof basic_1.AnyType) && !(targetType instanceof basic_1.DataType)) {
115
+ return false;
116
+ }
117
+ const targetChildren = targets[0].getChildren();
118
+ if (targetChildren.length !== 1 || !(targetChildren[0].get() instanceof Expressions.TargetFieldSymbol)) {
119
+ return false;
120
+ }
121
+ const first = source.getFirstChild();
122
+ if (!(first instanceof nodes_1.TokenNode) || first.getFirstToken().getStr().toUpperCase() !== "REF") {
123
+ return false;
124
+ }
125
+ return ((_a = source.findDirectExpression(Expressions.TypeNameOrInfer)) === null || _a === void 0 ? void 0 : _a.concatTokens()) === "#";
126
+ }
99
127
  }
100
128
  exports.Move = Move;
101
129
  //# sourceMappingURL=move.js.map
@@ -36,38 +36,45 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.ArtifactsABAP = void 0;
37
37
  const Statements = __importStar(require("./2_statements/statements"));
38
38
  const Expressions = __importStar(require("./2_statements/expressions"));
39
- const combi_1 = require("./2_statements/combi");
40
39
  const Structures = __importStar(require("./3_structures/structures"));
40
+ /*
41
41
  class List {
42
- constructor() {
43
- this.words = [];
42
+ private readonly words: IKeyword[];
43
+
44
+ public constructor() {
45
+ this.words = [];
46
+ }
47
+
48
+ public add(keywords: string[], source: string): void {
49
+ for (const w of keywords) {
50
+ const index = this.find(w);
51
+ if (index >= 0) {
52
+ this.words[index].source.push(source);
53
+ } else {
54
+ this.words.push({word: w, source: [source]});
55
+ }
44
56
  }
45
- add(keywords, source) {
46
- for (const w of keywords) {
47
- const index = this.find(w);
48
- if (index >= 0) {
49
- this.words[index].source.push(source);
50
- }
51
- else {
52
- this.words.push({ word: w, source: [source] });
53
- }
54
- }
55
- }
56
- get() {
57
- return this.words;
58
- }
59
- find(keyword) {
60
- for (let i = 0; i < this.words.length; i++) {
61
- if (this.words[i].word === keyword) {
62
- return i;
63
- }
64
- }
65
- return -1;
57
+ }
58
+
59
+ public get(): IKeyword[] {
60
+ return this.words;
61
+ }
62
+
63
+ private find(keyword: string): number {
64
+ for (let i = 0; i < this.words.length; i++) {
65
+ if (this.words[i].word === keyword) {
66
+ return i;
67
+ }
66
68
  }
69
+ return -1;
70
+ }
67
71
  }
68
- function className(cla) {
69
- return cla.constructor.name;
72
+
73
+
74
+ function className(cla: any) {
75
+ return cla.constructor.name;
70
76
  }
77
+ */
71
78
  class ArtifactsABAP {
72
79
  static getStructures() {
73
80
  const ret = [];
@@ -99,16 +106,6 @@ class ArtifactsABAP {
99
106
  }
100
107
  return ret;
101
108
  }
102
- static getKeywords() {
103
- const list = new List();
104
- for (const stat of this.getStatements()) {
105
- list.add(combi_1.Combi.listKeywords(stat.getMatcher()), "statement_" + className(stat));
106
- }
107
- for (const expr of this.getExpressions()) {
108
- list.add(combi_1.Combi.listKeywords(new expr().getRunnable()), "expression_" + className(expr));
109
- }
110
- return list.get();
111
- }
112
109
  }
113
110
  exports.ArtifactsABAP = ArtifactsABAP;
114
111
  //# sourceMappingURL=artifacts.js.map
@@ -12,6 +12,9 @@ class AbstractObject {
12
12
  this.old = [];
13
13
  this.dirty = false;
14
14
  }
15
+ getDescription() {
16
+ return undefined;
17
+ }
15
18
  getParsingIssues() {
16
19
  return this.old;
17
20
  }
@@ -19,9 +19,6 @@ class UnknownObject extends _abstract_object_1.AbstractObject {
19
19
  allowNamespace: true,
20
20
  };
21
21
  }
22
- getDescription() {
23
- return undefined;
24
- }
25
22
  getParsingIssues() {
26
23
  const pos = new position_1.Position(1, 1);
27
24
  const file = this.getFiles()[0];
@@ -12,10 +12,6 @@ class ABAPQueryFunctionalArea extends _abstract_object_1.AbstractObject {
12
12
  allowNamespace: true,
13
13
  };
14
14
  }
15
- getDescription() {
16
- // todo
17
- return undefined;
18
- }
19
15
  }
20
16
  exports.ABAPQueryFunctionalArea = ABAPQueryFunctionalArea;
21
17
  //# sourceMappingURL=abap_query_functional_area.js.map
@@ -12,10 +12,6 @@ class ABAPQueryQuery extends _abstract_object_1.AbstractObject {
12
12
  allowNamespace: true,
13
13
  };
14
14
  }
15
- getDescription() {
16
- // todo
17
- return undefined;
18
- }
19
15
  }
20
16
  exports.ABAPQueryQuery = ABAPQueryQuery;
21
17
  //# sourceMappingURL=abap_query_query.js.map
@@ -12,10 +12,6 @@ class ActivationVariant extends _abstract_object_1.AbstractObject {
12
12
  allowNamespace: true,
13
13
  };
14
14
  }
15
- getDescription() {
16
- // todo
17
- return undefined;
18
- }
19
15
  }
20
16
  exports.ActivationVariant = ActivationVariant;
21
17
  //# sourceMappingURL=activation_variant.js.map
@@ -12,10 +12,6 @@ class APIReleaseState extends _abstract_object_1.AbstractObject {
12
12
  allowNamespace: true,
13
13
  };
14
14
  }
15
- getDescription() {
16
- // todo
17
- return undefined;
18
- }
19
15
  }
20
16
  exports.APIReleaseState = APIReleaseState;
21
17
  //# sourceMappingURL=api_release_state.js.map
@@ -12,10 +12,6 @@ class ApplicationDescriptorsFiori extends _abstract_object_1.AbstractObject {
12
12
  allowNamespace: true,
13
13
  };
14
14
  }
15
- getDescription() {
16
- // todo
17
- return undefined;
18
- }
19
15
  }
20
16
  exports.ApplicationDescriptorsFiori = ApplicationDescriptorsFiori;
21
17
  //# sourceMappingURL=application_descriptors_fiori.js.map
@@ -12,10 +12,6 @@ class ApplicationJobCatalogEntry extends _abstract_object_1.AbstractObject {
12
12
  allowNamespace: true,
13
13
  };
14
14
  }
15
- getDescription() {
16
- // todo
17
- return undefined;
18
- }
19
15
  }
20
16
  exports.ApplicationJobCatalogEntry = ApplicationJobCatalogEntry;
21
17
  //# sourceMappingURL=application_job_catalog_entry.js.map
@@ -12,10 +12,6 @@ class ApplicationJobTemplate extends _abstract_object_1.AbstractObject {
12
12
  allowNamespace: true,
13
13
  };
14
14
  }
15
- getDescription() {
16
- // todo
17
- return undefined;
18
- }
19
15
  }
20
16
  exports.ApplicationJobTemplate = ApplicationJobTemplate;
21
17
  //# sourceMappingURL=application_job_template.js.map
@@ -12,10 +12,6 @@ class ApplicationLogObject extends _abstract_object_1.AbstractObject {
12
12
  allowNamespace: true,
13
13
  };
14
14
  }
15
- getDescription() {
16
- // todo
17
- return undefined;
18
- }
19
15
  }
20
16
  exports.ApplicationLogObject = ApplicationLogObject;
21
17
  //# sourceMappingURL=application_log_object.js.map
@@ -12,10 +12,6 @@ class AssignmentServiceToAuthorizationGroup extends _abstract_object_1.AbstractO
12
12
  allowNamespace: true,
13
13
  };
14
14
  }
15
- getDescription() {
16
- // todo
17
- return undefined;
18
- }
19
15
  }
20
16
  exports.AssignmentServiceToAuthorizationGroup = AssignmentServiceToAuthorizationGroup;
21
17
  //# sourceMappingURL=assignment_service_to_authorization_group.js.map
@@ -12,10 +12,6 @@ class ATCCheckCategory extends _abstract_object_1.AbstractObject {
12
12
  allowNamespace: true,
13
13
  };
14
14
  }
15
- getDescription() {
16
- // todo
17
- return undefined;
18
- }
19
15
  }
20
16
  exports.ATCCheckCategory = ATCCheckCategory;
21
17
  //# sourceMappingURL=atc_check_category.js.map
@@ -12,10 +12,6 @@ class ATCCheckObject extends _abstract_object_1.AbstractObject {
12
12
  allowNamespace: true,
13
13
  };
14
14
  }
15
- getDescription() {
16
- // todo
17
- return undefined;
18
- }
19
15
  }
20
16
  exports.ATCCheckObject = ATCCheckObject;
21
17
  //# sourceMappingURL=atc_check_object.js.map
@@ -12,10 +12,6 @@ class ATCCheckVariant extends _abstract_object_1.AbstractObject {
12
12
  allowNamespace: true,
13
13
  };
14
14
  }
15
- getDescription() {
16
- // todo
17
- return undefined;
18
- }
19
15
  }
20
16
  exports.ATCCheckVariant = ATCCheckVariant;
21
17
  //# sourceMappingURL=atc_check_variant.js.map
@@ -18,10 +18,6 @@ class AuthorizationCheckField extends _abstract_object_1.AbstractObject {
18
18
  this.parsedXML = undefined;
19
19
  super.setDirty();
20
20
  }
21
- getDescription() {
22
- // todo
23
- return undefined;
24
- }
25
21
  getDataElementName() {
26
22
  var _a;
27
23
  this.parse();
@@ -12,10 +12,6 @@ class AuthorizationGroup extends _abstract_object_1.AbstractObject {
12
12
  allowNamespace: true,
13
13
  };
14
14
  }
15
- getDescription() {
16
- // todo
17
- return undefined;
18
- }
19
15
  }
20
16
  exports.AuthorizationGroup = AuthorizationGroup;
21
17
  //# sourceMappingURL=authorization_group.js.map
@@ -12,10 +12,6 @@ class AuthorizationObject extends _abstract_object_1.AbstractObject {
12
12
  allowNamespace: true,
13
13
  };
14
14
  }
15
- getDescription() {
16
- // todo
17
- return undefined;
18
- }
19
15
  }
20
16
  exports.AuthorizationObject = AuthorizationObject;
21
17
  //# sourceMappingURL=authorization_object.js.map
@@ -12,10 +12,6 @@ class AuthorizationObjectClass extends _abstract_object_1.AbstractObject {
12
12
  allowNamespace: false,
13
13
  };
14
14
  }
15
- getDescription() {
16
- // todo
17
- return undefined;
18
- }
19
15
  }
20
16
  exports.AuthorizationObjectClass = AuthorizationObjectClass;
21
17
  //# sourceMappingURL=authorization_object_class.js.map
@@ -12,10 +12,6 @@ class AuthorizationObjectExtension extends _abstract_object_1.AbstractObject {
12
12
  allowNamespace: true,
13
13
  };
14
14
  }
15
- getDescription() {
16
- // todo
17
- return undefined;
18
- }
19
15
  }
20
16
  exports.AuthorizationObjectExtension = AuthorizationObjectExtension;
21
17
  //# sourceMappingURL=authorization_object_extension.js.map
@@ -12,10 +12,6 @@ class BADIDefinition extends _abstract_object_1.AbstractObject {
12
12
  allowNamespace: true,
13
13
  };
14
14
  }
15
- getDescription() {
16
- // todo
17
- return undefined;
18
- }
19
15
  }
20
16
  exports.BADIDefinition = BADIDefinition;
21
17
  //# sourceMappingURL=badi_definition.js.map
@@ -16,10 +16,6 @@ class BehaviorDefinition extends _abstract_object_1.AbstractObject {
16
16
  allowNamespace: true,
17
17
  };
18
18
  }
19
- getDescription() {
20
- // todo
21
- return undefined;
22
- }
23
19
  setDirty() {
24
20
  this.parsedData = undefined;
25
21
  super.setDirty();
@@ -12,10 +12,6 @@ class BRFPlusSystemApplication extends _abstract_object_1.AbstractObject {
12
12
  allowNamespace: true,
13
13
  };
14
14
  }
15
- getDescription() {
16
- // todo
17
- return undefined;
18
- }
19
15
  }
20
16
  exports.BRFPlusSystemApplication = BRFPlusSystemApplication;
21
17
  //# sourceMappingURL=brf_plus_system_application.js.map
@@ -12,10 +12,6 @@ class BSPApplication extends _abstract_object_1.AbstractObject {
12
12
  allowNamespace: true,
13
13
  };
14
14
  }
15
- getDescription() {
16
- // todo
17
- return undefined;
18
- }
19
15
  }
20
16
  exports.BSPApplication = BSPApplication;
21
17
  //# sourceMappingURL=bsp_application.js.map
@@ -12,10 +12,6 @@ class BusinessAddInImplementation extends _abstract_object_1.AbstractObject {
12
12
  allowNamespace: true,
13
13
  };
14
14
  }
15
- getDescription() {
16
- // todo
17
- return undefined;
18
- }
19
15
  }
20
16
  exports.BusinessAddInImplementation = BusinessAddInImplementation;
21
17
  //# sourceMappingURL=business_add_in_implementation.js.map
@@ -12,10 +12,6 @@ class BusinessCatalog extends _abstract_object_1.AbstractObject {
12
12
  allowNamespace: true,
13
13
  };
14
14
  }
15
- getDescription() {
16
- // todo
17
- return undefined;
18
- }
19
15
  }
20
16
  exports.BusinessCatalog = BusinessCatalog;
21
17
  //# sourceMappingURL=business_catalog.js.map
@@ -12,10 +12,6 @@ class BusinessCatalogAppAssignment extends _abstract_object_1.AbstractObject {
12
12
  allowNamespace: true,
13
13
  };
14
14
  }
15
- getDescription() {
16
- // todo
17
- return undefined;
18
- }
19
15
  }
20
16
  exports.BusinessCatalogAppAssignment = BusinessCatalogAppAssignment;
21
17
  //# sourceMappingURL=business_catalog_app_assignment.js.map
@@ -12,10 +12,6 @@ class BusinessConfigurationMaintenanceObject extends _abstract_object_1.Abstract
12
12
  allowNamespace: true,
13
13
  };
14
14
  }
15
- getDescription() {
16
- // todo
17
- return undefined;
18
- }
19
15
  }
20
16
  exports.BusinessConfigurationMaintenanceObject = BusinessConfigurationMaintenanceObject;
21
17
  //# sourceMappingURL=business_configuration_maintenance_object.js.map
@@ -12,10 +12,6 @@ class BusinessConfigurationSet extends _abstract_object_1.AbstractObject {
12
12
  allowNamespace: true,
13
13
  };
14
14
  }
15
- getDescription() {
16
- // todo
17
- return undefined;
18
- }
19
15
  }
20
16
  exports.BusinessConfigurationSet = BusinessConfigurationSet;
21
17
  //# sourceMappingURL=business_configuration_set.js.map