public TokenCountTree(TokenCounter counter, ITextSnapshot currentSnapshot)
        {
            if (counter == null)
                throw new ArgumentNullException("counter");
            if (currentSnapshot == null)
                throw new ArgumentNullException("currentSnapshot");

            _counter = counter;
            _currentSnapshot = currentSnapshot;
        }
Пример #2
0
        public TokenCountTree(TokenCounter counter, ITextSnapshot currentSnapshot)
        {
            if (counter == null)
            {
                throw new ArgumentNullException("counter");
            }
            if (currentSnapshot == null)
            {
                throw new ArgumentNullException("currentSnapshot");
            }

            _counter         = counter;
            _currentSnapshot = currentSnapshot;
        }