Lines Matching defs:Brackets
65 * <li>All brackets nest properly.</li>
75 public final Brackets brackets;
112 int end = brackets.partner(tokenIndex);
175 String normalizedCss, Brackets brackets, int[] tokenBreaks,
178 this.brackets = brackets;
245 static final class Brackets {
250 private final int[] brackets;
252 private Brackets(int[] brackets) {
253 this.brackets = brackets;
260 return brackets[(bracketIndex << 1) + 1];
266 int right = brackets.length >> 1;
269 int value = brackets[mid << 1];
285 private static final Brackets EMPTY_BRACKETS = new Brackets(ZERO_INTS);
309 private int[] brackets = ZERO_INTS;
311 * The number of elements in {@link #brackets} that are valid.
312 * {@code brackets[bracketsLimit:]} is zeroed space that the list can grow
318 * its index in {@link #brackets} and the character of its close bracket
345 brackets = expandIfNecessary(brackets, bracketsLimit, 2);
349 brackets[bracketsLimit++] = tokenBreaksLimit;
350 brackets[bracketsLimit++] = -1;
369 // Make sure we've got space on brackets.
371 brackets = expandIfNecessary(brackets, bracketsLimit, spaceNeeded);
378 int openTokenIndex = brackets[openBracketIndex];
380 brackets[openBracketIndex + 1] = closeTokenIndex;
382 brackets[bracketsLimit++] = closeTokenIndex;
383 brackets[bracketsLimit++] = openTokenIndex;
390 // Close any still open brackets.
398 int[] bracketsTrunc = truncateOrShare(brackets, bracketsLimit);
418 normalizedCss, new Brackets(bracketsTrunc),
569 // tokens since we may have inserted missing close brackets for
570 // unclosed open brackets already on the stack.