protobufjs 5.0.1 → 5.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/.travis.yml +2 -1
  2. package/README.md +144 -22
  3. package/bin/pbjs +2 -2
  4. package/bower.json +2 -2
  5. package/cli/pbjs/targets/amd.js +1 -1
  6. package/cli/pbjs/targets/json.js +8 -0
  7. package/cli/pbjs/util.js +1 -1
  8. package/cli/pbjs.js +1 -1
  9. package/dist/protobuf-light.js +166 -128
  10. package/dist/protobuf-light.min.js +88 -81
  11. package/dist/protobuf-light.min.js.gz +0 -0
  12. package/dist/protobuf-light.min.map +4 -4
  13. package/dist/protobuf.js +171 -129
  14. package/dist/protobuf.min.js +106 -98
  15. package/dist/protobuf.min.js.gz +0 -0
  16. package/dist/protobuf.min.map +4 -4
  17. package/docs/ProtoBuf.Builder.Message.html +1408 -971
  18. package/docs/ProtoBuf.Builder.Service.html +266 -197
  19. package/docs/ProtoBuf.Builder.html +758 -542
  20. package/docs/ProtoBuf.DotProto.Parser.html +223 -161
  21. package/docs/ProtoBuf.DotProto.Tokenizer.html +344 -248
  22. package/docs/ProtoBuf.DotProto.html +20 -12
  23. package/docs/ProtoBuf.Element.html +554 -554
  24. package/docs/ProtoBuf.Map.html +158 -123
  25. package/docs/ProtoBuf.Reflect.Element.html +286 -143
  26. package/docs/ProtoBuf.Reflect.Enum.Value.html +329 -228
  27. package/docs/ProtoBuf.Reflect.Enum.html +757 -537
  28. package/docs/ProtoBuf.Reflect.Extension.html +73 -56
  29. package/docs/ProtoBuf.Reflect.Message.ExtensionField.html +1013 -740
  30. package/docs/ProtoBuf.Reflect.Message.Field.html +926 -649
  31. package/docs/ProtoBuf.Reflect.Message.OneOf.html +327 -245
  32. package/docs/ProtoBuf.Reflect.Message.html +915 -651
  33. package/docs/ProtoBuf.Reflect.Namespace.html +648 -447
  34. package/docs/ProtoBuf.Reflect.Service.Method.html +363 -251
  35. package/docs/ProtoBuf.Reflect.Service.RPCMethod.html +545 -397
  36. package/docs/ProtoBuf.Reflect.Service.html +721 -511
  37. package/docs/ProtoBuf.Reflect.T.html +268 -197
  38. package/docs/ProtoBuf.Reflect.html +20 -12
  39. package/docs/ProtoBuf.Util.html +169 -118
  40. package/docs/ProtoBuf.html +840 -628
  41. package/docs/ProtoBuf.js.html +177 -134
  42. package/docs/fonts/OpenSans-Bold-webfont.eot +0 -0
  43. package/docs/fonts/OpenSans-Bold-webfont.svg +1830 -0
  44. package/docs/fonts/OpenSans-Bold-webfont.woff +0 -0
  45. package/docs/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  46. package/docs/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
  47. package/docs/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  48. package/docs/fonts/OpenSans-Italic-webfont.eot +0 -0
  49. package/docs/fonts/OpenSans-Italic-webfont.svg +1830 -0
  50. package/docs/fonts/OpenSans-Italic-webfont.woff +0 -0
  51. package/docs/fonts/OpenSans-Light-webfont.eot +0 -0
  52. package/docs/fonts/OpenSans-Light-webfont.svg +1831 -0
  53. package/docs/fonts/OpenSans-Light-webfont.woff +0 -0
  54. package/docs/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  55. package/docs/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
  56. package/docs/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  57. package/docs/fonts/OpenSans-Regular-webfont.eot +0 -0
  58. package/docs/fonts/OpenSans-Regular-webfont.svg +1831 -0
  59. package/docs/fonts/OpenSans-Regular-webfont.woff +0 -0
  60. package/docs/index.html +7 -5
  61. package/docs/styles/jsdoc-default.css +95 -75
  62. package/docs/styles/prettify-tomorrow.css +1 -1
  63. package/examples/protoify/json.js +123 -123
  64. package/examples/protoify/json.json +123 -123
  65. package/examples/websocket/server.js +4 -4
  66. package/externs/protobuf.js +1 -1
  67. package/jsdoc.json +1 -1
  68. package/package.json +2 -2
  69. package/scripts/build.js +53 -53
  70. package/src/ProtoBuf/Builder/Message.js +9 -5
  71. package/src/ProtoBuf/Builder.js +19 -2
  72. package/src/ProtoBuf/DotProto/Parser.js +5 -1
  73. package/src/ProtoBuf/Reflect/Element.js +13 -1
  74. package/src/ProtoBuf/Reflect/Message/Field.js +2 -2
  75. package/src/ProtoBuf/Reflect/Message.js +6 -1
  76. package/src/ProtoBuf/Util.js +116 -116
  77. package/src/bower.json +1 -1
  78. package/src/google/protobuf/descriptor.json +27 -1
  79. package/tests/bench.txt +373 -373
  80. package/tests/complex.json +8 -1
  81. package/tests/custom-options.json +169 -169
  82. package/tests/extend.json +71 -71
  83. package/tests/imports.json +83 -83
  84. package/tests/nodeunit-browser/nodeunit.css +70 -70
  85. package/tests/nodeunit-browser/nodeunit.js +2108 -2108
  86. package/tests/options.json +32 -32
  87. package/tests/proto2js/Bar.json +46 -46
  88. package/tests/suite.js +43 -1
  89. package/sandbox/gapi/googleapis/google/api/annotations.proto +0 -29
  90. package/sandbox/gapi/googleapis/google/api/http.proto +0 -245
  91. package/sandbox/gapi/googleapis/google/datastore/v1beta3/datastore.proto +0 -281
  92. package/sandbox/gapi/googleapis/google/datastore/v1beta3/entity.proto +0 -189
  93. package/sandbox/gapi/googleapis/google/datastore/v1beta3/query.proto +0 -281
  94. package/sandbox/gapi/googleapis/google/longrunning/operations.proto +0 -144
  95. package/sandbox/gapi/googleapis/google/protobuf/any.proto +0 -98
  96. package/sandbox/gapi/googleapis/google/protobuf/any_test.proto +0 -41
  97. package/sandbox/gapi/googleapis/google/protobuf/api.proto +0 -201
  98. package/sandbox/gapi/googleapis/google/protobuf/descriptor.proto +0 -773
  99. package/sandbox/gapi/googleapis/google/protobuf/duration.proto +0 -95
  100. package/sandbox/gapi/googleapis/google/protobuf/empty.proto +0 -50
  101. package/sandbox/gapi/googleapis/google/protobuf/field_mask.proto +0 -167
  102. package/sandbox/gapi/googleapis/google/protobuf/map_lite_unittest.proto +0 -130
  103. package/sandbox/gapi/googleapis/google/protobuf/map_proto2_unittest.proto +0 -60
  104. package/sandbox/gapi/googleapis/google/protobuf/map_unittest.proto +0 -129
  105. package/sandbox/gapi/googleapis/google/protobuf/map_unittest_proto3.proto +0 -120
  106. package/sandbox/gapi/googleapis/google/protobuf/source_context.proto +0 -47
  107. package/sandbox/gapi/googleapis/google/protobuf/struct.proto +0 -94
  108. package/sandbox/gapi/googleapis/google/protobuf/timestamp.proto +0 -107
  109. package/sandbox/gapi/googleapis/google/protobuf/type.proto +0 -176
  110. package/sandbox/gapi/googleapis/google/protobuf/unittest.proto +0 -878
  111. package/sandbox/gapi/googleapis/google/protobuf/unittest_arena.proto +0 -46
  112. package/sandbox/gapi/googleapis/google/protobuf/unittest_custom_options.proto +0 -394
  113. package/sandbox/gapi/googleapis/google/protobuf/unittest_drop_unknown_fields.proto +0 -58
  114. package/sandbox/gapi/googleapis/google/protobuf/unittest_embed_optimize_for.proto +0 -51
  115. package/sandbox/gapi/googleapis/google/protobuf/unittest_empty.proto +0 -38
  116. package/sandbox/gapi/googleapis/google/protobuf/unittest_enormous_descriptor.proto +0 -1048
  117. package/sandbox/gapi/googleapis/google/protobuf/unittest_import.proto +0 -66
  118. package/sandbox/gapi/googleapis/google/protobuf/unittest_import_lite.proto +0 -52
  119. package/sandbox/gapi/googleapis/google/protobuf/unittest_import_proto3.proto +0 -68
  120. package/sandbox/gapi/googleapis/google/protobuf/unittest_import_public.proto +0 -41
  121. package/sandbox/gapi/googleapis/google/protobuf/unittest_import_public_lite.proto +0 -43
  122. package/sandbox/gapi/googleapis/google/protobuf/unittest_import_public_proto3.proto +0 -42
  123. package/sandbox/gapi/googleapis/google/protobuf/unittest_lite.proto +0 -385
  124. package/sandbox/gapi/googleapis/google/protobuf/unittest_lite_imports_nonlite.proto +0 -44
  125. package/sandbox/gapi/googleapis/google/protobuf/unittest_mset.proto +0 -82
  126. package/sandbox/gapi/googleapis/google/protobuf/unittest_mset_wire_format.proto +0 -52
  127. package/sandbox/gapi/googleapis/google/protobuf/unittest_no_arena.proto +0 -202
  128. package/sandbox/gapi/googleapis/google/protobuf/unittest_no_arena_import.proto +0 -37
  129. package/sandbox/gapi/googleapis/google/protobuf/unittest_no_arena_lite.proto +0 -42
  130. package/sandbox/gapi/googleapis/google/protobuf/unittest_no_field_presence.proto +0 -138
  131. package/sandbox/gapi/googleapis/google/protobuf/unittest_no_generic_services.proto +0 -54
  132. package/sandbox/gapi/googleapis/google/protobuf/unittest_optimize_for.proto +0 -67
  133. package/sandbox/gapi/googleapis/google/protobuf/unittest_preserve_unknown_enum.proto +0 -71
  134. package/sandbox/gapi/googleapis/google/protobuf/unittest_preserve_unknown_enum2.proto +0 -50
  135. package/sandbox/gapi/googleapis/google/protobuf/unittest_proto3.proto +0 -388
  136. package/sandbox/gapi/googleapis/google/protobuf/unittest_proto3_arena.proto +0 -206
  137. package/sandbox/gapi/googleapis/google/protobuf/unittest_well_known_types.proto +0 -112
  138. package/sandbox/gapi/googleapis/google/protobuf/unknown_enum_test.proto +0 -62
  139. package/sandbox/gapi/googleapis/google/protobuf/wrappers.proto +0 -117
  140. package/sandbox/gapi/googleapis/google/rpc/code.proto +0 -190
  141. package/sandbox/gapi/googleapis/google/rpc/error_details.proto +0 -157
  142. package/sandbox/gapi/googleapis/google/rpc/status.proto +0 -90
  143. package/sandbox/gapi/googleapis/google/type/color.proto +0 -163
  144. package/sandbox/gapi/googleapis/google/type/date.proto +0 -43
  145. package/sandbox/gapi/googleapis/google/type/dayofweek.proto +0 -50
  146. package/sandbox/gapi/googleapis/google/type/latlng.proto +0 -36
  147. package/sandbox/gapi/googleapis/google/type/money.proto +0 -40
  148. package/sandbox/gapi/googleapis/google/type/timeofday.proto +0 -42
  149. package/sandbox/gapi/test.js +0 -17
  150. package/sandbox/gapi/test.proto +0 -12
  151. package/sandbox/issue146/MyOptions.proto +0 -28
  152. package/sandbox/issue146/Sample.proto +0 -21
  153. package/sandbox/issue146/main.js +0 -3
  154. package/sandbox/issue147/enum.proto +0 -8
  155. package/sandbox/issue147/main.js +0 -3
  156. package/sandbox/issue182/commands.proto +0 -10
  157. package/sandbox/issue182/execute.js +0 -22
  158. package/sandbox/issue182/session_commands.proto +0 -14
  159. package/sandbox/issue289/A.proto +0 -8
  160. package/sandbox/issue289/B.proto +0 -8
  161. package/sandbox/issue289/common.proto +0 -5
  162. package/sandbox/issue289/main.js +0 -7
  163. package/sandbox/issue300/IAuth.proto +0 -14
  164. package/sandbox/issue300/Request.proto +0 -14
  165. package/sandbox/issue300/main.js +0 -26
  166. package/sandbox/issue347/index.js +0 -27
  167. package/sandbox/issue355/main.proto +0 -15
  168. package/sandbox/issue42/innerextend.proto +0 -18
  169. package/sandbox/issue42/main.js +0 -8
  170. package/sandbox/issue42/outerextend.proto +0 -17
