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)); }
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)); }