@abaplint/transpiler-cli 2.5.10 → 2.5.12
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.
- package/build/bundle.js +318 -75
- package/package.json +3 -3
package/build/bundle.js
CHANGED
|
@@ -8236,7 +8236,7 @@ class At {
|
|
|
8236
8236
|
const atNew = (0, combi_1.seq)("NEW", field);
|
|
8237
8237
|
const atEnd = (0, combi_1.seq)("END OF", field);
|
|
8238
8238
|
const group = (0, combi_1.regex)(/^\w+$/);
|
|
8239
|
-
const ret = (0, combi_1.seq)("AT", (0, combi_1.altPrio)(
|
|
8239
|
+
const ret = (0, combi_1.seq)("AT", (0, combi_1.altPrio)(atNew, atEnd, group));
|
|
8240
8240
|
return ret;
|
|
8241
8241
|
}
|
|
8242
8242
|
}
|
|
@@ -8245,6 +8245,48 @@ exports.At = At;
|
|
|
8245
8245
|
|
|
8246
8246
|
/***/ }),
|
|
8247
8247
|
|
|
8248
|
+
/***/ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/at_first.js":
|
|
8249
|
+
/*!****************************************************************************************!*\
|
|
8250
|
+
!*** ./node_modules/@abaplint/core/build/src/abap/2_statements/statements/at_first.js ***!
|
|
8251
|
+
\****************************************************************************************/
|
|
8252
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
8253
|
+
|
|
8254
|
+
"use strict";
|
|
8255
|
+
|
|
8256
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8257
|
+
exports.AtFirst = void 0;
|
|
8258
|
+
const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
8259
|
+
class AtFirst {
|
|
8260
|
+
getMatcher() {
|
|
8261
|
+
return (0, combi_1.str)("AT FIRST");
|
|
8262
|
+
}
|
|
8263
|
+
}
|
|
8264
|
+
exports.AtFirst = AtFirst;
|
|
8265
|
+
//# sourceMappingURL=at_first.js.map
|
|
8266
|
+
|
|
8267
|
+
/***/ }),
|
|
8268
|
+
|
|
8269
|
+
/***/ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/at_last.js":
|
|
8270
|
+
/*!***************************************************************************************!*\
|
|
8271
|
+
!*** ./node_modules/@abaplint/core/build/src/abap/2_statements/statements/at_last.js ***!
|
|
8272
|
+
\***************************************************************************************/
|
|
8273
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
8274
|
+
|
|
8275
|
+
"use strict";
|
|
8276
|
+
|
|
8277
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8278
|
+
exports.AtLast = void 0;
|
|
8279
|
+
const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
8280
|
+
class AtLast {
|
|
8281
|
+
getMatcher() {
|
|
8282
|
+
return (0, combi_1.str)("AT LAST");
|
|
8283
|
+
}
|
|
8284
|
+
}
|
|
8285
|
+
exports.AtLast = AtLast;
|
|
8286
|
+
//# sourceMappingURL=at_last.js.map
|
|
8287
|
+
|
|
8288
|
+
/***/ }),
|
|
8289
|
+
|
|
8248
8290
|
/***/ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/at_line_selection.js":
|
|
8249
8291
|
/*!*************************************************************************************************!*\
|
|
8250
8292
|
!*** ./node_modules/@abaplint/core/build/src/abap/2_statements/statements/at_line_selection.js ***!
|
|
@@ -12036,6 +12078,8 @@ __exportStar(__webpack_require__(/*! ./submit */ "./node_modules/@abaplint/core/
|
|
|
12036
12078
|
__exportStar(__webpack_require__(/*! ./scan */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/scan.js"), exports);
|
|
12037
12079
|
__exportStar(__webpack_require__(/*! ./export */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/export.js"), exports);
|
|
12038
12080
|
__exportStar(__webpack_require__(/*! ./import */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/import.js"), exports);
|
|
12081
|
+
__exportStar(__webpack_require__(/*! ./at_first */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/at_first.js"), exports);
|
|
12082
|
+
__exportStar(__webpack_require__(/*! ./at_last */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/at_last.js"), exports);
|
|
12039
12083
|
__exportStar(__webpack_require__(/*! ./at */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/at.js"), exports);
|
|
12040
12084
|
__exportStar(__webpack_require__(/*! ./put */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/put.js"), exports);
|
|
12041
12085
|
__exportStar(__webpack_require__(/*! ./endat */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/endat.js"), exports);
|
|
@@ -16449,6 +16493,52 @@ exports.At = At;
|
|
|
16449
16493
|
|
|
16450
16494
|
/***/ }),
|
|
16451
16495
|
|
|
16496
|
+
/***/ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/at_first.js":
|
|
16497
|
+
/*!****************************************************************************************!*\
|
|
16498
|
+
!*** ./node_modules/@abaplint/core/build/src/abap/3_structures/structures/at_first.js ***!
|
|
16499
|
+
\****************************************************************************************/
|
|
16500
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
16501
|
+
|
|
16502
|
+
"use strict";
|
|
16503
|
+
|
|
16504
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16505
|
+
exports.AtFirst = void 0;
|
|
16506
|
+
const Statements = __webpack_require__(/*! ../../2_statements/statements */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/index.js");
|
|
16507
|
+
const _combi_1 = __webpack_require__(/*! ./_combi */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/_combi.js");
|
|
16508
|
+
const body_1 = __webpack_require__(/*! ./body */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/body.js");
|
|
16509
|
+
class AtFirst {
|
|
16510
|
+
getMatcher() {
|
|
16511
|
+
return (0, _combi_1.beginEnd)((0, _combi_1.sta)(Statements.AtFirst), (0, _combi_1.opt)((0, _combi_1.sub)(body_1.Body)), (0, _combi_1.sta)(Statements.EndAt));
|
|
16512
|
+
}
|
|
16513
|
+
}
|
|
16514
|
+
exports.AtFirst = AtFirst;
|
|
16515
|
+
//# sourceMappingURL=at_first.js.map
|
|
16516
|
+
|
|
16517
|
+
/***/ }),
|
|
16518
|
+
|
|
16519
|
+
/***/ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/at_last.js":
|
|
16520
|
+
/*!***************************************************************************************!*\
|
|
16521
|
+
!*** ./node_modules/@abaplint/core/build/src/abap/3_structures/structures/at_last.js ***!
|
|
16522
|
+
\***************************************************************************************/
|
|
16523
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
16524
|
+
|
|
16525
|
+
"use strict";
|
|
16526
|
+
|
|
16527
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16528
|
+
exports.AtLast = void 0;
|
|
16529
|
+
const Statements = __webpack_require__(/*! ../../2_statements/statements */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/index.js");
|
|
16530
|
+
const _combi_1 = __webpack_require__(/*! ./_combi */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/_combi.js");
|
|
16531
|
+
const body_1 = __webpack_require__(/*! ./body */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/body.js");
|
|
16532
|
+
class AtLast {
|
|
16533
|
+
getMatcher() {
|
|
16534
|
+
return (0, _combi_1.beginEnd)((0, _combi_1.sta)(Statements.AtLast), (0, _combi_1.opt)((0, _combi_1.sub)(body_1.Body)), (0, _combi_1.sta)(Statements.EndAt));
|
|
16535
|
+
}
|
|
16536
|
+
}
|
|
16537
|
+
exports.AtLast = AtLast;
|
|
16538
|
+
//# sourceMappingURL=at_last.js.map
|
|
16539
|
+
|
|
16540
|
+
/***/ }),
|
|
16541
|
+
|
|
16452
16542
|
/***/ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/body.js":
|
|
16453
16543
|
/*!************************************************************************************!*\
|
|
16454
16544
|
!*** ./node_modules/@abaplint/core/build/src/abap/3_structures/structures/body.js ***!
|
|
@@ -16997,6 +17087,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16997
17087
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16998
17088
|
__exportStar(__webpack_require__(/*! ./any */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/any.js"), exports);
|
|
16999
17089
|
__exportStar(__webpack_require__(/*! ./at */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/at.js"), exports);
|
|
17090
|
+
__exportStar(__webpack_require__(/*! ./at_first */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/at_first.js"), exports);
|
|
17091
|
+
__exportStar(__webpack_require__(/*! ./at_last */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/at_last.js"), exports);
|
|
17000
17092
|
__exportStar(__webpack_require__(/*! ./body */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/body.js"), exports);
|
|
17001
17093
|
__exportStar(__webpack_require__(/*! ./case_type */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/case_type.js"), exports);
|
|
17002
17094
|
__exportStar(__webpack_require__(/*! ./case */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/case.js"), exports);
|
|
@@ -17207,7 +17299,7 @@ class Normal {
|
|
|
17207
17299
|
getMatcher() {
|
|
17208
17300
|
// note that the sequence of alternatives here influences performance
|
|
17209
17301
|
return (0, _combi_1.alt)((0, _combi_1.sta)(Statements.Move), (0, _combi_1.sta)(Statements.Call), (0, _combi_1.sta)(Statements.Data), (0, _combi_1.sub)(Structures.If), (0, _combi_1.sta)(Statements.Clear), (0, _combi_1.sta)(Statements.FieldSymbol), (0, _combi_1.sta)(Statements.CreateObject), (0, _combi_1.sta)(Statements.CallFunction), (0, _combi_1.sta)(_statement_1.MacroCall), (0, _combi_1.sub)(Structures.LoopAtScreen), (0, _combi_1.sub)(Structures.Loop), (0, _combi_1.sta)(Statements.Append), (0, _combi_1.sub)(Structures.Try), (0, _combi_1.sta)(Statements.ReadTable), (0, _combi_1.sta)(Statements.Assert), (0, _combi_1.sta)(Statements.Return), (0, _combi_1.sta)(Statements.Select), (0, _combi_1.sta)(Statements.Assign), (0, _combi_1.sta)(Statements.InsertInternal), (0, _combi_1.sta)(Statements.DeleteInternal), (0, _combi_1.sta)(Statements.Concatenate), (0, _combi_1.sub)(Structures.Case), (0, _combi_1.sub)(Structures.CaseType), (0, _combi_1.sub)(Structures.Enhancement), (0, _combi_1.sub)(Structures.EnhancementSection), (0, _combi_1.sta)(Statements.AddCorresponding), (0, _combi_1.sta)(Statements.Add), (0, _combi_1.sta)(Statements.AssignLocalCopy), (0, _combi_1.sta)(Statements.AuthorityCheck), (0, _combi_1.sta)(Statements.Back), (0, _combi_1.sta)(Statements.Break), (0, _combi_1.sta)(Statements.BreakId), (0, _combi_1.sta)(Statements.CallDatabase), (0, _combi_1.sta)(Statements.CallDialog), (0, _combi_1.sta)(Statements.CallKernel), (0, _combi_1.sta)(Statements.CallOLE), (0, _combi_1.sta)(Statements.CallScreen), (0, _combi_1.sta)(Statements.ModifyScreen), (0, _combi_1.sta)(Statements.CallSelectionScreen), (0, _combi_1.sta)(Statements.CallTransaction), (0, _combi_1.sta)(Statements.CallTransformation), (0, _combi_1.sta)(Statements.Check), (0, _combi_1.sta)(Statements.ClassDefinitionLoad), (0, _combi_1.sta)(Statements.CloseCursor), (0, _combi_1.sta)(Statements.CloseDataset), (0, _combi_1.sta)(Statements.Collect), (0, _combi_1.sta)(Statements.Commit), (0, _combi_1.sta)(Statements.Communication), (0, _combi_1.sta)(Statements.Compute), (0, _combi_1.sta)(Statements.CallBadi), (0, _combi_1.sta)(Statements.Condense), (0, _combi_1.sta)(Statements.Constant), (0, _combi_1.sta)(Statements.Contexts), (0, _combi_1.sta)(Statements.Continue), (0, _combi_1.sta)(Statements.ConvertText), (0, _combi_1.sta)(Statements.Convert), (0, _combi_1.sta)(Statements.CreateData), (0, _combi_1.sta)(Statements.CreateOLE), (0, _combi_1.sta)(Statements.DeleteCluster), (0, _combi_1.sta)(Statements.DeleteDatabase), (0, _combi_1.sta)(Statements.DeleteDataset), (0, _combi_1.sta)(Statements.DeleteDynpro), (0, _combi_1.sta)(Statements.DeleteMemory), (0, _combi_1.sta)(Statements.DeleteReport), (0, _combi_1.sta)(Statements.DeleteTextpool), (0, _combi_1.sta)(Statements.Demand), (0, _combi_1.sta)(Statements.Describe), (0, _combi_1.sta)(Statements.Detail), (0, _combi_1.sta)(Statements.Divide), (0, _combi_1.sta)(Statements.EditorCall), (0, _combi_1.sta)(Statements.EnhancementPoint), (0, _combi_1.sta)(Statements.Exit), (0, _combi_1.sta)(Statements.ExportDynpro), (0, _combi_1.sta)(Statements.Export), (0, _combi_1.sta)(Statements.Extract), (0, _combi_1.sta)(Statements.FetchNextCursor), (0, _combi_1.sta)(Statements.FieldGroup), (0, _combi_1.sta)(Statements.Fields), (0, _combi_1.sta)(Statements.Find), (0, _combi_1.sta)(Statements.Format), (0, _combi_1.sta)(Statements.FreeMemory), (0, _combi_1.sta)(Statements.FreeObject), (0, _combi_1.sta)(Statements.Free), (0, _combi_1.sta)(Statements.GenerateDynpro), (0, _combi_1.sta)(Statements.GenerateReport), (0, _combi_1.sta)(Statements.GenerateSubroutine), (0, _combi_1.sta)(Statements.GetBadi), (0, _combi_1.sta)(Statements.GetBit), (0, _combi_1.sta)(Statements.GetCursor), (0, _combi_1.sta)(Statements.GetDataset), (0, _combi_1.sta)(Statements.GetLocale), (0, _combi_1.sta)(Statements.GetParameter), (0, _combi_1.sta)(Statements.GetPFStatus), (0, _combi_1.sta)(Statements.GetProperty), (0, _combi_1.sta)(Statements.GetReference), (0, _combi_1.sta)(Statements.GetRunTime), (0, _combi_1.sta)(Statements.GetTime), (0, _combi_1.sta)(Statements.Hide), (0, _combi_1.sta)(Statements.Nodes), (0, _combi_1.sta)(Statements.ImportDynpro), (0, _combi_1.sta)(Statements.ImportNametab), (0, _combi_1.sta)(Statements.MoveCorresponding), (0, _combi_1.sta)(Statements.Import), (0, _combi_1.sta)(Statements.Infotypes), (0, _combi_1.sta)(Statements.Include), // include does not have to be at top level
|
|
17210
|
-
(0, _combi_1.sta)(Statements.InsertDatabase), (0, _combi_1.sta)(Statements.InsertReport), (0, _combi_1.sta)(Statements.InsertTextpool), (0, _combi_1.sta)(Statements.InsertFieldGroup), (0, _combi_1.sta)(Statements.InterfaceLoad), (0, _combi_1.sta)(Statements.Leave), (0, _combi_1.sta)(Statements.LoadReport), (0, _combi_1.sta)(Statements.Local), (0, _combi_1.sta)(Statements.With), (0, _combi_1.sta)(Statements.LogPoint), (0, _combi_1.sta)(Statements.Message), (0, _combi_1.sta)(Statements.ModifyLine), (0, _combi_1.sta)(Statements.ModifyDatabase), (0, _combi_1.sta)(Statements.ModifyInternal), (0, _combi_1.sta)(Statements.Multiply), (0, _combi_1.sta)(Statements.NewLine), (0, _combi_1.sta)(Statements.NewPage), (0, _combi_1.sta)(Statements.OpenCursor), (0, _combi_1.sta)(Statements.OpenDataset), (0, _combi_1.sta)(Statements.Overlay), (0, _combi_1.sta)(Statements.Pack), (0, _combi_1.sta)(Statements.Perform), (0, _combi_1.sta)(Statements.FormDefinition), (0, _combi_1.sta)(Statements.Position), (0, _combi_1.sta)(Statements.Put), (0, _combi_1.sta)(Statements.PrintControl), (0, _combi_1.sta)(Statements.RaiseEvent), (0, _combi_1.sta)(Statements.Raise), (0, _combi_1.sta)(Statements.Ranges), (0, _combi_1.sta)(Statements.ReadDataset), (0, _combi_1.sta)(Statements.ReadLine), (0, _combi_1.sta)(Statements.ReadReport), (0, _combi_1.sta)(Statements.ReadTextpool), (0, _combi_1.sta)(Statements.Receive), (0, _combi_1.sta)(Statements.RefreshControl), (0, _combi_1.sta)(Statements.Refresh), (0, _combi_1.sta)(Statements.Reject), (0, _combi_1.sta)(Statements.Replace), (0, _combi_1.sta)(Statements.Reserve), (0, _combi_1.sta)(Statements.Resume), (0, _combi_1.sta)(Statements.Retry), (0, _combi_1.sta)(Statements.Rollback), (0, _combi_1.sta)(Statements.Scan), (0, _combi_1.sta)(Statements.ScrollList), (0, _combi_1.sta)(Statements.Search), (0, _combi_1.sta)(Statements.SetBit), (0, _combi_1.sta)(Statements.SetBlank), (0, _combi_1.sta)(Statements.SetCountry), (0, _combi_1.sta)(Statements.SetCursor), (0, _combi_1.sta)(Statements.SetDataset), (0, _combi_1.sta)(Statements.SetExtendedCheck), (0, _combi_1.sta)(Statements.SetHandler), (0, _combi_1.sta)(Statements.SetLanguage), (0, _combi_1.sta)(Statements.SetLeft), (0, _combi_1.sta)(Statements.SetLocale), (0, _combi_1.sta)(Statements.SetMargin), (0, _combi_1.sta)(Statements.SetParameter), (0, _combi_1.sta)(Statements.SetPFStatus), (0, _combi_1.sta)(Statements.SetProperty), (0, _combi_1.sta)(Statements.SetRunTime), (0, _combi_1.sta)(Statements.SetScreen), (0, _combi_1.sta)(Statements.SetTitlebar), (0, _combi_1.sta)(Statements.SetUserCommand), (0, _combi_1.sta)(Statements.SetUpdateTask), (0, _combi_1.sta)(Statements.Shift), (0, _combi_1.sta)(Statements.Skip), (0, _combi_1.sta)(Statements.SortDataset), (0, _combi_1.sta)(Statements.Sort), (0, _combi_1.sta)(Statements.Static), (0, _combi_1.sta)(Statements.Split), (0, _combi_1.sta)(Statements.Stop), (0, _combi_1.sta)(Statements.Submit), (0, _combi_1.sta)(Statements.Summary), (0, _combi_1.sta)(Statements.SubtractCorresponding), (0, _combi_1.sta)(Statements.Subtract), (0, _combi_1.sta)(Statements.SuppressDialog), (0, _combi_1.sta)(Statements.Supply), (0, _combi_1.sta)(Statements.Sum), (0, _combi_1.sta)(Statements.SyntaxCheck), (0, _combi_1.sta)(Statements.SystemCall), (0, _combi_1.sta)(Statements.Tables), (0, _combi_1.sta)(Statements.Transfer), (0, _combi_1.sta)(Statements.Translate), (0, _combi_1.sta)(Statements.Type), (0, _combi_1.sta)(Statements.TypePools), (0, _combi_1.sta)(Statements.Uline), (0, _combi_1.sta)(Statements.Unassign), (0, _combi_1.sta)(Statements.Unpack), (0, _combi_1.sta)(Statements.UpdateDatabase), (0, _combi_1.sta)(Statements.Wait), (0, _combi_1.sta)(Statements.Window), (0, _combi_1.sta)(Statements.Write), (0, _combi_1.sta)(Statements.CommitEntities), (0, _combi_1.sta)(Statements.GetPermissions), (0, _combi_1.sta)(Statements.SetLocks), (0, _combi_1.sta)(Statements.ModifyEntities), (0, _combi_1.sta)(Statements.ReadEntities), (0, _combi_1.sta)(Statements.RollbackEntities), (0, _combi_1.sub)(Structures.Define), (0, _combi_1.sub)(Structures.TestInjection), (0, _combi_1.sub)(Structures.TestSeam), (0, _combi_1.sub)(Structures.TypeMesh), (0, _combi_1.sub)(Structures.Provide), (0, _combi_1.sub)(Structures.CatchSystemExceptions), (0, _combi_1.sub)(Structures.At), (0, _combi_1.sub)(Structures.Constants), (0, _combi_1.sub)(Structures.Types), (0, _combi_1.sub)(Structures.Statics), (0, _combi_1.sub)(Structures.Select), (0, _combi_1.sub)(Structures.Data), (0, _combi_1.sub)(Structures.TypeEnum), (0, _combi_1.sub)(Structures.While), (0, _combi_1.sub)(Structures.With), (0, _combi_1.sub)(Structures.Do), (0, _combi_1.sub)(Structures.ExecSQL));
|
|
17302
|
+
(0, _combi_1.sta)(Statements.InsertDatabase), (0, _combi_1.sta)(Statements.InsertReport), (0, _combi_1.sta)(Statements.InsertTextpool), (0, _combi_1.sta)(Statements.InsertFieldGroup), (0, _combi_1.sta)(Statements.InterfaceLoad), (0, _combi_1.sta)(Statements.Leave), (0, _combi_1.sta)(Statements.LoadReport), (0, _combi_1.sta)(Statements.Local), (0, _combi_1.sta)(Statements.With), (0, _combi_1.sta)(Statements.LogPoint), (0, _combi_1.sta)(Statements.Message), (0, _combi_1.sta)(Statements.ModifyLine), (0, _combi_1.sta)(Statements.ModifyDatabase), (0, _combi_1.sta)(Statements.ModifyInternal), (0, _combi_1.sta)(Statements.Multiply), (0, _combi_1.sta)(Statements.NewLine), (0, _combi_1.sta)(Statements.NewPage), (0, _combi_1.sta)(Statements.OpenCursor), (0, _combi_1.sta)(Statements.OpenDataset), (0, _combi_1.sta)(Statements.Overlay), (0, _combi_1.sta)(Statements.Pack), (0, _combi_1.sta)(Statements.Perform), (0, _combi_1.sta)(Statements.FormDefinition), (0, _combi_1.sta)(Statements.Position), (0, _combi_1.sta)(Statements.Put), (0, _combi_1.sta)(Statements.PrintControl), (0, _combi_1.sta)(Statements.RaiseEvent), (0, _combi_1.sta)(Statements.Raise), (0, _combi_1.sta)(Statements.Ranges), (0, _combi_1.sta)(Statements.ReadDataset), (0, _combi_1.sta)(Statements.ReadLine), (0, _combi_1.sta)(Statements.ReadReport), (0, _combi_1.sta)(Statements.ReadTextpool), (0, _combi_1.sta)(Statements.Receive), (0, _combi_1.sta)(Statements.RefreshControl), (0, _combi_1.sta)(Statements.Refresh), (0, _combi_1.sta)(Statements.Reject), (0, _combi_1.sta)(Statements.Replace), (0, _combi_1.sta)(Statements.Reserve), (0, _combi_1.sta)(Statements.Resume), (0, _combi_1.sta)(Statements.Retry), (0, _combi_1.sta)(Statements.Rollback), (0, _combi_1.sta)(Statements.Scan), (0, _combi_1.sta)(Statements.ScrollList), (0, _combi_1.sta)(Statements.Search), (0, _combi_1.sta)(Statements.SetBit), (0, _combi_1.sta)(Statements.SetBlank), (0, _combi_1.sta)(Statements.SetCountry), (0, _combi_1.sta)(Statements.SetCursor), (0, _combi_1.sta)(Statements.SetDataset), (0, _combi_1.sta)(Statements.SetExtendedCheck), (0, _combi_1.sta)(Statements.SetHandler), (0, _combi_1.sta)(Statements.SetLanguage), (0, _combi_1.sta)(Statements.SetLeft), (0, _combi_1.sta)(Statements.SetLocale), (0, _combi_1.sta)(Statements.SetMargin), (0, _combi_1.sta)(Statements.SetParameter), (0, _combi_1.sta)(Statements.SetPFStatus), (0, _combi_1.sta)(Statements.SetProperty), (0, _combi_1.sta)(Statements.SetRunTime), (0, _combi_1.sta)(Statements.SetScreen), (0, _combi_1.sta)(Statements.SetTitlebar), (0, _combi_1.sta)(Statements.SetUserCommand), (0, _combi_1.sta)(Statements.SetUpdateTask), (0, _combi_1.sta)(Statements.Shift), (0, _combi_1.sta)(Statements.Skip), (0, _combi_1.sta)(Statements.SortDataset), (0, _combi_1.sta)(Statements.Sort), (0, _combi_1.sta)(Statements.Static), (0, _combi_1.sta)(Statements.Split), (0, _combi_1.sta)(Statements.Stop), (0, _combi_1.sta)(Statements.Submit), (0, _combi_1.sta)(Statements.Summary), (0, _combi_1.sta)(Statements.SubtractCorresponding), (0, _combi_1.sta)(Statements.Subtract), (0, _combi_1.sta)(Statements.SuppressDialog), (0, _combi_1.sta)(Statements.Supply), (0, _combi_1.sta)(Statements.Sum), (0, _combi_1.sta)(Statements.SyntaxCheck), (0, _combi_1.sta)(Statements.SystemCall), (0, _combi_1.sta)(Statements.Tables), (0, _combi_1.sta)(Statements.Transfer), (0, _combi_1.sta)(Statements.Translate), (0, _combi_1.sta)(Statements.Type), (0, _combi_1.sta)(Statements.TypePools), (0, _combi_1.sta)(Statements.Uline), (0, _combi_1.sta)(Statements.Unassign), (0, _combi_1.sta)(Statements.Unpack), (0, _combi_1.sta)(Statements.UpdateDatabase), (0, _combi_1.sta)(Statements.Wait), (0, _combi_1.sta)(Statements.Window), (0, _combi_1.sta)(Statements.Write), (0, _combi_1.sta)(Statements.CommitEntities), (0, _combi_1.sta)(Statements.GetPermissions), (0, _combi_1.sta)(Statements.SetLocks), (0, _combi_1.sta)(Statements.ModifyEntities), (0, _combi_1.sta)(Statements.ReadEntities), (0, _combi_1.sta)(Statements.RollbackEntities), (0, _combi_1.sub)(Structures.Define), (0, _combi_1.sub)(Structures.TestInjection), (0, _combi_1.sub)(Structures.TestSeam), (0, _combi_1.sub)(Structures.TypeMesh), (0, _combi_1.sub)(Structures.Provide), (0, _combi_1.sub)(Structures.CatchSystemExceptions), (0, _combi_1.sub)(Structures.At), (0, _combi_1.sub)(Structures.AtFirst), (0, _combi_1.sub)(Structures.AtLast), (0, _combi_1.sub)(Structures.Constants), (0, _combi_1.sub)(Structures.Types), (0, _combi_1.sub)(Structures.Statics), (0, _combi_1.sub)(Structures.Select), (0, _combi_1.sub)(Structures.Data), (0, _combi_1.sub)(Structures.TypeEnum), (0, _combi_1.sub)(Structures.While), (0, _combi_1.sub)(Structures.With), (0, _combi_1.sub)(Structures.Do), (0, _combi_1.sub)(Structures.ExecSQL));
|
|
17211
17303
|
}
|
|
17212
17304
|
}
|
|
17213
17305
|
exports.Normal = Normal;
|
|
@@ -45763,6 +45855,8 @@ class Indent {
|
|
|
45763
45855
|
|| type instanceof Statements.Interface
|
|
45764
45856
|
|| type instanceof Statements.Do
|
|
45765
45857
|
|| type instanceof Statements.At
|
|
45858
|
+
|| type instanceof Statements.AtFirst
|
|
45859
|
+
|| type instanceof Statements.AtLast
|
|
45766
45860
|
|| type instanceof Statements.ExecSQL
|
|
45767
45861
|
|| type instanceof Statements.Catch
|
|
45768
45862
|
|| type instanceof Statements.Define
|
|
@@ -46041,7 +46135,7 @@ class Registry {
|
|
|
46041
46135
|
}
|
|
46042
46136
|
static abaplintVersion() {
|
|
46043
46137
|
// magic, see build script "version.sh"
|
|
46044
|
-
return "2.95.
|
|
46138
|
+
return "2.95.28";
|
|
46045
46139
|
}
|
|
46046
46140
|
getDDICReferences() {
|
|
46047
46141
|
return this.references;
|
|
@@ -53383,6 +53477,8 @@ class EmptyStructure extends _abap_rule_1.ABAPRule {
|
|
|
53383
53477
|
}
|
|
53384
53478
|
if (this.getConfig().at === true) {
|
|
53385
53479
|
candidates.push(...stru.findAllStructures(Structures.At));
|
|
53480
|
+
candidates.push(...stru.findAllStructures(Structures.AtFirst));
|
|
53481
|
+
candidates.push(...stru.findAllStructures(Structures.AtLast));
|
|
53386
53482
|
}
|
|
53387
53483
|
for (const l of candidates) {
|
|
53388
53484
|
if (l.getChildren().length === 2) {
|
|
@@ -75339,6 +75435,60 @@ exports.WriteTranspiler = WriteTranspiler;
|
|
|
75339
75435
|
|
|
75340
75436
|
/***/ }),
|
|
75341
75437
|
|
|
75438
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/structures/at_first.js":
|
|
75439
|
+
/*!****************************************************************************!*\
|
|
75440
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/structures/at_first.js ***!
|
|
75441
|
+
\****************************************************************************/
|
|
75442
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
75443
|
+
|
|
75444
|
+
"use strict";
|
|
75445
|
+
|
|
75446
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
75447
|
+
exports.AtFirstTranspiler = void 0;
|
|
75448
|
+
const abaplint = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
|
|
75449
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
75450
|
+
class AtFirstTranspiler {
|
|
75451
|
+
transpile(node, traversal) {
|
|
75452
|
+
const ret = new chunk_1.Chunk();
|
|
75453
|
+
const body = node.findDirectStructure(abaplint.Structures.Body);
|
|
75454
|
+
if (body) {
|
|
75455
|
+
ret.appendChunk(traversal.traverse(body));
|
|
75456
|
+
}
|
|
75457
|
+
return ret;
|
|
75458
|
+
}
|
|
75459
|
+
}
|
|
75460
|
+
exports.AtFirstTranspiler = AtFirstTranspiler;
|
|
75461
|
+
//# sourceMappingURL=at_first.js.map
|
|
75462
|
+
|
|
75463
|
+
/***/ }),
|
|
75464
|
+
|
|
75465
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/structures/at_last.js":
|
|
75466
|
+
/*!***************************************************************************!*\
|
|
75467
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/structures/at_last.js ***!
|
|
75468
|
+
\***************************************************************************/
|
|
75469
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
75470
|
+
|
|
75471
|
+
"use strict";
|
|
75472
|
+
|
|
75473
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
75474
|
+
exports.AtLastTranspiler = void 0;
|
|
75475
|
+
const abaplint = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
|
|
75476
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
75477
|
+
class AtLastTranspiler {
|
|
75478
|
+
transpile(node, traversal) {
|
|
75479
|
+
const ret = new chunk_1.Chunk();
|
|
75480
|
+
const body = node.findDirectStructure(abaplint.Structures.Body);
|
|
75481
|
+
if (body) {
|
|
75482
|
+
ret.appendChunk(traversal.traverse(body));
|
|
75483
|
+
}
|
|
75484
|
+
return ret;
|
|
75485
|
+
}
|
|
75486
|
+
}
|
|
75487
|
+
exports.AtLastTranspiler = AtLastTranspiler;
|
|
75488
|
+
//# sourceMappingURL=at_last.js.map
|
|
75489
|
+
|
|
75490
|
+
/***/ }),
|
|
75491
|
+
|
|
75342
75492
|
/***/ "./node_modules/@abaplint/transpiler/build/src/structures/case.js":
|
|
75343
75493
|
/*!************************************************************************!*\
|
|
75344
75494
|
!*** ./node_modules/@abaplint/transpiler/build/src/structures/case.js ***!
|
|
@@ -75842,13 +75992,16 @@ __exportStar(__webpack_require__(/*! ./constants */ "./node_modules/@abaplint/tr
|
|
|
75842
75992
|
__exportStar(__webpack_require__(/*! ./data */ "./node_modules/@abaplint/transpiler/build/src/structures/data.js"), exports);
|
|
75843
75993
|
__exportStar(__webpack_require__(/*! ./define */ "./node_modules/@abaplint/transpiler/build/src/structures/define.js"), exports);
|
|
75844
75994
|
__exportStar(__webpack_require__(/*! ./do */ "./node_modules/@abaplint/transpiler/build/src/structures/do.js"), exports);
|
|
75995
|
+
__exportStar(__webpack_require__(/*! ./at_first */ "./node_modules/@abaplint/transpiler/build/src/structures/at_first.js"), exports);
|
|
75996
|
+
__exportStar(__webpack_require__(/*! ./at_last */ "./node_modules/@abaplint/transpiler/build/src/structures/at_last.js"), exports);
|
|
75845
75997
|
__exportStar(__webpack_require__(/*! ./function_module */ "./node_modules/@abaplint/transpiler/build/src/structures/function_module.js"), exports);
|
|
75846
75998
|
__exportStar(__webpack_require__(/*! ./interface */ "./node_modules/@abaplint/transpiler/build/src/structures/interface.js"), exports);
|
|
75847
|
-
__exportStar(__webpack_require__(/*! ./
|
|
75999
|
+
__exportStar(__webpack_require__(/*! ./loop */ "./node_modules/@abaplint/transpiler/build/src/structures/loop.js"), exports);
|
|
75848
76000
|
__exportStar(__webpack_require__(/*! ./select */ "./node_modules/@abaplint/transpiler/build/src/structures/select.js"), exports);
|
|
75849
76001
|
__exportStar(__webpack_require__(/*! ./try */ "./node_modules/@abaplint/transpiler/build/src/structures/try.js"), exports);
|
|
75850
76002
|
__exportStar(__webpack_require__(/*! ./types */ "./node_modules/@abaplint/transpiler/build/src/structures/types.js"), exports);
|
|
75851
76003
|
__exportStar(__webpack_require__(/*! ./when */ "./node_modules/@abaplint/transpiler/build/src/structures/when.js"), exports);
|
|
76004
|
+
__exportStar(__webpack_require__(/*! ./while */ "./node_modules/@abaplint/transpiler/build/src/structures/while.js"), exports);
|
|
75852
76005
|
//# sourceMappingURL=index.js.map
|
|
75853
76006
|
|
|
75854
76007
|
/***/ }),
|
|
@@ -75939,6 +76092,71 @@ exports.InterfaceTranspiler = InterfaceTranspiler;
|
|
|
75939
76092
|
|
|
75940
76093
|
/***/ }),
|
|
75941
76094
|
|
|
76095
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/structures/loop.js":
|
|
76096
|
+
/*!************************************************************************!*\
|
|
76097
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/structures/loop.js ***!
|
|
76098
|
+
\************************************************************************/
|
|
76099
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
76100
|
+
|
|
76101
|
+
"use strict";
|
|
76102
|
+
|
|
76103
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
76104
|
+
exports.LoopTranspiler = void 0;
|
|
76105
|
+
const abaplint = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
|
|
76106
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
76107
|
+
const at_first_1 = __webpack_require__(/*! ./at_first */ "./node_modules/@abaplint/transpiler/build/src/structures/at_first.js");
|
|
76108
|
+
const at_last_1 = __webpack_require__(/*! ./at_last */ "./node_modules/@abaplint/transpiler/build/src/structures/at_last.js");
|
|
76109
|
+
const unique_identifier_1 = __webpack_require__(/*! ../unique_identifier */ "./node_modules/@abaplint/transpiler/build/src/unique_identifier.js");
|
|
76110
|
+
class LoopTranspiler {
|
|
76111
|
+
transpile(node, traversal) {
|
|
76112
|
+
const ret = new chunk_1.Chunk();
|
|
76113
|
+
let pre = "";
|
|
76114
|
+
let atFirst = undefined;
|
|
76115
|
+
let atLast = undefined;
|
|
76116
|
+
for (const c of node.getChildren()) {
|
|
76117
|
+
if (c instanceof abaplint.Nodes.StructureNode && c.get() instanceof abaplint.Structures.Body) {
|
|
76118
|
+
for (const b of c.getChildren()) {
|
|
76119
|
+
for (const n of b.getChildren()) {
|
|
76120
|
+
if (n instanceof abaplint.Nodes.StructureNode && n.get() instanceof abaplint.Structures.AtFirst) {
|
|
76121
|
+
atFirst = new at_first_1.AtFirstTranspiler().transpile(n, traversal);
|
|
76122
|
+
const u = unique_identifier_1.UniqueIdentifier.get();
|
|
76123
|
+
pre = "let " + u + " = false;\n";
|
|
76124
|
+
ret.appendString("if (" + u + " === false) {\n");
|
|
76125
|
+
ret.appendChunk(atFirst);
|
|
76126
|
+
ret.appendString(u + " = true;\n");
|
|
76127
|
+
ret.appendString("}\n");
|
|
76128
|
+
}
|
|
76129
|
+
else if (n instanceof abaplint.Nodes.StructureNode && n.get() instanceof abaplint.Structures.AtLast) {
|
|
76130
|
+
atLast = new at_last_1.AtLastTranspiler().transpile(n, traversal);
|
|
76131
|
+
}
|
|
76132
|
+
else {
|
|
76133
|
+
ret.appendChunk(traversal.traverse(n));
|
|
76134
|
+
}
|
|
76135
|
+
}
|
|
76136
|
+
}
|
|
76137
|
+
}
|
|
76138
|
+
else {
|
|
76139
|
+
ret.appendChunk(traversal.traverse(c));
|
|
76140
|
+
}
|
|
76141
|
+
}
|
|
76142
|
+
const atted = new chunk_1.Chunk();
|
|
76143
|
+
if (pre) {
|
|
76144
|
+
atted.appendString(pre);
|
|
76145
|
+
}
|
|
76146
|
+
atted.appendChunk(ret);
|
|
76147
|
+
if (atLast) {
|
|
76148
|
+
atted.appendString("if (abap.builtin.sy.get().subrc.get() === 0) {\n");
|
|
76149
|
+
atted.appendChunk(atLast);
|
|
76150
|
+
atted.appendString("}\n");
|
|
76151
|
+
}
|
|
76152
|
+
return atted;
|
|
76153
|
+
}
|
|
76154
|
+
}
|
|
76155
|
+
exports.LoopTranspiler = LoopTranspiler;
|
|
76156
|
+
//# sourceMappingURL=loop.js.map
|
|
76157
|
+
|
|
76158
|
+
/***/ }),
|
|
76159
|
+
|
|
75942
76160
|
/***/ "./node_modules/@abaplint/transpiler/build/src/structures/select.js":
|
|
75943
76161
|
/*!**************************************************************************!*\
|
|
75944
76162
|
!*** ./node_modules/@abaplint/transpiler/build/src/structures/select.js ***!
|
|
@@ -78581,80 +78799,34 @@ function readDocType(xmlData, i){
|
|
|
78581
78799
|
{
|
|
78582
78800
|
i = i+9;
|
|
78583
78801
|
let angleBracketsCount = 1;
|
|
78584
|
-
let hasBody = false,
|
|
78802
|
+
let hasBody = false, comment = false;
|
|
78585
78803
|
let exp = "";
|
|
78586
78804
|
for(;i<xmlData.length;i++){
|
|
78587
|
-
if (xmlData[i] === '<' && !comment) {
|
|
78588
|
-
if( hasBody &&
|
|
78589
|
-
|
|
78590
|
-
|
|
78591
|
-
|
|
78592
|
-
|
|
78593
|
-
|
|
78594
|
-
|
|
78595
|
-
|
|
78596
|
-
){
|
|
78597
|
-
i += 7;
|
|
78598
|
-
entity = true;
|
|
78599
|
-
}else if( hasBody &&
|
|
78600
|
-
xmlData[i+1] === '!' &&
|
|
78601
|
-
xmlData[i+2] === 'E' &&
|
|
78602
|
-
xmlData[i+3] === 'L' &&
|
|
78603
|
-
xmlData[i+4] === 'E' &&
|
|
78604
|
-
xmlData[i+5] === 'M' &&
|
|
78605
|
-
xmlData[i+6] === 'E' &&
|
|
78606
|
-
xmlData[i+7] === 'N' &&
|
|
78607
|
-
xmlData[i+8] === 'T'
|
|
78608
|
-
){
|
|
78609
|
-
//Not supported
|
|
78610
|
-
i += 8;
|
|
78611
|
-
}else if( hasBody &&
|
|
78612
|
-
xmlData[i+1] === '!' &&
|
|
78613
|
-
xmlData[i+2] === 'A' &&
|
|
78614
|
-
xmlData[i+3] === 'T' &&
|
|
78615
|
-
xmlData[i+4] === 'T' &&
|
|
78616
|
-
xmlData[i+5] === 'L' &&
|
|
78617
|
-
xmlData[i+6] === 'I' &&
|
|
78618
|
-
xmlData[i+7] === 'S' &&
|
|
78619
|
-
xmlData[i+8] === 'T'
|
|
78620
|
-
){
|
|
78621
|
-
//Not supported
|
|
78622
|
-
i += 8;
|
|
78623
|
-
}else if( hasBody &&
|
|
78624
|
-
xmlData[i+1] === '!' &&
|
|
78625
|
-
xmlData[i+2] === 'N' &&
|
|
78626
|
-
xmlData[i+3] === 'O' &&
|
|
78627
|
-
xmlData[i+4] === 'T' &&
|
|
78628
|
-
xmlData[i+5] === 'A' &&
|
|
78629
|
-
xmlData[i+6] === 'T' &&
|
|
78630
|
-
xmlData[i+7] === 'I' &&
|
|
78631
|
-
xmlData[i+8] === 'O' &&
|
|
78632
|
-
xmlData[i+9] === 'N'
|
|
78633
|
-
){
|
|
78634
|
-
//Not supported
|
|
78635
|
-
i += 9;
|
|
78636
|
-
}else if( //comment
|
|
78637
|
-
xmlData[i+1] === '!' &&
|
|
78638
|
-
xmlData[i+2] === '-' &&
|
|
78639
|
-
xmlData[i+3] === '-'
|
|
78640
|
-
){
|
|
78641
|
-
comment = true;
|
|
78642
|
-
}else{
|
|
78643
|
-
throw new Error("Invalid DOCTYPE");
|
|
78805
|
+
if (xmlData[i] === '<' && !comment) { //Determine the tag type
|
|
78806
|
+
if( hasBody && isEntity(xmlData, i)){
|
|
78807
|
+
i += 7;
|
|
78808
|
+
[entityName, val,i] = readEntityExp(xmlData,i+1);
|
|
78809
|
+
if(val.indexOf("&") === -1) //Parameter entities are not supported
|
|
78810
|
+
entities[ entityName ] = {
|
|
78811
|
+
regx : RegExp( `&${entityName};`,"g"),
|
|
78812
|
+
val: val
|
|
78813
|
+
};
|
|
78644
78814
|
}
|
|
78815
|
+
else if( hasBody && isElement(xmlData, i)) i += 8;//Not supported
|
|
78816
|
+
else if( hasBody && isAttlist(xmlData, i)) i += 8;//Not supported
|
|
78817
|
+
else if( hasBody && isNotation(xmlData, i)) i += 9;//Not supported
|
|
78818
|
+
else if( isComment) comment = true;
|
|
78819
|
+
else throw new Error("Invalid DOCTYPE");
|
|
78820
|
+
|
|
78645
78821
|
angleBracketsCount++;
|
|
78646
78822
|
exp = "";
|
|
78647
|
-
} else if (xmlData[i] === '>') {
|
|
78823
|
+
} else if (xmlData[i] === '>') { //Read tag content
|
|
78648
78824
|
if(comment){
|
|
78649
78825
|
if( xmlData[i - 1] === "-" && xmlData[i - 2] === "-"){
|
|
78650
78826
|
comment = false;
|
|
78651
78827
|
angleBracketsCount--;
|
|
78652
78828
|
}
|
|
78653
78829
|
}else{
|
|
78654
|
-
if(entity) {
|
|
78655
|
-
parseEntityExp(exp, entities);
|
|
78656
|
-
entity = false;
|
|
78657
|
-
}
|
|
78658
78830
|
angleBracketsCount--;
|
|
78659
78831
|
}
|
|
78660
78832
|
if (angleBracketsCount === 0) {
|
|
@@ -78675,16 +78847,87 @@ function readDocType(xmlData, i){
|
|
|
78675
78847
|
return {entities, i};
|
|
78676
78848
|
}
|
|
78677
78849
|
|
|
78678
|
-
|
|
78679
|
-
|
|
78680
|
-
|
|
78681
|
-
|
|
78682
|
-
|
|
78683
|
-
|
|
78684
|
-
|
|
78685
|
-
|
|
78850
|
+
function readEntityExp(xmlData,i){
|
|
78851
|
+
//External entities are not supported
|
|
78852
|
+
// <!ENTITY ext SYSTEM "http://normal-website.com" >
|
|
78853
|
+
|
|
78854
|
+
//Parameter entities are not supported
|
|
78855
|
+
// <!ENTITY entityname "&anotherElement;">
|
|
78856
|
+
|
|
78857
|
+
//Internal entities are supported
|
|
78858
|
+
// <!ENTITY entityname "replacement text">
|
|
78859
|
+
|
|
78860
|
+
//read EntityName
|
|
78861
|
+
let entityName = "";
|
|
78862
|
+
for (; i < xmlData.length && (xmlData[i] !== "'" && xmlData[i] !== '"' ); i++) {
|
|
78863
|
+
// if(xmlData[i] === " ") continue;
|
|
78864
|
+
// else
|
|
78865
|
+
entityName += xmlData[i];
|
|
78866
|
+
}
|
|
78867
|
+
entityName = entityName.trim();
|
|
78868
|
+
if(entityName.indexOf(" ") !== -1) throw new Error("External entites are not supported");
|
|
78869
|
+
|
|
78870
|
+
//read Entity Value
|
|
78871
|
+
const startChar = xmlData[i++];
|
|
78872
|
+
let val = ""
|
|
78873
|
+
for (; i < xmlData.length && xmlData[i] !== startChar ; i++) {
|
|
78874
|
+
val += xmlData[i];
|
|
78686
78875
|
}
|
|
78876
|
+
return [entityName, val, i];
|
|
78877
|
+
}
|
|
78878
|
+
|
|
78879
|
+
function isComment(xmlData, i){
|
|
78880
|
+
if(xmlData[i+1] === '!' &&
|
|
78881
|
+
xmlData[i+2] === '-' &&
|
|
78882
|
+
xmlData[i+3] === '-') return true
|
|
78883
|
+
return false
|
|
78687
78884
|
}
|
|
78885
|
+
function isEntity(xmlData, i){
|
|
78886
|
+
if(xmlData[i+1] === '!' &&
|
|
78887
|
+
xmlData[i+2] === 'E' &&
|
|
78888
|
+
xmlData[i+3] === 'N' &&
|
|
78889
|
+
xmlData[i+4] === 'T' &&
|
|
78890
|
+
xmlData[i+5] === 'I' &&
|
|
78891
|
+
xmlData[i+6] === 'T' &&
|
|
78892
|
+
xmlData[i+7] === 'Y') return true
|
|
78893
|
+
return false
|
|
78894
|
+
}
|
|
78895
|
+
function isElement(xmlData, i){
|
|
78896
|
+
if(xmlData[i+1] === '!' &&
|
|
78897
|
+
xmlData[i+2] === 'E' &&
|
|
78898
|
+
xmlData[i+3] === 'L' &&
|
|
78899
|
+
xmlData[i+4] === 'E' &&
|
|
78900
|
+
xmlData[i+5] === 'M' &&
|
|
78901
|
+
xmlData[i+6] === 'E' &&
|
|
78902
|
+
xmlData[i+7] === 'N' &&
|
|
78903
|
+
xmlData[i+8] === 'T') return true
|
|
78904
|
+
return false
|
|
78905
|
+
}
|
|
78906
|
+
|
|
78907
|
+
function isAttlist(xmlData, i){
|
|
78908
|
+
if(xmlData[i+1] === '!' &&
|
|
78909
|
+
xmlData[i+2] === 'A' &&
|
|
78910
|
+
xmlData[i+3] === 'T' &&
|
|
78911
|
+
xmlData[i+4] === 'T' &&
|
|
78912
|
+
xmlData[i+5] === 'L' &&
|
|
78913
|
+
xmlData[i+6] === 'I' &&
|
|
78914
|
+
xmlData[i+7] === 'S' &&
|
|
78915
|
+
xmlData[i+8] === 'T') return true
|
|
78916
|
+
return false
|
|
78917
|
+
}
|
|
78918
|
+
function isNotation(xmlData, i){
|
|
78919
|
+
if(xmlData[i+1] === '!' &&
|
|
78920
|
+
xmlData[i+2] === 'N' &&
|
|
78921
|
+
xmlData[i+3] === 'O' &&
|
|
78922
|
+
xmlData[i+4] === 'T' &&
|
|
78923
|
+
xmlData[i+5] === 'A' &&
|
|
78924
|
+
xmlData[i+6] === 'T' &&
|
|
78925
|
+
xmlData[i+7] === 'I' &&
|
|
78926
|
+
xmlData[i+8] === 'O' &&
|
|
78927
|
+
xmlData[i+9] === 'N') return true
|
|
78928
|
+
return false
|
|
78929
|
+
}
|
|
78930
|
+
|
|
78688
78931
|
module.exports = readDocType;
|
|
78689
78932
|
|
|
78690
78933
|
/***/ }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.12",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"bin": {
|
|
6
6
|
"abap_transpile": "./abap_transpile"
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"author": "abaplint",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@abaplint/transpiler": "^2.5.
|
|
28
|
+
"@abaplint/transpiler": "^2.5.12",
|
|
29
29
|
"@types/glob": "^7.2.0",
|
|
30
30
|
"glob": "=7.2.0",
|
|
31
31
|
"@types/progress": "^2.0.5",
|
|
32
|
-
"@abaplint/core": "^2.95.
|
|
32
|
+
"@abaplint/core": "^2.95.28",
|
|
33
33
|
"progress": "^2.0.3",
|
|
34
34
|
"webpack": "^5.75.0",
|
|
35
35
|
"webpack-cli": "^5.0.1",
|