Skip to content

Commit

Permalink
S529-023: Rename DocAnnotations.val -> value
Browse files Browse the repository at this point in the history
  • Loading branch information
raph-amiard authored and pmderodat committed Jun 10, 2019
1 parent dba3543 commit 5e159a0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ada/extensions/nodes/basic_decl/bodies
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ begin
begin
DSL_Key.Items := Key;
DSL_Val.Items := Val;
Ret.Items (Idx) := (Key => DSL_Key, Val => DSL_Val);
Ret.Items (Idx) := (Key => DSL_Key, Value => DSL_Val);
end;
Idx := Idx + 1;
end loop;
Expand Down
2 changes: 1 addition & 1 deletion ada/language/ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ class DocAnnotation(Struct):
Documentation annotation.
"""
key = UserField(T.String, doc="Annotation key")
val = UserField(T.String, doc="Annotation value")
value = UserField(T.String, doc="Annotation value")


@abstract
Expand Down
2 changes: 1 addition & 1 deletion ada/testsuite/tests/properties/doc/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test(label, buffer):
if annotations:
print('Annotations:')
for a in annotations:
print(' * {} = {}'.format(a.key, a.val))
print(' * {} = {}'.format(a.key, a.value))
print()


Expand Down
2 changes: 1 addition & 1 deletion contrib/laldoc/laldoc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def get_documentation(self, decl):
"""
try:
doc = decl.p_doc.splitlines()
annots = {a.key: self.decode_annotation(a.key, a.val)
annots = {a.key: self.decode_annotation(a.key, a.value)
for a in decl.p_doc_annotations}
except lal.PropertyError:
self.warn('Badly formatted doc for {}'.format(decl.entity_repr))
Expand Down

0 comments on commit 5e159a0

Please sign in to comment.