@@ -23,45 +23,51 @@
23
23
 
24
24
 
25
25
 
26
+
26
27
  <section>
27
28
 
28
29
  <header>
29
- <h2>
30
- <span class="ancestors"><a href="ProtoBuf.html">ProtoBuf</a><a href="ProtoBuf.DotProto.html">.DotProto</a>.</span>
31
-
32
- Tokenizer
33
- </h2>
34
30
 
35
- <div class="class-description"><p>prototype tokenizer</p></div>
31
+ <h2>
32
+ <span class="ancestors"><a href="ProtoBuf.html">ProtoBuf</a><a href="ProtoBuf.DotProto.html">.DotProto</a>.</span>
33
+
34
+ Tokenizer
35
+ </h2>
36
+
37
+ <div class="class-description"><p>prototype tokenizer</p></div>
38
+
36
39
 
37
40
  </header>
38
41
 
39
42
  <article>
40
43
  <div class="container-overview">
41
44
 
45
+
42
46
 
43
47
 
44
-
45
- <dt>
48
+ <h2>Constructor</h2>
49
+
50
+
46
51
  <h4 class="name" id="Tokenizer"><span class="type-signature"></span>new Tokenizer<span class="signature">(proto)</span><span class="type-signature"></span></h4>
47
52
 
48
53
 
