ScriptsRefactorer.Token.MakesNewLine C# (CSharp) Method

MakesNewLine() public method

public MakesNewLine ( ) : bool
return bool
        public bool MakesNewLine()
        {
            return Whitespaces.Contains('\n');
        }

Usage Example

Esempio n. 1
0
        public Token RealCompleteDirective()
        {
            Token tok        = this;
            bool  no_control = true;

            while (!tok.IsEnd() && !tok.MakesNewLine() && no_control)
            {
                if (tok.IsQuote())
                {
                    tok = tok.RealCompleteText();
                    if (tok.RealPrev().MakesNewLine())
                    {
                        tok = tok.RealPrev();
                        break;
                    }
                    continue;
                }
                if (tok.IsControl())
                {
                    no_control = false;
                }
                if (tok.MakesNewLine())
                {
                    no_control = true;
                }
                tok = tok.RealNext();
            }

            Tokenizer.SetUnimportantRange(this, tok);
            return(tok.RealNext());
        }
All Usage Examples Of ScriptsRefactorer.Token::MakesNewLine