CodeBox.CodeLexer.Token.FallsBefore C# (CSharp) Method

FallsBefore() public method

public FallsBefore ( List list, Token target ) : bool
list List
target Token
return bool
        public bool FallsBefore(List<Token> list, Token target)
        {
            int selfIndex = Index(list);
            int targetIndex = list.IndexOf(target);

            if (selfIndex < targetIndex)
                return true;

            return false;
        }