49
- </dt>
50
- <dd>
51
54
 
52
-
53
- <div class="description">
54
- <p>Constructs a new Tokenizer.</p>
55
- </div>
56
-
57
55
 
58
-
59
56
 
60
-
57
+ <div class="description">
58
+ <p>Constructs a new Tokenizer.</p>
59
+ </div>
60
+
61
+
62
+
63
+
64
+
61
65
 
66
+
67
+
68
+
69
+ <h5>Parameters:</h5>
62
70
 
63
- <h5>Parameters:</h5>
64
-
65
71
 
66
72
  <table class="params">
67
73
  <thead>
@@ -107,10 +113,20 @@
107
113
 
108
114
  </tbody>
109
115
  </table>
116
+
117
+
118
+
119
+
120
+
121
+
122
+ <dl class="details">
123
+
110
124
 
111
125
 
112
126
 
113
- <dl class="details">
127
+
128
+
129
+
114
130
 
115
131
 
116
132
 
@@ -132,7 +148,7 @@
132
148
 
133
149
  <dt class="tag-source">Source:</dt>
134
150
  <dd class="tag-source"><ul class="dummy"><li>
135
- <a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line495">line 495</a>
151
+ <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line495">line 495</a>
136
152
  </li></ul></dd>
137
153
 
138
154
 
