annotate Implab/Formats/JSON/JsonTokenType.cs @ 209:a867536c68fc v2

Bound promise to CancellationToken Added new states to ExecutionSate enum. Added Safe.Guard() method to handle cleanup of the result of the promise
author cin
date Wed, 16 Nov 2016 03:06:08 +0300
parents e227e78d72e4
children 6fa235c5a760
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
165
e227e78d72e4 DFA refactoring
cin
parents: 163
diff changeset
1 namespace Implab.Formats.JSON {
163
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
2 /// <summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
3 /// Тип токенов, возвращаемых <see cref="JSONScanner"/>.
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
4 /// </summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
5 public enum JsonTokenType : int {
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
6 None = 0,
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
7 /// <summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
8 /// Начало объекта
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
9 /// </summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
10 BeginObject,
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
11 /// <summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
12 /// Конец объекта
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
13 /// </summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
14 EndObject,
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
15 /// <summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
16 /// Начало массива
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
17 /// </summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
18 BeginArray,
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
19 /// <summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
20 /// Конец массива
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
21 /// </summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
22 EndArray,
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
23 /// <summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
24 /// Строка
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
25 /// </summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
26 String,
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
27 /// <summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
28 /// Число
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
29 /// </summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
30 Number,
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
31 /// <summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
32 /// Литерал
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
33 /// </summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
34 Literal,
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
35 /// <summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
36 /// Разделитель имени <c>:</c>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
37 /// </summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
38 NameSeparator,
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
39 /// <summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
40 /// Разделитель имени <c>,</c>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
41 /// </summary>
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
42 ValueSeparator
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
43 }
419aa51b04fd JSON moved to Formats namespace
cin
parents:
diff changeset
44 }