Beispiel #1
0
        public void AddClose(Span span)
        {
#if DEBUG
            if (_closeToken != null)
            {
                throw new InvalidOperationException("These brackets already have a close token.");
            }
#endif
            AddToken(_closeToken = new CloseBracketToken(Scope, span, this));
        }
Beispiel #2
0
        public void AddOpen(Span span)
        {
#if DEBUG
            if (_openToken != null)
            {
                throw new InvalidOperationException("These brackets already have a opening token.");
            }
#endif
            AddToken(_openToken = new OpenBracketToken(Scope, span, this));
        }