@@ -144,25 +160,22 @@
144
160
  </dl>
145
161
 
146
162
 
147
-
148
163
 
149
-
150
164
 
151
-
152
165
 
153
-
154
166
 
155
-
156
167
 
157
-
158
168
 
159
-
160
- </dd>
161
169
 
162
-
163
- </div>
170
+
171
+
172
+
173
+
174
+
175
+
164
176
 
165
177
 
178
+ </div>
166
179
 
167
180
 
168
181
 
@@ -177,34 +190,41 @@
177
190
 
178
191
  <h3 class="subsection-title">Members</h3>
179
192
 
180
- <dl>
193
+
181
194
 
182
- <dt>
183
- <h4 class="name" id="index"><span class="type-signature"></span>index<span class="type-signature"> :number</span></h4>
195
+ <h4 class="name" id="index"><span class="type-signature"></span>index<span class="type-signature"> :number</span></h4>
184
196
 
185
-
186
- </dt>
187
- <dd>
188
-
189
- <div class="description">
190
- <p>Current index.</p>
191
- </div>
192
-
193
197
 
194
-
195
- <h5>Type:</h5>
196
- <ul>
197
- <li>
198
-
198
+
199
+
200
+ <div class="description">
201
+ <p>Current index.</p>
202
+ </div>
203
+
204
+
205
+
206
+ <h5>Type:</h5>
207
+ <ul>
208
+ <li>
209
+
199
210
  <span class="param-type">number</span>
200
211
 
201
212
 
202
- </li>
203
- </ul>
213
+ </li>
214
+ </ul>
215
+
216
+
217
+
218
+
219
+
220
+ <dl class="details">
221
+
204
222
 
205
223
 
206
224
 
207
- <dl class="details">
225
+
226
+
227
+
208
228
 
209
229
 
210
230
 
@@ -226,7 +246,7 @@
226
246
 
227
247
  <dt class="tag-source">Source:</dt>
228
248
  <dd class="tag-source"><ul class="dummy"><li>
229
- <a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line509">line 509</a>
249
+ <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line509">line 509</a>
230
250
  </li></ul></dd>
231
251
 
232
252
 
@@ -238,39 +258,45 @@
238
258
  </dl>
239
259
 
240
260
 
241
-
242
261
 
243
-
244
- </dd>
262
+
263
+
245
264
 
246
265
 
247
266
 
248
- <dt>
249
- <h4 class="name" id="line"><span class="type-signature"></span>line<span class="type-signature"> :number</span></h4>
267
+ <h4 class="name" id="line"><span class="type-signature"></span>line<span class="type-signature"> :number</span></h4>
250
268
 
251
-
252
- </dt>
253
- <dd>
254
-
255
- <div class="description">
256
- <p>Current line.</p>
257
- </div>
258
-
259
269
 
260
-
261
- <h5>Type:</h5>
262
- <ul>
263
- <li>
264
-
270
+
271
+
272
+ <div class="description">
273
+ <p>Current line.</p>
274
+ </div>
275
+
276
+
277
+
278
+ <h5>Type:</h5>
279
+ <ul>
280
+ <li>
281
+
265
282
  <span class="param-type">number</span>
266
283
 
267
284
 
268
- </li>
269
- </ul>
285
+ </li>
286
+ </ul>
287
+
288
+
289
+
290
+
291
+
292
+ <dl class="details">
293
+
294
+
295
+
270
296
 
271
297
 
272
298
 
273
- <dl class="details">
299
+
274
300
 
275
301
 
276
302
 
@@ -292,7 +318,7 @@
292
318
 
293
319
  <dt class="tag-source">Source:</dt>
294
320
  <dd class="tag-source"><ul class="dummy"><li>
295
- <a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line516">line 516</a>
321
+ <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line516">line 516</a>
296
322
  </li></ul></dd>
297
323
 
298
324
 
@@ -304,39 +330,45 @@
304
330
  </dl>
305
331
 
306
332
 
307
-
308
333
 
309
-
310
- </dd>
334
+
335
+
311
336
 
312
337
 
313
338
 
