示例#1
0
        public IndexTokenNode Previous()
        {
            if (Node.Previous == null)
            {
                return(null);
            }
            IndexToken previousToken = new IndexToken(IndexToken.StartIndex - Node.Previous.Value.Length, Node.Previous.Value);

            return(new IndexTokenNode(previousToken, Node.Previous));
        }
示例#2
0
        public IndexTokenNode Next()
        {
            if (Node.Next == null)
            {
                return(null);
            }
            IndexToken nextToken = new IndexToken(IndexToken.StartIndex + IndexToken.Token.Length, Node.Next.Value);

            return(new IndexTokenNode(nextToken, Node.Next));
        }
示例#3
0
 public IndexTokenNode(IndexToken indexToken, LinkedListNode <Token> node)
 {
     _indexToken = indexToken;
     _node       = node;
 }
示例#4
0
		public IndexTokenNode Previous()
		{
			if (Node.Previous == null) return null;
			IndexToken previousToken = new IndexToken(IndexToken.StartIndex - Node.Previous.Value.Length, Node.Previous.Value);
			return new IndexTokenNode(previousToken, Node.Previous);
		}
示例#5
0
		public IndexTokenNode Next()
		{
			if (Node.Next == null) return null;
			IndexToken nextToken = new IndexToken(IndexToken.StartIndex + IndexToken.Token.Length, Node.Next.Value);
			return new IndexTokenNode(nextToken, Node.Next);
		}
示例#6
0
		public IndexTokenNode(IndexToken indexToken, LinkedListNode<Token> node)
		{
			_indexToken = indexToken;
			_node = node;
		}
示例#7
0
		public MatchingBracePair(IndexToken start, IndexToken end)
		{
			_start = start;
			_end = end;
		}
		public TokenChangedEventArgs(IndexToken indexToken)
		{
			_indexToken = indexToken;
		}