36 references to StackFrameObjectState
System.Text.Json (36)
System\Text\Json\Serialization\Converters\Collection\JsonCollectionConverter.cs (12)
122if (state.Current.ObjectState == StackFrameObjectState.None) 126state.Current.ObjectState = StackFrameObjectState.ReadMetadata; 135state.Current.ObjectState = StackFrameObjectState.StartToken; 144if (state.Current.CanContainMetadata && state.Current.ObjectState < StackFrameObjectState.ReadMetadata) 158state.Current.ObjectState = StackFrameObjectState.ReadMetadata; 173if (state.Current.ObjectState < StackFrameObjectState.CreatedObject) 193state.Current.ObjectState = StackFrameObjectState.CreatedObject; 196if (state.Current.ObjectState < StackFrameObjectState.ReadElements) 241state.Current.ObjectState = StackFrameObjectState.ReadElements; 244if (state.Current.ObjectState < StackFrameObjectState.EndToken) 256state.Current.ObjectState = StackFrameObjectState.EndToken; 259if (state.Current.ObjectState < StackFrameObjectState.EndTokenValidation)
System\Text\Json\Serialization\Converters\Collection\JsonDictionaryConverter.cs (6)
155if (state.Current.ObjectState == StackFrameObjectState.None) 162state.Current.ObjectState = StackFrameObjectState.StartToken; 166if (state.Current.CanContainMetadata && state.Current.ObjectState < StackFrameObjectState.ReadMetadata) 180state.Current.ObjectState = StackFrameObjectState.ReadMetadata; 196if (state.Current.ObjectState < StackFrameObjectState.CreatedObject) 216state.Current.ObjectState = StackFrameObjectState.CreatedObject;
System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs (6)
58if (state.Current.ObjectState == StackFrameObjectState.None) 65state.Current.ObjectState = StackFrameObjectState.StartToken; 69if (state.Current.CanContainMetadata && state.Current.ObjectState < StackFrameObjectState.ReadMetadata) 83state.Current.ObjectState = StackFrameObjectState.ReadMetadata; 98if (state.Current.ObjectState < StackFrameObjectState.CreatedObject) 136state.Current.ObjectState = StackFrameObjectState.CreatedObject;
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (7)
121if (state.Current.ObjectState == StackFrameObjectState.None) 128state.Current.ObjectState = StackFrameObjectState.StartToken; 132if (state.Current.CanContainMetadata && state.Current.ObjectState < StackFrameObjectState.ReadMetadata) 146state.Current.ObjectState = StackFrameObjectState.ReadMetadata; 170state.Current.ObjectState = StackFrameObjectState.CreatedObject; 176if (state.Current.ObjectState < StackFrameObjectState.ConstructorArguments) 191state.Current.ObjectState = StackFrameObjectState.ConstructorArguments;
System\Text\Json\Serialization\JsonSerializer.Read.HandleMetadata.cs (1)
27Debug.Assert(state.Current.ObjectState == StackFrameObjectState.StartToken);
System\Text\Json\Serialization\ReadStack.cs (3)
294if (frame.ObjectState == StackFrameObjectState.None || 295frame.ObjectState == StackFrameObjectState.CreatedObject || 296frame.ObjectState == StackFrameObjectState.ReadElements)
System\Text\Json\Serialization\ReadStackFrame.cs (1)
47public StackFrameObjectState ObjectState; // State tracking the current object.