314
- <dt>
315
- <h4 class="name" id="source"><span class="type-signature"></span>source<span class="type-signature"> :string</span></h4>
339
+ <h4 class="name" id="source"><span class="type-signature"></span>source<span class="type-signature"> :string</span></h4>
316
340
 
317
-
318
- </dt>
319
- <dd>
320
-
321
- <div class="description">
322
- <p>Source to parse.</p>
323
- </div>
324
-
325
341
 
326
-
327
- <h5>Type:</h5>
328
- <ul>
329
- <li>
330
-
342
+
343
+
344
+ <div class="description">
345
+ <p>Source to parse.</p>
346
+ </div>
347
+
348
+
349
+
350
+ <h5>Type:</h5>
351
+ <ul>
352
+ <li>
353
+
331
354
  <span class="param-type">string</span>
332
355
 
333
356
 
334
- </li>
335
- </ul>
357
+ </li>
358
+ </ul>
359
+
360
+
361
+
362
+
363
+
364
+ <dl class="details">
365
+
336
366
 
337
367
 
338
368
 
339
- <dl class="details">
369
+
370
+
371
+
340
372
 
341
373
 
342
374
 
@@ -358,7 +390,7 @@
358
390
 
359
391
  <dt class="tag-source">Source:</dt>
360
392
  <dd class="tag-source"><ul class="dummy"><li>
361
- <a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line502">line 502</a>
393
+ <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line502">line 502</a>
362
394
  </li></ul></dd>
363
395
 
364
396
 
@@ -370,39 +402,45 @@
370
402
  </dl>
371
403
 
372
404
 
373
-
374
405
 
375
-
376
- </dd>
406
+
407
+
377
408
 
378
409
 
379
410
 
380
- <dt>
381
- <h4 class="name" id="stack"><span class="type-signature">(non-null) </span>stack<span class="type-signature"> :Array.&lt;string></span></h4>
411
+ <h4 class="name" id="stack"><span class="type-signature">(non-null) </span>stack<span class="type-signature"> :Array.&lt;string></span></h4>
382
412
 
383
-
384
- </dt>
385
- <dd>
386
-
387
- <div class="description">
388
- <p>Token stack.</p>
389
- </div>
390
-
391
413
 
392
-
393
- <h5>Type:</h5>
394
- <ul>
395
- <li>
396
-
414
+
415
+
416
+ <div class="description">
417
+ <p>Token stack.</p>
418
+ </div>
419
+
420
+
421
+
422
+ <h5>Type:</h5>
423
+ <ul>
424
+ <li>
425
+
397
426
  <span class="param-type">Array.&lt;string></span>
398
427
 
399
428
 
400
- </li>
401
- </ul>
429
+ </li>
430
+ </ul>
431
+
432
+
433
+
434
+
435
+
436
+ <dl class="details">
437
+
402
438
 
403
439
 
404
440
 
405
- <dl class="details">
441
+
442
+
443
+
406
444
 
407
445
 
408
446
 
@@ -424,7 +462,7 @@
424
462
 
425
463
  <dt class="tag-source">Source:</dt>
426
464
  <dd class="tag-source"><ul class="dummy"><li>
427
- <a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line523">line 523</a>
465
+ <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line523">line 523</a>
428
466
  </li></ul></dd>
429
467
 
430
468
 
@@ -436,40 +474,51 @@
436
474
  </dl>
437
475
 
438
476
 
439
-
440
477
 
441
-
442
- </dd>
443
478
 
444
- </dl>
479
+
480
+
481
+
445
482
 
446
483
 
447
484
 
448
485
  <h3 class="subsection-title">Methods</h3>
449
486
 
450
- <dl>
487
+
451
488
 
452
- <dt>
453
- <h4 class="name" id="next"><span class="type-signature"></span>next<span class="signature">()</span><span class="type-signature"> &rarr; (nullable) {string}</span></h4>
454
489
 
455
490
 
456
- </dt>
457
- <dd>
458
491
 
459
-
460
- <div class="description">
461
- <p>Gets the next token and advances by one.</p>
462
- </div>
463
-
492
+ <h4 class="name" id="next"><span class="type-signature"></span>next<span class="signature">()</span><span class="type-signature"> &rarr; (nullable) {string}</span></h4>
464
493
 
465
494
 
466
495
 
496
+
497
+
498
+ <div class="description">
499
+ <p>Gets the next token and advances by one.</p>
500
+ </div>
501
+
502
+
503
+
504
+
505
+
506
+
507
+
508
+
509
+
510
+
511
+
512
+
513
+
514
+ <dl class="details">
515
+
467
516
 
468
517
 
469
518
 
470
519
 
471
520
 
472
- <dl class="details">
521
+
473
522
 
474
523
 
475
524
 
@@ -491,7 +540,7 @@
491
540
 
492
541
  <dt class="tag-source">Source:</dt>
493
542
  <dd class="tag-source"><ul class="dummy"><li>
494
- <a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line563">line 563</a>
543
+ <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line563">line 563</a>
495
544
  </li></ul></dd>
