SEBA-513 Validation of xproto
Change-Id: I300e86c3b7b6839aa12d726d6bdf9ab59adece94
diff --git a/lib/xos-genx/xosgenx/xos2jinja.py b/lib/xos-genx/xosgenx/xos2jinja.py
index e4ff7db..c61bf55 100644
--- a/lib/xos-genx/xosgenx/xos2jinja.py
+++ b/lib/xos-genx/xosgenx/xos2jinja.py
@@ -267,6 +267,7 @@
except BaseException:
pass
s["_type"] = "field"
+ s["_linespan"] = obj.linespan
self.stack.push(s)
return True
@@ -327,6 +328,7 @@
"package": self.package,
"fqn": model_name,
"rlinks": [],
+ "_linespan": obj.linespan, # first and last line number
}
try:
model_def["policy"] = obj.policy.pval