Skip to content

Commit

Permalink
Merge pull request #55 from rdkcentral/development/fix-alt-in-properties
Browse files Browse the repository at this point in the history
[JsonGenerator] Fix alt in properties
  • Loading branch information
pwielders authored Nov 13, 2023
2 parents dde1b13 + 7fcd198 commit d417610
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions JsonGenerator/source/header_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,13 @@ def BuildResult(vars, is_property=False):
mm.retval.meta.text = method.retval.meta.text
break

# Copy over @alt tag to the other method of a property
if method.retval.meta.alt and method.retval.meta.is_property:
for mm in face.obj.methods:
if mm != method and mm.name == method.name:
mm.retval.meta.alt = method.retval.meta.alt
break

method_name = method.retval.meta.text if method.retval.meta.text else method.name
method_name_lower = method_name.lower()

Expand Down

0 comments on commit d417610

Please sign in to comment.