496
545
 
497
546
 
@@ -503,20 +552,20 @@
503
552
  </dl>
504
553
 
505
554
 
506
-
507
555
 
508
-
509
556
 
510
-
511
557
 
512
-
513
558
 
514
-
515
559
 
516
-
517
- <h5>Returns:</h5>
518
-
519
-
560
+
561
+
562
+
563
+
564
+
565
+
566
+ <h5>Returns:</h5>
567
+
568
+
520
569
  <div class="param-desc">
521
570
  <p>Token or <code>null</code> on EOF</p>
522
571
  </div>
@@ -535,33 +584,35 @@
535
584
  </dd>
536
585
  </dl>
537
586
 
538
-
539
-
540
587
 
541
- </dd>
588
+
589
+
542
590
 
543
591
 
544
592
 
545
- <dt>
546
- <h4 class="name" id="omit"><span class="type-signature"></span>omit<span class="signature">(expected)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
547
593
 
548
594
 
549
- </dt>
550
- <dd>
551
595
 
552
-
553
- <div class="description">
554
- <p>Omits an optional token.</p>
555
- </div>
556
-
596
+ <h4 class="name" id="omit"><span class="type-signature"></span>omit<span class="signature">(expected)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
557
597
 
558
598
 
559
599
 
560
-
561
600
 
601
+
602
+ <div class="description">
603
+ <p>Omits an optional token.</p>
604
+ </div>
605
+
606
+
607
+
608
+
609
+
610
+
611
+
612
+
613
+
614
+ <h5>Parameters:</h5>
562
615
 
563
- <h5>Parameters:</h5>
564
-
565
616
 
566
617
  <table class="params">
567
618
  <thead>
@@ -607,10 +658,20 @@
607
658
 
608
659
  </tbody>
609
660
  </table>
661
+
662
+
663
+
664
+
665
+
666
+
667
+ <dl class="details">
668
+
610
669
 
611
670
 
612
671
 
613
- <dl class="details">
672
+
673
+
674
+
614
675
 
615
676
 
616
677
 
@@ -632,7 +693,7 @@
632
693
 
633
694
  <dt class="tag-source">Source:</dt>
634
695
  <dd class="tag-source"><ul class="dummy"><li>
635
- <a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line658">line 658</a>
696
+ <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line658">line 658</a>
636
697
  </li></ul></dd>
637
698
 
638
699
 
@@ -644,20 +705,20 @@
644
705
  </dl>
645
706
 
646
707
 
647
-
648
708
 
649
-
650
709
 
651
-
652
710
 
653
-
654
711
 
655
-
656
712
 
657
-
658
- <h5>Returns:</h5>
659
-
660
-
713
+
714
+
715
+
716
+
717
+
718
+
719
+ <h5>Returns:</h5>
720
+
721
+
661
722
  <div class="param-desc">
662
723
  <p><code>true</code> if the token exists</p>
663
724
  </div>
@@ -676,34 +737,45 @@
676
737
  </dd>
677
738
  </dl>
678
739
 
679
-
680
-
681
740
 
682
- </dd>
741
+
742
+
683
743
 
684
744
 
685
745
 
686
- <dt>
687
- <h4 class="name" id="peek"><span class="type-signature"></span>peek<span class="signature">()</span><span class="type-signature"> &rarr; (nullable) {string}</span></h4>
688
746
 
689
747
 
690
- </dt>
691
- <dd>
692
748
 
693
-
694
- <div class="description">
695
- <p>Peeks for the next token.</p>
696
- </div>
697
-
749
+ <h4 class="name" id="peek"><span class="type-signature"></span>peek<span class="signature">()</span><span class="type-signature"> &rarr; (nullable) {string}</span></h4>
698
750
 
699
751
 
700
752
 
753
+
754
+
755
+ <div class="description">
756
+ <p>Peeks for the next token.</p>
757
+ </div>
758
+
759
+
760
+
761
+
762
+
763
+
764
+
765
+
766
+
767
+
768
+
769
+
770
+
771
+ <dl class="details">
772
+
701
773
 
702
774
 
703
775
 
704
776
 
705
777
 
706
- <dl class="details">
778
+
707
779
 
708
780
 
709
781
 
@@ -725,7 +797,7 @@
725
797
 
726
798
  <dt class="tag-source">Source:</dt>
727
799
  <dd class="tag-source"><ul class="dummy"><li>
728
- <a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line632">line 632</a>
800
+ <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line632">line 632</a>
729
801
  </li></ul></dd>
730
802
 
731
803
 
@@ -737,20 +809,20 @@
737
809
  </dl>
738
810
 
739
811
 
740
-
741
812
 
742
-
743
813
 
744
-
745
814
 
746
-
747
815
 
748
-
749
816
 
750
-
751
- <h5>Returns:</h5>
752
-
753
-
817
+
818
+
819
+
820
+
821
+
822
+
823
+ <h5>Returns:</h5>
824
+
825
+
754
826
  <div class="param-desc">
