66#
77# Copyright (c) 2017-2020 Kestrel Technology LLC
88# Copyright (c) 2020-2022 Henny B. Sipma
9- # Copyright (c) 2023-2024 Aarno Labs LLC
9+ # Copyright (c) 2023-2026 Aarno Labs LLC
1010#
1111# Permission is hereby granted, free of charge, to any person obtaining a copy
1212# of this software and associated documentation files (the "Software"), to deal
@@ -148,6 +148,13 @@ def msgs(self) -> List[SituatedMsg]:
148148 SituatedMsg (self .cd , x ) for x in mnode .findall ("msg" )]
149149 return self ._msgs
150150
151+ @property
152+ def msgs_txt (self ) -> List [str ]:
153+ """Returns the ext of the situated msgs without the additional
154+ details."""
155+
156+ return [smsg .msg for smsg in self .msgs ]
157+
151158 @property
152159 def argument_msgs (self ) -> Dict [int , List [SituatedMsg ]]:
153160 """Returns argument-specific diagnostic messages.
@@ -168,6 +175,16 @@ def argument_msgs(self) -> Dict[int, List[SituatedMsg]]:
168175 self ._amsgs [int (xargindex )] = msgs
169176 return self ._amsgs
170177
178+ @property
179+ def argument_msgs_txt (self ) -> Dict [int , List [str ]]:
180+ """Returns the texts of the situated msgs without the additional
181+ details."""
182+
183+ result : Dict [int , List [str ]] = {}
184+ for (index , smsgs ) in self .argument_msgs .items ():
185+ result [index ] = [smsg .msg for smsg in smsgs ]
186+ return result
187+
171188 @property
172189 def keyword_msgs (self ) -> Dict [str , List [str ]]:
173190 """Returns diagnostics with a known keyword (e.g., a domain name)."""
0 commit comments