parseRules method

List<CSSRule> parseRules({
  1. int startPosition = 0,
})

Implementation

List<CSSRule> parseRules({int startPosition = 0}) {
  var rules = <CSSRule>[];
  while (!_maybeEat(TokenKind.END_OF_FILE)) {
    final data = processRule();
    if (data != null) {
      rules.addAll(data);
    } else {
      _next();
    }
  }
  checkEndOfFile();
  return rules;
}