755
827
  <p>Token or <code>null</code> on EOF</p>
756
828
  </div>
@@ -769,33 +841,35 @@
769
841
  </dd>
770
842
  </dl>
771
843
 
772
-
773
-
774
844
 
775
- </dd>
845
+
846
+
776
847
 
777
848
 
778
849
 
779
- <dt>
780
- <h4 class="name" id="skip"><span class="type-signature"></span>skip<span class="signature">(expected)</span><span class="type-signature"></span></h4>
781
850
 
782
851
 
783
- </dt>
784
- <dd>
785
852
 
786
-
787
- <div class="description">
788
- <p>Skips a specific token and throws if it differs.</p>
789
- </div>
790
-
853
+ <h4 class="name" id="skip"><span class="type-signature"></span>skip<span class="signature">(expected)</span><span class="type-signature"></span></h4>
791
854
 
792
855
 
793
856
 
794
-
795
857
 
858
+
859
+ <div class="description">
860
+ <p>Skips a specific token and throws if it differs.</p>
861
+ </div>
862
+
863
+
864
+
865
+
866
+
867
+
868
+
869
+
870
+
871
+ <h5>Parameters:</h5>
796
872
 
797
- <h5>Parameters:</h5>
798
-
799
873
 
800
874
  <table class="params">
801
875
  <thead>
@@ -841,10 +915,20 @@
841
915
 
842
916
  </tbody>
843
917
  </table>
918
+
919
+
920
+
921
+
922
+
923
+
924
+ <dl class="details">
925
+
844
926
 
845
927
 
846
928
 
847
- <dl class="details">
929
+
930
+
931
+
848
932
 
849
933
 
850
934
 
@@ -866,7 +950,7 @@
866
950
 
867
951
  <dt class="tag-source">Source:</dt>
868
952
  <dd class="tag-source"><ul class="dummy"><li>
869
- <a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line647">line 647</a>
953
+ <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line647">line 647</a>
870
954
  </li></ul></dd>
871
955
 
872
956
 
@@ -878,25 +962,26 @@
878
962
  </dl>
879
963
 
880
964
 
881
-
882
965
 
883
-
884
966
 
885
-
886
967
 
887
-
888
968
 
889
-
890
- <h5>Throws:</h5>
891
-
892
-
969
+
970
+
971
+
972
+
973
+
974
+ <h5>Throws:</h5>
975
+
976
+
893
977
 
894
978
  <dl>
895
979
  <dt>
896
980
  <div class="param-desc">
897
- If the actual token differs
981
+ <p>If the actual token differs</p>
898
982
  </div>
899
983
  </dt>
984
+ <dd></dd>
900
985
  <dt>
901
986
  <dl>
902
987
  <dt>
@@ -910,39 +995,51 @@
910
995
  </dd>
911
996
  </dl>
912
997
  </dt>
998
+ <dd></dd>
913
999
  </dl>
914
1000
 
915
1001
 
916
-
917
-
918
1002
 
919
1003
 
920
-
921
- </dd>
1004
+
1005
+
1006
+
922
1007
 
923
1008
 
924
1009
 
925
- <dt>
926
- <h4 class="name" id="toString"><span class="type-signature"></span>toString<span class="signature">()</span><span class="type-signature"> &rarr; {string}</span></h4>
927
1010
 
928
1011
 
929
- </dt>
930
- <dd>
931
1012
 
932
-
933
- <div class="description">
934
- <p>Returns a string representation of this object.</p>
935
- </div>
936
-
1013
+ <h4 class="name" id="toString"><span class="type-signature"></span>toString<span class="signature">()</span><span class="type-signature"> &rarr; {string}</span></h4>
937
1014
 
938
1015
 
939
1016
 
1017
+
1018
+
1019
+ <div class="description">
1020
+ <p>Returns a string representation of this object.</p>
1021
+ </div>
1022
+
1023
+
1024
+
1025
+
1026
+
1027
+
1028
+
1029
+
1030
+
1031
+
1032
+
1033
+
1034
+
1035
+ <dl class="details">
1036
+
940
1037
 
941
1038
 
942
1039
 
943
1040
 
944
1041
 
945
- <dl class="details">
1042
+
946
1043
 
947
1044
 
948
1045
 
@@ -964,7 +1061,7 @@
964
1061
 
965
1062
  <dt class="tag-source">Source:</dt>
966
1063
  <dd class="tag-source"><ul class="dummy"><li>
967
- <a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line671">line 671</a>
1064
+ <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line671">line 671</a>
968
1065
  </li></ul></dd>
969
1066
 
970
1067
 
@@ -976,20 +1073,20 @@
976
1073
  </dl>
977
1074
 
978
1075
 
979
-
980
1076
 
981
-
982
1077
 
983
-
984
1078
 
985
-
986
1079
 
987
-
988
1080
 
