36 references to StackFrameObjectState
System.Text.Json (36)
System\Text\Json\Serialization\Converters\Collection\JsonCollectionConverter.cs (12)
123if (state.Current.ObjectState == StackFrameObjectState.None) 127state.Current.ObjectState = StackFrameObjectState.ReadMetadata; 136state.Current.ObjectState = StackFrameObjectState.StartToken; 145if (state.Current.CanContainMetadata && state.Current.ObjectState < StackFrameObjectState.ReadMetadata) 159state.Current.ObjectState = StackFrameObjectState.ReadMetadata; 174if (state.Current.ObjectState < StackFrameObjectState.CreatedObject) 194state.Current.ObjectState = StackFrameObjectState.CreatedObject; 197if (state.Current.ObjectState < StackFrameObjectState.ReadElements) 242state.Current.ObjectState = StackFrameObjectState.ReadElements; 245if (state.Current.ObjectState < StackFrameObjectState.EndToken) 257state.Current.ObjectState = StackFrameObjectState.EndToken; 260if (state.Current.ObjectState < StackFrameObjectState.EndTokenValidation)
System\Text\Json\Serialization\Converters\Collection\JsonDictionaryConverter.cs (6)
156if (state.Current.ObjectState == StackFrameObjectState.None) 163state.Current.ObjectState = StackFrameObjectState.StartToken; 167if (state.Current.CanContainMetadata && state.Current.ObjectState < StackFrameObjectState.ReadMetadata) 181state.Current.ObjectState = StackFrameObjectState.ReadMetadata; 197if (state.Current.ObjectState < StackFrameObjectState.CreatedObject) 217state.Current.ObjectState = StackFrameObjectState.CreatedObject;
System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs (6)
64if (state.Current.ObjectState == StackFrameObjectState.None) 71state.Current.ObjectState = StackFrameObjectState.StartToken; 75if (state.Current.CanContainMetadata && state.Current.ObjectState < StackFrameObjectState.ReadMetadata) 89state.Current.ObjectState = StackFrameObjectState.ReadMetadata; 104if (state.Current.ObjectState < StackFrameObjectState.CreatedObject) 142state.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)
302if (frame.ObjectState == StackFrameObjectState.None || 303frame.ObjectState == StackFrameObjectState.CreatedObject || 304frame.ObjectState == StackFrameObjectState.ReadElements)
System\Text\Json\Serialization\ReadStackFrame.cs (1)
47public StackFrameObjectState ObjectState; // State tracking the current object.