ScriptsRefactorer.Token.IsBlockCommentEnd C# (CSharp) Method

IsBlockCommentEnd() public method

public IsBlockCommentEnd ( ) : bool
return bool
        public bool IsBlockCommentEnd()
        {
            return IsSymbol() && Value == "*" && !MakesNewLine() && RealNext() != null && RealNext().IsSymbol() && RealNext().Value == "/";
        }

Usage Example

Esempio n. 1
0
        public Token RealCompleteBlockComment()
        {
            //Console.WriteLine("Starting block comment from "+this.Value);
            Token tok = this.RealNext();

            while (!tok.IsEnd() && !tok.IsBlockCommentEnd())
            {
                tok = tok.RealNext();
            }
            if (tok.IsEnd())
            {
                Console.Write("Block comment not finished?\n");
                return(tok);
            }
            Tokenizer.SetUnimportantRange(this, tok.RealNext());
            //Console.WriteLine("Ending block comment at " + tok.Value+tok.RealNext().Value+tok.RealNext().RealNext().Value);
            return(tok.RealNext().RealNext());
        }
All Usage Examples Of ScriptsRefactorer.Token::IsBlockCommentEnd