Example usage for com.google.common.css.compiler.ast CssUnknownAtRuleNode getName

List of usage examples for com.google.common.css.compiler.ast CssUnknownAtRuleNode getName

Introduction

In this page you can find the example usage for com.google.common.css.compiler.ast CssUnknownAtRuleNode getName.

Prototype

public CssLiteralNode getName() 

Source Link

Usage

From source file:com.google.gwt.resources.gss.ExternalClassesCollector.java

@Override
public void leaveUnknownAtRule(CssUnknownAtRuleNode node) {
    if (EXTERNAL_AT_RULE.equals(node.getName().getValue())) {
        if (!matchAll) {
            processParameters(node.getParameters());
        }//from   w  w w. jav  a2s  .c  om
        visitController.removeCurrentNode();
    }
}

From source file:com.google.gwt.resources.gss.ValidateRuntimeConditionalNode.java

@Override
public boolean enterUnknownAtRule(CssUnknownAtRuleNode node) {
    if (inConditionalRule() && "external".equals(node.getName().getValue())) {
        if (lenient) {
            errorManager.reportWarning(new GssError("You should not define a external at-rule inside"
                    + " a  ConditionalNode that will be evaluated at runtime. This will be disallowed in "
                    + "GWT 3.0", node.getSourceCodeLocation()));
        } else {/*from  w  w w  .jav  a 2s.  c  om*/
            errorManager.report(new GssError(
                    "You cannot define a external at-rule inside a "
                            + "ConditionalNode that will be evaluated at runtime.",
                    node.getSourceCodeLocation()));
        }
    }
    return super.enterUnknownAtRule(node);
}