Example usage for com.google.common.css.compiler.passes CreateConditionalNodes CreateConditionalNodes

List of usage examples for com.google.common.css.compiler.passes CreateConditionalNodes CreateConditionalNodes

Introduction

In this page you can find the example usage for com.google.common.css.compiler.passes CreateConditionalNodes CreateConditionalNodes.

Prototype

public CreateConditionalNodes(MutatingVisitController visitController, ErrorManager errorManager) 

Source Link

Usage

From source file:com.google.gwt.resources.rg.GssResourceGenerator.java

private List<String> finalizeTree(CssTree cssTree) throws UnableToCompleteException {
    new CheckDependencyNodes(cssTree.getMutatingVisitController(), errorManager, false).runPass();

    // Don't continue if errors exist
    checkErrors();/*  ww  w .  ja  v a 2 s.co m*/

    new CreateStandardAtRuleNodes(cssTree.getMutatingVisitController(), errorManager).runPass();
    new CreateMixins(cssTree.getMutatingVisitController(), errorManager).runPass();
    new CreateDefinitionNodes(cssTree.getMutatingVisitController(), errorManager).runPass();
    new CreateConstantReferences(cssTree.getMutatingVisitController()).runPass();
    new CreateConditionalNodes(cssTree.getMutatingVisitController(), errorManager).runPass();
    new CreateRuntimeConditionalNodes(cssTree.getMutatingVisitController()).runPass();
    new CreateComponentNodes(cssTree.getMutatingVisitController(), errorManager).runPass();

    new HandleUnknownAtRuleNodes(cssTree.getMutatingVisitController(), errorManager, allowedAtRules, true,
            false).runPass();
    new ProcessKeyframes(cssTree.getMutatingVisitController(), errorManager, true, true).runPass();
    new ProcessRefiners(cssTree.getMutatingVisitController(), errorManager, true).runPass();

    PermutationsCollector permutationsCollector = new PermutationsCollector(
            cssTree.getMutatingVisitController(), errorManager);
    permutationsCollector.runPass();

    return permutationsCollector.getPermutationAxes();
}