Lines Matching refs:State
172 …private static readonly State ValueStates = State.ArrayStart | State.ArrayAfterComma | State.Objec…
176 private State state;
181 state = State.StartOfDocument; in JsonTextTokenizer()
194 if (state == State.ReaderExhausted) in NextImpl()
203 … ValidateState(State.ExpectedEndOfDocument, "Unexpected end of document in state: "); in NextImpl()
204 state = State.ReaderExhausted; in NextImpl()
216 … ValidateState(State.ObjectBeforeColon, "Invalid state to read a colon: "); in NextImpl()
217 state = State.ObjectAfterColon; in NextImpl()
220 …ValidateState(State.ObjectAfterProperty | State.ArrayAfterValue, "Invalid state to read a colon: "… in NextImpl()
221 … state = state == State.ObjectAfterProperty ? State.ObjectAfterComma : State.ArrayAfterComma; in NextImpl()
225 if ((state & (State.ObjectStart | State.ObjectAfterComma)) != 0) in NextImpl()
227 state = State.ObjectBeforeColon; in NextImpl()
237 state = State.ObjectStart; in NextImpl()
241 …ValidateState(State.ObjectAfterProperty | State.ObjectStart, "Invalid state to read a close brace:… in NextImpl()
246 state = State.ArrayStart; in NextImpl()
250 …ValidateState(State.ArrayAfterValue | State.ArrayStart, "Invalid state to read a close square brac… in NextImpl()
285 private void ValidateState(State validStates, string errorPrefix) in ValidateState()
534 case State.StartOfDocument: in ValidateAndModifyStateForValue()
535 state = State.ExpectedEndOfDocument; in ValidateAndModifyStateForValue()
537 case State.ObjectAfterColon: in ValidateAndModifyStateForValue()
538 state = State.ObjectAfterProperty; in ValidateAndModifyStateForValue()
540 case State.ArrayStart: in ValidateAndModifyStateForValue()
541 case State.ArrayAfterComma: in ValidateAndModifyStateForValue()
542 state = State.ArrayAfterValue; in ValidateAndModifyStateForValue()
560 state = State.ObjectAfterProperty; in PopContainer()
563 state = State.ArrayAfterValue; in PopContainer()
566 state = State.ExpectedEndOfDocument; in PopContainer()
597 private enum State enum in Google.Protobuf.JsonTokenizer.JsonTextTokenizer