public BracketLimits FindLimitsOfNextBracketExpression(int start) { BracketLimits result = new BracketLimits(); result.OpenBracketIndex = this.FindFirstOpenBracket(start); result.CloseBracketIndex = this.FindMatchingBracket(result.OpenBracketIndex); return result; }
public BracketLimits FindLimitsOfBracketExpressionBefore(int end) { BracketLimits result = new BracketLimits(); result.CloseBracketIndex = this.FindLastCloseBracket(end); result.OpenBracketIndex = this.FindMatchingBracketBefore(result.CloseBracketIndex); return result; }