Package com.google.common.css.compiler.passes
package com.google.common.css.compiler.passes
-
ClassDescriptionCheck shorthand rule declarations that define positional values, such as padding and margin, and eliminate duplicate values if possible.A compiler pass that automatically detects certain properties that need additional browser specific property declarations, and adds them.Compiler pass that BiDi flips all the flippable nodes.An evaluator for boolean expressions.A utility for the AutoExpandBrowserPrefix pass, which provides a list of rules that govern automatic addition of browser specific property declarations.A utility for the AutoExpandBrowserPrefix pass, which provides a list of rules that govern automatic addition of browser specific property declarations.A compiler pass that checks for missing
@requirelines for def constant references and mixins.Class to write/delete characters used byCodePrintersubclasses to print out code.An abstract code-printer forCssTreeinstances that provides read/write access to the output buffer and performs common tasks during code generation, like creating sourcemaps.A pass that collects the constant definitions inside the tree.Compiler pass that collects all mixin definitions and afterwards provides a mapping of mixin definition names toCssMixinDefinitionNodeinstances.A compiler pass to help find missing@requirelines for def constant references and mixins.Compiler pass that optimizes color values.A compact-printer forCssTreeinstances.A compact-printer forCssTreeinstances.A container for GSS constant definitions, since a constant could be defined multiple times in the tree, this class has two set of interfaces that can be used to get either all definitions of a constant or only last definition of a constant.A compiler pass that transforms each well-formed@componentor@abstract_componentCssUnknownAtRuleNodeinto aCssComponentNode.A compiler pass that replaces each@if,@elseif, and@elseCssUnknownAtRuleNodewith appropriate conditional nodes (CssConditionalBlockNodeandCssConditionalRuleNode).A compiler pass that transforms each upper-casedCssLiteralNodeto aCssConstantReferenceNode.A compiler pass that replaces each@forwith aCssForLoopRuleNode.A compiler pass that transforms matchingCssUnknownAtRuleNodeinstances into mixins or mixin definitions.A compiler pass that transforms standardCssUnknownAtRuleNodeinstances to more specific at-rule nodes, or deletes them.Compiler pass which duplicates @keyframes rules creating browser specific prefixed form.Compiler pass that does CSS class renaming given a renaming map.Class to collect and generate source map(v3) for Gss compiler.Printer for definition nodes, which outputs GSS definitions so that they can be re-parsed later.Dispatches to multipleCssTreeVisitors.Compiler pass that reports an error if a ruleset has two of the same declarations that are not marked as alternate.DummyErrorManageris a stateless error manager suitable for use in the Null Object pattern.A compiler pass that eliminates the conditional blocks for which the boolean expression does not evaluate to true.A compiler pass that eliminates the empty ruleset nodes.A compiler pass that eliminates useless units from 0.Compiler pass that removes useless ruleset nodes from the AST.A visitor that maps nodes to their visit ordering.Evaluates integer constants provided typically through command line.Compiler pass that replaces font and font-family declaration subtrees so that the tree structure resembles the (rather idiosyncratic) grammar of the corresponding CSS properties.Properties whose values may be specified in aFontdeclaration.Specifies how the input tree should be interpreted.Interface to collect and generate source map forCssNodein Gss compiler.Compiler pass that throws an error for anyCssConstantReferenceNodethat do not have a correspondingCssDefinitionNode.Compiler pass that handles remainingCssUnknownAtRuleNodeinstances by optionally reporting them as errors and optionally removing them.A pass for finding an approximation to a minimum-size SourceCodeLocation interval that contains a given node.Pass which marks whichChunkAwarenodes belong to which chunk.Compiler pass that traverses the tree and marks as default the value nodes in a definition that has the corresponding annotation.Compiler pass that traverses the tree and marks as non flippable the nodes that should not be BiDi flipped.Compiler pass that marks the ruleset nodes that should be removed from the tree.Compiler pass that marks ruleset nodes that should be removed from the tree, within the confines of a single chunk.Compiler pass that merges adjacent ruleset nodes that have the same selector.Compiler pass that merges adjacent ruleset nodes that have the same selector.Null class implementsGssSourceMapGenerator.Utility methods that can be useful for compiler passes.A pretty-printer forCssTreeinstances.A pretty-printer forCssTreeinstances.Compiler pass which ensures that @keyframes rules are only allowed if they are enabled.Compiler pass which ensures that refiners are correctly formated because not every invalid format is rejected by the parser.A decorator for aSubstitutionMapthat records which values it maps.A-la-carte builder.Compiler pass that removes declaration nodes that have all the property values marked as default.Compiler pass that removes empty values and their containing declaration nodes if they become empty.ACssCompilerPassthat removes all vendor-specific properties, except for oneVendorthat is specified in the constructor.Compiler pass that replaces the constant references with the right values.Compiler pass that replaces mixins with the corresponding mixin definitions and replaces the variables in the definitions with the values given by the mixin.This compiler pass replacesCssCustomFunctionNodeinstances with the list of nodes returned by the GssFunction.This compiler pass evaluatesCssCustomFunctionNodeinstances only when they have no references as arguments.Build up an s-expression corresponding to the AST for debugging purposes.Build up an s-expression corresponding to the AST for debugging purposes.Compiler pass that splits ruleset nodes into multiple ruleset nodes by selector and declaration.This compiler pass enforces that only correct CSS 2.1 is used.This compiler pass enforces that only correct CSS level 3 is used.Base class for compiler passes enforcing a specific CSS level.Printer for templates, which outputs GSS with holes to be filled for references.Printer for templates, which outputs GSS with holes to be filled for references.A visitor with a pair of operations (enter and leave) that apply to every node type.Adapter methods that transformUniformVisitors intoCssTreeVisitors.A compiler pass that unrolls loops.Compiler pass that merges rulesets aggressively.A compiler pass that validates values of properties.CSS Compiler pass that checks that all properties in the stylesheet are either on the built-in recognized property list, or were whitelisted explicitly.