internal Processor.OutputResult TextEvent(int state, string text, bool disableOutputEscaping) {
if (! CanOutput(state)) {
return Processor.OutputResult.Overflow;
}
Debug.Assert(this.recordState == NoRecord || (state & StateMachine.BeginRecord) == 0);
AdjustDepth(state);
ResetRecord(state);
PopElementScope();
if ((state & StateMachine.BeginRecord) != 0) {
this.currentInfo.Depth = this.recordDepth;
this.currentInfo.NodeType = XmlNodeType.Text;
}
ValueAppend(text, disableOutputEscaping);
return CheckRecordBegin(state);
}