From 2304047cfc190086e3e2bfbaf3e920cc7f4f878e Mon Sep 17 00:00:00 2001
From: Hans Bolinder
Date: Wed, 6 Sep 2017 10:02:07 +0200
Subject: Dialyzer: Rewrite some of the docs of map types
Use "association" instead of "pair" as in Data Types and
The Abstract Format.
---
system/doc/reference_manual/typespec.xml | 35 +++++++++++++++++---------------
1 file changed, 19 insertions(+), 16 deletions(-)
(limited to 'system/doc')
diff --git a/system/doc/reference_manual/typespec.xml b/system/doc/reference_manual/typespec.xml
index a0ea41cb3b..f6a19397c3 100644
--- a/system/doc/reference_manual/typespec.xml
+++ b/system/doc/reference_manual/typespec.xml
@@ -4,7 +4,7 @@
- 20032016
+ 20032017
Ericsson AB. All Rights Reserved.
@@ -133,17 +133,17 @@
Map :: map() %% denotes a map of any size
| #{} %% denotes the empty map
- | #{PairList}
+ | #{AssociationList}
Tuple :: tuple() %% denotes a tuple of any size
| {}
| {TList}
- PairList :: Pair
- | Pair, PairList
+ AssociationList :: Association
+ | Association, AssociationList
- Pair :: Type := Type %% denotes a mandatory pair
- | Type => Type %% denotes an optional pair
+ Association :: Type := Type %% denotes a mandatory association
+ | Type => Type %% denotes an optional association
TList :: Type
| Type, TList
@@ -173,14 +173,17 @@
The notation [] specifies the singleton type for the empty list.
- The general form of maps is #{PairList}. The key types in
- PairList are allowed to overlap, and if they do, the
- leftmost pair takes precedence. A map pair has a key in
- PairList if it belongs to this type. A PairList may contain
- both 'mandatory' and 'optional' pairs where 'mandatory' denotes that
- a key type, and its associated value type, must be present.
- In the case of an 'optional' pair it is not required for the key type to
- be present.
+ The general form of map types is #{AssociationList}.
+ The key types in
+ AssociationList are allowed to overlap, and if they do, the
+ leftmost association takes precedence. A map association has a key in
+ AssociationList if it belongs to this type.
+ AssociationList can contain both mandatory and optional
+ association types.
+ If an association type is mandatory, an association with that type
+ is to be present.
+ In the case of an optional association type it is not required for
+ the key type to be present.
Notice that the syntactic representation of map() is
@@ -512,8 +515,8 @@
Currently, the :: constraint
(read as «is a subtype of») is
- the only guard constraint that can be used in the 'when'
- part of a '-spec' attribute.
+ the only guard constraint that can be used in the when
+ part of a -spec attribute.
--
cgit v1.2.3