@@ -60,7 +60,7 @@ The public root element identifies the package and provides references
60
60
for all exported objects it contains.
61
61
62
62
PublicRoot = Relocs
63
- [ SyncPublic ] // TODO(markfreeman): Define.
63
+ [ Sync ]
64
64
PkgRef
65
65
[ HasInit ]
66
66
ObjectRefCount // TODO(markfreeman): Define.
@@ -80,7 +80,7 @@ directive). Every base has a position, line, and column; these are
80
80
constant for file bases and hence not encoded.
81
81
82
82
PosBase = Relocs
83
- [ SyncPosBase ] // TODO(markfreeman): Define.
83
+ [ Sync ]
84
84
StringRef // the (absolute) file name for the base
85
85
Bool // true if a file base, else a line base
86
86
// The below is ommitted for file bases.
@@ -93,7 +93,7 @@ A source position Pos represents a file-absolute (line, column) pair
93
93
and a PosBase indicating the position Pos is relative to. Positions
94
94
without a PosBase have no line or column.
95
95
96
- Pos = [ SyncPos ] // TODO(markfreeman): Define.
96
+ Pos = [ Sync ]
97
97
Bool // true if the position has a base
98
98
// The below is ommitted if the position has no base.
99
99
[ Ref[PosBase]
@@ -119,7 +119,7 @@ packages. The below package paths have special meaning.
119
119
+--------------+-----------------------------------+
120
120
121
121
Pkg = Relocs
122
- [ SyncPkgDef ] // TODO(markfreeman): Define.
122
+ [ Sync ]
123
123
StringRef // path
124
124
// The below is ommitted for the special package paths
125
125
// "builtin" and "unsafe".
@@ -132,7 +132,7 @@ packages. The below package paths have special meaning.
132
132
133
133
Note, a PkgRef is *not* equivalent to Ref[Pkg] due to an extra marker.
134
134
135
- PkgRef = [ SyncPkg ] // TODO(markfreeman): Define.
135
+ PkgRef = [ Sync ]
136
136
Ref[Pkg]
137
137
.
138
138
@@ -142,14 +142,14 @@ contains a section / index pair denoting the location of the referenced
142
142
element.
143
143
144
144
// TODO(markfreeman): Rename to RefTable.
145
- Relocs = [ SyncRelocs ] // TODO(markfreeman): Define.
145
+ Relocs = [ Sync ]
146
146
RelocCount
147
147
{ Reloc }
148
148
.
149
149
// TODO(markfreeman): Rename to RefTableEntryCount.
150
150
RelocCount = Uint64 .
151
151
// TODO(markfreeman): Rename to RefTableEntry.
152
- Reloc = [ SyncReloc ] // TODO(markfreeman): Define.
152
+ Reloc = [ Sync ]
153
153
SectionKind
154
154
RelIndex
155
155
.
@@ -158,7 +158,7 @@ Elements encode references to other elements as an index in the
158
158
reference table — not the location of the referenced element directly.
159
159
160
160
// TODO(markfreeman): Rename to RefUse.
161
- UseReloc = [ SyncUseReloc ] // TODO(markfreeman): Define.
161
+ UseReloc = [ Sync ]
162
162
RelIndex
163
163
.
164
164
@@ -170,6 +170,7 @@ there for definitions of the below productions.
170
170
* Int64
171
171
* Uint64
172
172
* String
173
+ * Sync
173
174
*/
174
175
175
176
package noder
0 commit comments