private void ScanCharacter()
{
this.ScanString('\'');
int n = this.unescapedString == null ? 0 : this.unescapedString.Length;
if (n == 0)
{
if (this.GetChar(this.endPos) == '\'')
{
this.charLiteralValue = '\'';
this.endPos++;
this.HandleError(Error.UnescapedSingleQuote);
}
else
{
this.charLiteralValue = (char)0;
this.HandleError(Error.EmptyCharConst);
}
return;
}
this.charLiteralValue = this.unescapedString[0];
if (n == 1) return;
this.HandleError(Error.TooManyCharsInConst);
}