run method

void run()

Implementation

void run() {
  // Expand top-level @include.
  TopLevelIncludes.expand(_messages, _styleSheets);

  // Expand @include in declarations.
  DeclarationIncludes.expand(_messages, _styleSheets);

  // Remove all @mixin and @include
  for (var styleSheet in _styleSheets) {
    MixinsAndIncludes.remove(styleSheet);
  }

  // Expand any nested selectors using selector descendant combinator to
  // signal CSS inheritance notation.
  for (var styleSheet in _styleSheets) {
    ExpandNestedSelectors()
      ..visitStyleSheet(styleSheet)
      ..flatten(styleSheet);
  }

  // Expand any @extend.
  for (var styleSheet in _styleSheets) {
    var allExtends = AllExtends()..visitStyleSheet(styleSheet);
    InheritExtends(_messages, allExtends).visitStyleSheet(styleSheet);
  }
}