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

◆ Push()

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

Definition at line 73 of file WriteStack.cs.

74 {
75 if (_continuationCount == 0)
76 {
77 if (_count == 0)
78 {
79 _count = 1;
80 return;
81 }
85 _stack[_count - 1] = Current;
86 Current = default(WriteStackFrame);
87 _count++;
89 Current.DeclaredJsonPropertyInfo = runtimeTypeInfo.PropertyInfoForTypeInfo;
91 }
92 else
93 {
94 if (_count++ > 0)
95 {
96 Current = _stack[_count - 1];
97 }
99 {
101 }
102 }
103 }
JsonPropertyInfo DeclaredJsonPropertyInfo
JsonPropertyInfo GetPolymorphicJsonPropertyInfo()
WriteStackFrame Current
Definition WriteStack.cs:15
WriteStackFrame[] _stack
Definition WriteStack.cs:17

References System.Text.Json.WriteStack._continuationCount, System.Text.Json.WriteStack._count, System.Text.Json.WriteStack._stack, System.Text.Json.WriteStack.Current, System.Text.Json.WriteStackFrame.DeclaredJsonPropertyInfo, System.Text.Json.Dictionary, System.Text.Json.WriteStack.EnsurePushCapacity(), System.Text.Json.WriteStackFrame.GetPolymorphicJsonPropertyInfo(), System.Text.Json.Serialization.Metadata.JsonPropertyInfo< T >.NumberHandling, System.Text.Json.WriteStackFrame.NumberHandling, and System.Text.Json.Serialization.Metadata.JsonPropertyInfo< T >.RuntimeTypeInfo.