Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }