AjScript.Interpreter.Lexer.NextQuotedString C# (CSharp) Метод

NextQuotedString() приватный Метод

private NextQuotedString ( ) : Token
Результат Token
        private Token NextQuotedString()
        {
            StringBuilder sb = new StringBuilder();
            char? nch;
            char lastChar = (char)0;

            nch = this.NextChar();

            while (nch.HasValue && nch.Value != QuotedStringChar)
            {
                sb.Append(nch);
                lastChar = nch.Value;

                nch = this.NextChar();
            }

            Token token = new Token();
            token.Value = sb.ToString();
            token.TokenType = TokenType.String;

            return token;
        }