AjTalk.Compiler.Lexer.NextDotNetInvokeName C# (CSharp) Method

NextDotNetInvokeName() private method

private NextDotNetInvokeName ( ) : Token
return Token
        private Token NextDotNetInvokeName()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append(SpecialDotNetInvokeMark);

            int ch;

            ch = this.NextChar();

            while (ch >= 0 && (char.IsLetterOrDigit((char)ch) || ch == '_' || ch == ':'))
            {
                sb.Append((char)ch);
                if (ch == ':')
                    break;
                ch = this.NextChar();
            }

            if (ch >= 0 && ch != ':')
                this.PushChar(ch);

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

            return token;
        }