From 655b4dc2195ec4f19c5de873df8a5ee137253be1 Mon Sep 17 00:00:00 2001 From: venky225 Date: Tue, 2 Dec 2025 16:02:05 +0530 Subject: [PATCH] Adding line number, linetext and record reference to FieldInfo for Field Level Impact Analysis in understand --- src/dspf.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/dspf.js b/src/dspf.js index 39030d2..9580538 100644 --- a/src/dspf.js +++ b/src/dspf.js @@ -101,6 +101,11 @@ class DisplayFile { this.currentField.name = name; this.currentField.value = ""; this.currentField.length = Number(len); + this.currentField.lineIndex = index; + this.currentField.lineText = line; + if (line[28] === 'R') { + this.currentField.isRecordReference = true; + } switch (inout) { case "I": @@ -168,6 +173,11 @@ class DisplayFile { if (this.currentField.value == null) this.currentField.value = ""; this.currentField.length = this.currentField.value.length; this.currentField.displayType = `const`; + this.currentField.lineIndex = index; + this.currentField.lineText = line; + if (line[28] === 'R') { + this.currentField.isRecordReference = true; + } this.currentField.conditions.push( ...DisplayFile.parseConditionals(conditionals) @@ -466,6 +476,15 @@ class FieldInfo { /** @type {{name: string, value: string, conditions: Conditional[]}[]} */ this.keywords = []; + + /** @type {number} */ + this.lineIndex = -1; + + /** @type {boolean} */ + this.isRecordReference = false; + + /** @type {string} */ + this.lineText = ``; } handleKeywords() {