summaryrefslogtreecommitdiff
path: root/system/gd/packet/parser/doc/reference.md
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-04-09 23:09:28 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-04-09 23:09:28 +0000
commit4b17cbcccf3c79b9839b32d055883b4fa12dac6c (patch)
tree671509816cac7f79d56c4515300ace3e6a1c33c4 /system/gd/packet/parser/doc/reference.md
parentc7d896b3b3e5aa58ec83546790cdd2f81ca32314 (diff)
parentd76065776b2690ee6c1595e46b10115ae0d32a42 (diff)
Snap for 8431966 from d76065776b2690ee6c1595e46b10115ae0d32a42 to tm-release
Change-Id: I0af90a0b5ca04edd75f394b617297a5f082d05f4
Diffstat (limited to 'system/gd/packet/parser/doc/reference.md')
-rw-r--r--system/gd/packet/parser/doc/reference.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/system/gd/packet/parser/doc/reference.md b/system/gd/packet/parser/doc/reference.md
index 1e521372d3..6158faee57 100644
--- a/system/gd/packet/parser/doc/reference.md
+++ b/system/gd/packet/parser/doc/reference.md
@@ -54,6 +54,20 @@ packet Brew {
}
```
+## Identifiers
+
+- Identifiers can denote a field; an enumeration tag; or a declared type.
+
+- Field identifiers declared in a [packet](#packet) (resp. [struct](#struct)) belong to the _scope_ that extends
+ to the packet (resp. struct), and all derived packets (resp. structs).
+
+- Field identifiers declared in a [group](#group) belong to the _scope_ that
+ extends to the packets declaring a [group field](#group_field) for this group.
+
+- Two fields may not be declared with the same identifier in any packet scope.
+
+- Two types may not be declared width the same identifier.
+
## Declarations
> declaration: {#declaration}\