989
-
990
- <h5>Returns:</h5>
991
-
992
-
1081
+
1082
+
1083
+
1084
+
1085
+
1086
+
1087
+ <h5>Returns:</h5>
1088
+
1089
+
993
1090
  <div class="param-desc">
994
1091
  <p>String representation as of &quot;Tokenizer(index/length)&quot;</p>
995
1092
  </div>
@@ -1008,12 +1105,11 @@
1008
1105
  </dd>
1009
1106
  </dl>
1010
1107
 
1011
-
1012
-
1013
1108
 
1014
- </dd>
1015
1109
 
1016
- </dl>
1110
+
1111
+
1112
+
1017
1113
 
1018
1114
 
1019
1115
 
@@ -1029,13 +1125,13 @@
1029
1125
  </div>
1030
1126
 
1031
1127
  <nav>
1032
- <h2><a href="index.html">Index</a></h2><h3>Classes</h3><ul><li><a href="ProtoBuf.Builder.html">Builder</a></li><li><a href="ProtoBuf.Builder.Message.html">Message</a></li><li><a href="ProtoBuf.Builder.Service.html">Service</a></li><li><a href="ProtoBuf.DotProto.Parser.html">Parser</a></li><li><a href="ProtoBuf.DotProto.Tokenizer.html">Tokenizer</a></li><li><a href="ProtoBuf.Map.html">Map</a></li><li><a href="ProtoBuf.Reflect.Element.html">Element</a></li><li><a href="ProtoBuf.Reflect.Enum.html">Enum</a></li><li><a href="ProtoBuf.Reflect.Enum.Value.html">Value</a></li><li><a href="ProtoBuf.Reflect.Extension.html">Extension</a></li><li><a href="ProtoBuf.Reflect.Message.html">Message</a></li><li><a href="ProtoBuf.Reflect.Message.ExtensionField.html">ExtensionField</a></li><li><a href="ProtoBuf.Reflect.Message.Field.html">Field</a></li><li><a href="ProtoBuf.Reflect.Message.OneOf.html">OneOf</a></li><li><a href="ProtoBuf.Reflect.Namespace.html">Namespace</a></li><li><a href="ProtoBuf.Reflect.Service.html">Service</a></li><li><a href="ProtoBuf.Reflect.Service.Method.html">Method</a></li><li><a href="ProtoBuf.Reflect.Service.RPCMethod.html">RPCMethod</a></li><li><a href="ProtoBuf.Reflect.T.html">T</a></li></ul><h3>Namespaces</h3><ul><li><a href="ProtoBuf.html">ProtoBuf</a></li><li><a href="ProtoBuf.DotProto.html">DotProto</a></li><li><a href="ProtoBuf.Reflect.html">Reflect</a></li><li><a href="ProtoBuf.Util.html">Util</a></li></ul>
1128
+ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="ProtoBuf.Builder.html">Builder</a></li><li><a href="ProtoBuf.Builder.Message.html">Message</a></li><li><a href="ProtoBuf.Builder.Service.html">Service</a></li><li><a href="ProtoBuf.DotProto.Parser.html">Parser</a></li><li><a href="ProtoBuf.DotProto.Tokenizer.html">Tokenizer</a></li><li><a href="ProtoBuf.Map.html">Map</a></li><li><a href="ProtoBuf.Reflect.Element.html">Element</a></li><li><a href="ProtoBuf.Reflect.Enum.html">Enum</a></li><li><a href="ProtoBuf.Reflect.Enum.Value.html">Value</a></li><li><a href="ProtoBuf.Reflect.Extension.html">Extension</a></li><li><a href="ProtoBuf.Reflect.Message.html">Message</a></li><li><a href="ProtoBuf.Reflect.Message.ExtensionField.html">ExtensionField</a></li><li><a href="ProtoBuf.Reflect.Message.Field.html">Field</a></li><li><a href="ProtoBuf.Reflect.Message.OneOf.html">OneOf</a></li><li><a href="ProtoBuf.Reflect.Namespace.html">Namespace</a></li><li><a href="ProtoBuf.Reflect.Service.html">Service</a></li><li><a href="ProtoBuf.Reflect.Service.Method.html">Method</a></li><li><a href="ProtoBuf.Reflect.Service.RPCMethod.html">RPCMethod</a></li><li><a href="ProtoBuf.Reflect.T.html">T</a></li></ul><h3>Namespaces</h3><ul><li><a href="ProtoBuf.html">ProtoBuf</a></li><li><a href="ProtoBuf.DotProto.html">DotProto</a></li><li><a href="ProtoBuf.Reflect.html">Reflect</a></li><li><a href="ProtoBuf.Util.html">Util</a></li></ul>
1033
1129
  </nav>
1034
1130
 
1035
- <br clear="both">
1131
+ <br class="clear">
1036
1132
 
1037
1133
  <footer>
1038
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a> on Wed Jan 06 2016 01:34:59 GMT+0100 (Mitteleuropäische Zeit)
1134
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.3</a> on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
1039
1135
  </footer>
1040
1136
 
1041
1137
  <script> prettyPrint(); </script>