Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Push()

void System.Text.Json.ReadStack.Push ( )
inline

Definition at line 74 of file ReadStack.cs.

75 {
76 if (_continuationCount == 0)
77 {
78 if (_count == 0)
79 {
80 _count = 1;
81 }
82 else
83 {
86 {
88 ConverterStrategy.Value => Current.JsonPropertyInfo.RuntimeTypeInfo,
89 _ => Current.JsonTypeInfo.ElementTypeInfo,
90 };
92 _stack[_count - 1] = Current;
93 Current = default(ReadStackFrame);
94 _count++;
96 Current.JsonPropertyInfo = jsonTypeInfo.PropertyInfoForTypeInfo;
98 }
99 }
100 else
101 {
102 if (_count++ > 0)
103 {
104 Current = _stack[_count - 1];
105 }
107 {
109 }
110 }
112 }
JsonParameterInfo JsonParameterInfo
JsonNumberHandling? NumberHandling
ReadStackFrame Current
Definition ReadStack.cs:19
ReadStackFrame[] _stack
Definition ReadStack.cs:21

References System.Text.Json.ReadStack._continuationCount, System.Text.Json.ReadStack._count, System.Text.Json.ReadStack._stack, System.Text.Json.ReadStackFrame.CtorArgumentState, System.Text.Json.ReadStack.Current, System.Text.Json.Dictionary, System.Text.Json.Serialization.Metadata.JsonTypeInfo< T >.ElementTypeInfo, System.Text.Json.ReadStack.EnsurePushCapacity(), System.Text.Json.ArgumentState.JsonParameterInfo, System.Text.Json.ReadStackFrame.JsonPropertyInfo, System.Text.Json.ReadStackFrame.JsonTypeInfo, System.Text.Json.Serialization.Metadata.JsonPropertyInfo< T >.NumberHandling, System.Text.Json.ReadStackFrame.NumberHandling, System.Text.Json.Serialization.Metadata.JsonParameterInfo< T >.RuntimeTypeInfo, System.Text.Json.Serialization.Metadata.JsonPropertyInfo< T >.RuntimeTypeInfo, and System.Text.Json.ReadStack.SetConstructorArgumentState().