IsBlockCommentEnd() public method

public IsBlockCommentEnd ( ) : bool
return bool
コード例 #1
0
ファイル: Token.cs プロジェクト: Venseer/tools
        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());
        }
コード例 #2
0
ファイル: Token.cs プロジェクト: Venseer/tools
 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);
 }