ScriptsRefactorer.Token.IsBlockCommentStart C# (CSharp) Method

IsBlockCommentStart() public method

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

Usage Example

Esempio n. 1
0
 public bool IsArrayStart()
 {
     if (!(IsLeft() && Next() != null && Next().IsRight()))
     {
         return(false);
     }
     for (Token n = RealNext(); !n.IsRight(); n = n.RealNext())
     {
         if (n.IsLineCommentStart())
         {
             continue;
         }
         if (n.IsBlockCommentStart())
         {
             continue;
         }
         if (n.IsBlockCommentEnd())
         {
             continue;
         }
         return(false);
     }
     return(true);
 }
All Usage Examples Of ScriptsRefactorer.Token::IsBlockCommentStart