64 references to JsonNodeType
System.Runtime.Serialization (64)
System\Runtime\Serialization\Json\XmlJsonReader.cs (15)
286
JsonNodeType
[] scopes;
327
return ((scopeDepth > 0) && (scopes[scopeDepth] ==
JsonNodeType
.Collection));
534
EnterJsonScope(
JsonNodeType
.Object);
570
EnterJsonScope(
JsonNodeType
.Object);
577
EnterJsonScope(
JsonNodeType
.Object);
588
EnterJsonScope(
JsonNodeType
.Element);
1084
void EnterJsonScope(
JsonNodeType
currentNodeType)
1089
scopes = new
JsonNodeType
[4];
1093
JsonNodeType
[] newScopes = new
JsonNodeType
[scopeDepth * 2];
1100
JsonNodeType
ExitJsonScope()
1102
JsonNodeType
nodeTypeToReturn = scopes[scopeDepth];
1103
scopes[scopeDepth] =
JsonNodeType
.None;
1248
EnterJsonScope(
JsonNodeType
.Collection);
1369
EnterJsonScope(
JsonNodeType
.Object);
System\Runtime\Serialization\Json\XmlJsonWriter.cs (49)
51
JsonNodeType
nodeType;
53
JsonNodeType
[] scopes;
173
case
JsonNodeType
.None:
175
case
JsonNodeType
.Element:
177
case
JsonNodeType
.QuotedText:
178
case
JsonNodeType
.StandaloneText:
179
case
JsonNodeType
.EndElement:
227
get { return (depth > 0) && (scopes[depth] ==
JsonNodeType
.Collection); }
648
if (nodeType !=
JsonNodeType
.None)
677
JsonNodeType
token = ExitScope();
678
if (token ==
JsonNodeType
.Collection)
683
if (nodeType ==
JsonNodeType
.Element)
696
else if (nodeType ==
JsonNodeType
.QuotedText)
701
else if (nodeType ==
JsonNodeType
.Element)
731
Fx.Assert((nodeType ==
JsonNodeType
.StandaloneText) || (nodeType ==
JsonNodeType
.EndElement),
736
if (token ==
JsonNodeType
.Element)
740
else if (token ==
JsonNodeType
.Object)
745
if (nodeType ==
JsonNodeType
.Element)
756
if ((depth > 0) && scopes[depth] ==
JsonNodeType
.Element)
765
nodeType =
JsonNodeType
.EndElement;
904
if ((nodeType !=
JsonNodeType
.Element) && !wroteServerTypeAttribute)
1023
if ((nodeType !=
JsonNodeType
.None) && depth == 0)
1031
case
JsonNodeType
.None:
1038
EnterScope(
JsonNodeType
.Element);
1041
case
JsonNodeType
.Element:
1065
EnterScope(
JsonNodeType
.Element);
1068
case
JsonNodeType
.EndElement:
1091
EnterScope(
JsonNodeType
.Element);
1105
nodeType =
JsonNodeType
.Element;
1122
if (!((this.dataType == JsonDataType.Array || this.dataType == JsonDataType.Object || this.nodeType ==
JsonNodeType
.EndElement) && XmlConverter.IsWhitespace(text)))
1298
void CheckText(
JsonNodeType
nextNodeType)
1311
if ((nextNodeType ==
JsonNodeType
.StandaloneText) &&
1312
(nodeType ==
JsonNodeType
.QuotedText))
1320
void EnterScope(
JsonNodeType
currentNodeType)
1325
scopes = new
JsonNodeType
[4];
1329
JsonNodeType
[] newScopes = new
JsonNodeType
[depth * 2];
1336
JsonNodeType
ExitScope()
1338
JsonNodeType
nodeTypeToReturn = scopes[depth];
1339
scopes[depth] =
JsonNodeType
.None;
1346
nodeType =
JsonNodeType
.None;
1405
CheckText(
JsonNodeType
.QuotedText);
1406
if (nodeType !=
JsonNodeType
.QuotedText)
1410
nodeType =
JsonNodeType
.QuotedText;
1415
CheckText(
JsonNodeType
.StandaloneText);
1416
nodeType =
JsonNodeType
.StandaloneText;
1468
EnterScope(
JsonNodeType
.Collection);
1475
EnterScope(
JsonNodeType
.Object);