Leafo\ScssPhp\Compiler
SCSS compiler
- Author: Leaf Corcoran <leafot@gmail.com>
Synopsis
class Compiler
{
- // constants
- const LINE_COMMENTS = 1;
- const DEBUG_INFO = 2;
- const WITH_RULE = 1;
- const WITH_MEDIA = 2;
- const WITH_SUPPORTS = 4;
- const WITH_ALL = 7;
- // members
- protected static array $operatorNames = ;
- protected static array $namespaces = ;
- public static array $true = ;
- public static array $false = ;
- public static array $null = ;
- public static array $nullString = ;
- public static array $defaultValue = ;
- public static array $selfSelector = ;
- public static array $emptyList = ;
- public static array $emptyMap = ;
- public static array $emptyString = ;
- public static array $with = ;
- public static array $without = ;
- protected array $importPaths = ;
- protected array $importCache = ;
- protected array $importedFiles = ;
- protected array $userFunctions = ;
- protected array $registeredVars = ;
- protected array $registeredFeatures = ;
- protected $encoding = NULL;
- protected $lineNumberStyle = NULL;
- protected string $formatter = 'Leafo\ScssPhp\Formatter\Nested';
- protected $rootEnv;
- protected $rootBlock;
- protected $env;
- protected $scope;
- protected $storeEnv;
- protected $charsetSeen;
- protected $sourceNames;
- private $indentLevel;
- private $commentsSeen;
- private $extends;
- private $extendsMap;
- private $parsedFiles;
- private $parser;
- private $sourceIndex;
- private $sourceLine;
- private $sourceColumn;
- private $stderr;
- private $shouldEvaluate;
- private $ignoreErrors;
- protected static array $libIf = ;
- protected static array $libIndex = ;
- protected static array $libRgb = ;
- protected static array $libRgba = ;
- protected static array $libAdjustColor = ;
- protected static array $libChangeColor = ;
- protected static array $libScaleColor = ;
- protected static array $libIeHexStr = ;
- protected static array $libRed = ;
- protected static array $libGreen = ;
- protected static array $libBlue = ;
- protected static array $libAlpha = ;
- protected static array $libOpacity = ;
- protected static array $libMix = ;
- protected static array $libHsl = ;
- protected static array $libHsla = ;
- protected static array $libHue = ;
- protected static array $libSaturation = ;
- protected static array $libLightness = ;
- protected static array $libAdjustHue = ;
- protected static array $libLighten = ;
- protected static array $libDarken = ;
- protected static array $libSaturate = ;
- protected static array $libDesaturate = ;
- protected static array $libGrayscale = ;
- protected static array $libComplement = ;
- protected static array $libInvert = ;
- protected static array $libOpacify = ;
- protected static array $libFadeIn = ;
- protected static array $libTransparentize = ;
- protected static array $libFadeOut = ;
- protected static array $libUnquote = ;
- protected static array $libQuote = ;
- protected static array $libPercentage = ;
- protected static array $libRound = ;
- protected static array $libFloor = ;
- protected static array $libCeil = ;
- protected static array $libAbs = ;
- protected static array $libLength = ;
- protected static array $libNth = ;
- protected static array $libSetNth = ;
- protected static array $libMapGet = ;
- protected static array $libMapKeys = ;
- protected static array $libMapValues = ;
- protected static array $libMapRemove = ;
- protected static array $libMapHasKey = ;
- protected static array $libMapMerge = ;
- protected static array $libKeywords = ;
- protected static array $libJoin = ;
- protected static array $libAppend = ;
- protected static array $libTypeOf = ;
- protected static array $libUnit = ;
- protected static array $libUnitless = ;
- protected static array $libComparable = ;
- protected static array $libStrIndex = ;
- protected static array $libStrInsert = ;
- protected static array $libStrLength = ;
- protected static array $libStrSlice = ;
- protected static array $libToLowerCase = ;
- protected static array $libToUpperCase = ;
- protected static array $libFeatureExists = ;
- protected static array $libFunctionExists = ;
- protected static array $libGlobalVariableExists = ;
- protected static array $libMixinExists = ;
- protected static array $libVariableExists = ;
- protected static array $libRandom = ;
- protected static array $libInspect = ;
- // methods
- public void __construct()
- public string compile()
- protected Parser parserFactory()
- protected boolean isSelfExtend()
- protected void pushExtends()
- protected OutputBlock makeOutputBlock()
- protected void compileRoot()
- protected void missingSelectors()
- protected void flattenSelectors()
- protected void matchExtends()
- protected boolean matchExtendsSingle()
- protected array extractRelationshipFromFragment()
- protected array combineSelectorSingle()
- protected void compileMedia()
- protected OutputBlock mediaParent()
- protected void compileDirective()
- protected void compileAtRoot()
- private array spliceTree()
- private integer compileWith()
- private Environment filterWithout()
- private boolean isWithout()
- protected void compileKeyframeBlock()
- protected void compileNestedBlock()
- protected void compileBlock()
- protected void compileComment()
- protected array evalSelectors()
- protected array evalSelector()
- protected array evalSelectorPart()
- protected string collapseSelectors()
- protected array flattenSelectorSingle()
- protected string compileSelector()
- protected string compileSelectorPart()
- protected boolean hasSelectorPlaceholder()
- protected array compileChildren()
- protected void compileChildrenNoReturn()
- protected string compileMediaQuery()
- protected void mergeDirectRelationships()
- protected array|null mergeMediaTypes()
- protected boolean compileImport()
- protected array compileChild()
- protected array expToString()
- protected array isTruthy()
- protected bool isImmediateRelationshipCombinator()
- protected boolean shouldEval()
- protected array reduce()
- private array|null fncall()
- protected string normalizeName()
- public array normalizeValue()
- protected array opAddNumberNumber()
- protected array opMulNumberNumber()
- protected array opSubNumberNumber()
- protected array opDivNumberNumber()
- protected array opModNumberNumber()
- protected array opAdd()
- protected array opAnd()
- protected array opOr()
- protected array opColorColor()
- protected array opColorNumber()
- protected array opNumberColor()
- protected array opEq()
- protected array opNeq()
- protected array opGteNumberNumber()
- protected array opGtNumberNumber()
- protected array opLteNumberNumber()
- protected array opLtNumberNumber()
- protected array opCmpNumberNumber()
- public array toBool()
- public string compileValue()
- protected string flattenList()
- protected string compileStringContent()
- protected array extractInterpolation()
- protected array multiplySelectors()
- protected array joinSelectors()
- protected array multiplyMedia()
- private array compactEnv()
- private Environment extractEnv()
- protected Environment pushEnv()
- protected void popEnv()
- protected Environment getStoreEnv()
- protected void set()
- protected void setExisting()
- protected void setRaw()
- public mixed get()
- protected boolean has()
- protected void injectVariables()
- public void setVariables()
- public void unsetVariable()
- public array getVariables()
- public void addParsedFile()
- public array getParsedFiles()
- public void addImportPath()
- public void setImportPaths()
- public void setNumberPrecision()
- public void setFormatter()
- public void setLineNumberStyle()
- public void registerFunction()
- public void unregisterFunction()
- public void addFeature()
- protected void importFile()
- public string|null findImport()
- public void setEncoding()
- public Compiler setIgnoreErrors()
- public void throwError()
- protected void handleImportLoop()
- protected boolean fileExists()
- protected boolean callScssFunction()
- protected boolean callNativeFunction()
- protected array getBuiltinFunction()
- protected array sortArgs()
- protected void applyArguments()
- private array coerceValue()
- protected array coerceMap()
- protected array coerceList()
- protected array|null coerceForExpression()
- protected array|null coerceColor()
- protected array|null coerceString()
- protected integer|float coercePercent()
- public array assertMap()
- public array assertList()
- public array assertColor()
- public integer|float assertNumber()
- protected array fixColor()
- public array toHSL()
- private float hueToRGB()
- public array toRGB()
- protected void libCall()
- protected void libIf()
- protected void libIndex()
- protected void libRgb()
- protected void libRgba()
- protected void alterColor()
- protected void libAdjustColor()
- protected void libChangeColor()
- protected void libScaleColor()
- protected void libIeHexStr()
- protected void libRed()
- protected void libGreen()
- protected void libBlue()
- protected void libAlpha()
- protected void libOpacity()
- protected void libMix()
- protected void libHsl()
- protected void libHsla()
- protected void libHue()
- protected void libSaturation()
- protected void libLightness()
- protected void adjustHsl()
- protected void libAdjustHue()
- protected void libLighten()
- protected void libDarken()
- protected void libSaturate()
- protected void libDesaturate()
- protected void libGrayscale()
- protected void libComplement()
- protected void libInvert()
- protected void libOpacify()
- protected void libFadeIn()
- protected void libTransparentize()
- protected void libFadeOut()
- protected void libUnquote()
- protected void libQuote()
- protected void libPercentage()
- protected void libRound()
- protected void libFloor()
- protected void libCeil()
- protected void libAbs()
- protected void libMin()
- protected void libMax()
- protected array getNormalizedNumbers()
- protected void libLength()
- protected void libListSeparator()
- protected void libNth()
- protected void libSetNth()
- protected void libMapGet()
- protected void libMapKeys()
- protected void libMapValues()
- protected void libMapRemove()
- protected void libMapHasKey()
- protected void libMapMerge()
- protected void libKeywords()
- protected void listSeparatorForJoin()
- protected void libJoin()
- protected void libAppend()
- protected void libZip()
- protected void libTypeOf()
- protected void libUnit()
- protected void libUnitless()
- protected void libComparable()
- protected void libStrIndex()
- protected void libStrInsert()
- protected void libStrLength()
- protected void libStrSlice()
- protected void libToLowerCase()
- protected void libToUpperCase()
- protected void libFeatureExists()
- protected void libFunctionExists()
- protected void libGlobalVariableExists()
- protected void libMixinExists()
- protected void libVariableExists()
- protected void libCounter()
- protected void libRandom()
- protected void libUniqueId()
- protected void libInspect()
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
253 | ShortVariable | Avoid variables with short names like $i. Configured minimum length is 3. |
331 - 382 | CyclomaticComplexity | The method flattenSelectors() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10. |
392 - 470 | CyclomaticComplexity | The method matchExtends() has a Cyclomatic Complexity of 18. The configured cyclomatic complexity threshold is 10. |
392 - 470 | NPathComplexity | The method matchExtends() has an NPath complexity of 1445. The configured NPath complexity threshold is 200. |
453 | LongVariable | Avoid excessively long variable names like $injectBetweenSharedParts. Keep variable name length under 20. |
480 - 557 | CyclomaticComplexity | The method matchExtendsSingle() has a Cyclomatic Complexity of 19. The configured cyclomatic complexity threshold is 10. |
480 - 557 | NPathComplexity | The method matchExtendsSingle() has an NPath complexity of 3675. The configured NPath complexity threshold is 200. |
498 | LongVariable | Avoid excessively long variable names like $extendingDecoratedTag. Keep variable name length under 20. |
575 | ShortVariable | Avoid variables with short names like $j. Configured minimum length is 3. |
575 | ShortVariable | Avoid variables with short names like $i. Configured minimum length is 3. |
710 | ShortVariable | Avoid variables with short names like $s. Configured minimum length is 3. |
771 - 838 | CyclomaticComplexity | The method spliceTree() has a Cyclomatic Complexity of 18. The configured cyclomatic complexity threshold is 10. |
771 - 838 | NPathComplexity | The method spliceTree() has an NPath complexity of 6914. The configured NPath complexity threshold is 200. |
921 - 934 | CyclomaticComplexity | The method isWithout() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10. |
1103 - 1122 | CyclomaticComplexity | The method evalSelectorPart() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10. |
1140 | UnusedLocalVariable | Avoid unused local variables such as '$key'. |
1302 - 1365 | CyclomaticComplexity | The method compileMediaQuery() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10. |
1406 - 1462 | CyclomaticComplexity | The method mergeMediaTypes() has a Cyclomatic Complexity of 14. The configured cyclomatic complexity threshold is 10. |
1406 - 1462 | NPathComplexity | The method mergeMediaTypes() has an NPath complexity of 2304. The configured NPath complexity threshold is 200. |
1416 | ShortVariable | Avoid variables with short names like $m1. Configured minimum length is 3. |
1417 | ShortVariable | Avoid variables with short names like $t1. Configured minimum length is 3. |
1426 | ShortVariable | Avoid variables with short names like $m2. Configured minimum length is 3. |
1427 | ShortVariable | Avoid variables with short names like $t2. Configured minimum length is 3. |
1473 - 1510 | CyclomaticComplexity | The method compileImport() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10. |
1520 - 1882 | CyclomaticComplexity | The method compileChild() has a Cyclomatic Complexity of 86. The configured cyclomatic complexity threshold is 10. |
1520 - 1882 | NPathComplexity | The method compileChild() has an NPath complexity of 4360. The configured NPath complexity threshold is 200. |
1520 - 1882 | ExcessiveMethodLength | The method compileChild() has 363 lines of code. Current threshold is set to 100. Avoid really long methods. |
1659 | ShortVariable | Avoid variables with short names like $if. Configured minimum length is 3. |
1735 | ShortVariable | Avoid variables with short names like $d. Configured minimum length is 3. |
1893 | ShortVariable | Avoid variables with short names like $op. Configured minimum length is 3. |
1968 - 2149 | CyclomaticComplexity | The method reduce() has a Cyclomatic Complexity of 62. The configured cyclomatic complexity threshold is 10. |
1968 - 2149 | NPathComplexity | The method reduce() has an NPath complexity of 13370. The configured NPath complexity threshold is 200. |
1968 - 2149 | ExcessiveMethodLength | The method reduce() has 182 lines of code. Current threshold is set to 100. Avoid really long methods. |
1974 | ShortVariable | Avoid variables with short names like $op. Configured minimum length is 3. |
1999 | UnusedLocalVariable | Avoid unused local variables such as '$ucOpName'. |
2000 | UnusedLocalVariable | Avoid unused local variables such as '$ucLType'. |
2001 | UnusedLocalVariable | Avoid unused local variables such as '$ucRType'. |
2007 | ShortVariable | Avoid variables with short names like $fn. Configured minimum length is 3. |
2388 - 2441 | CyclomaticComplexity | The method opColorColor() has a Cyclomatic Complexity of 14. The configured cyclomatic complexity threshold is 10. |
2388 | ShortVariable | Avoid variables with short names like $op. Configured minimum length is 3. |
2452 | ShortVariable | Avoid variables with short names like $op. Configured minimum length is 3. |
2472 | ShortVariable | Avoid variables with short names like $op. Configured minimum length is 3. |
2587 | ShortVariable | Avoid variables with short names like $n. Configured minimum length is 3. |
2623 - 2778 | CyclomaticComplexity | The method compileValue() has a Cyclomatic Complexity of 33. The configured cyclomatic complexity threshold is 10. |
2623 - 2778 | ExcessiveMethodLength | The method compileValue() has 156 lines of code. Current threshold is set to 100. Avoid really long methods. |
2638 | ShortVariable | Avoid variables with short names like $r. Configured minimum length is 3. |
2638 | ShortVariable | Avoid variables with short names like $g. Configured minimum length is 3. |
2638 | ShortVariable | Avoid variables with short names like $b. Configured minimum length is 3. |
2648 | ShortVariable | Avoid variables with short names like $h. Configured minimum length is 3. |
2976 | ShortVariable | Avoid variables with short names like $e. Configured minimum length is 3. |
3102 - 3142 | CyclomaticComplexity | The method get() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10. |
3368 | ShortVariable | Avoid variables with short names like $pi. Configured minimum length is 3. |
3383 - 3420 | CyclomaticComplexity | The method findImport() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10. |
3565 | ShortVariable | Avoid variables with short names like $f. Configured minimum length is 3. |
3603 | ShortVariable | Avoid variables with short names like $m. Configured minimum length is 3. |
3665 - 3773 | CyclomaticComplexity | The method applyArguments() has a Cyclomatic Complexity of 27. The configured cyclomatic complexity threshold is 10. |
3665 - 3773 | NPathComplexity | The method applyArguments() has an NPath complexity of 1512. The configured NPath complexity threshold is 200. |
3665 - 3773 | ExcessiveMethodLength | The method applyArguments() has 109 lines of code. Current threshold is set to 100. Avoid really long methods. |
3782 - 3828 | CyclomaticComplexity | The method coerceValue() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10. |
3782 - 3828 | NPathComplexity | The method coerceValue() has an NPath complexity of 240. The configured NPath complexity threshold is 200. |
3804 | ShortVariable | Avoid variables with short names like $m. Configured minimum length is 3. |
4056 | ShortVariable | Avoid variables with short names like $c. Configured minimum length is 3. |
4087 | ShortVariable | Avoid variables with short names like $l. Configured minimum length is 3. |
4088 | ShortVariable | Avoid variables with short names like $d. Configured minimum length is 3. |
4091 | ShortVariable | Avoid variables with short names like $h. Configured minimum length is 3. |
4091 | ShortVariable | Avoid variables with short names like $s. Configured minimum length is 3. |
4120 | ShortVariable | Avoid variables with short names like $m1. Configured minimum length is 3. |
4120 | ShortVariable | Avoid variables with short names like $m2. Configured minimum length is 3. |
4120 | ShortVariable | Avoid variables with short names like $h. Configured minimum length is 3. |
4160 | ShortVariable | Avoid variables with short names like $h. Configured minimum length is 3. |
4161 | ShortVariable | Avoid variables with short names like $s. Configured minimum length is 3. |
4162 | ShortVariable | Avoid variables with short names like $l. Configured minimum length is 3. |
4164 | ShortVariable | Avoid variables with short names like $m2. Configured minimum length is 3. |
4165 | ShortVariable | Avoid variables with short names like $m1. Configured minimum length is 3. |
4167 | ShortVariable | Avoid variables with short names like $r. Configured minimum length is 3. |
4168 | ShortVariable | Avoid variables with short names like $g. Configured minimum length is 3. |
4169 | ShortVariable | Avoid variables with short names like $b. Configured minimum length is 3. |
4184 | ShortVariable | Avoid variables with short names like $a. Configured minimum length is 3. |
4202 | ShortVariable | Avoid variables with short names like $t. Configured minimum length is 3. |
4202 | ShortVariable | Avoid variables with short names like $f. Configured minimum length is 3. |
4246 | ShortVariable | Avoid variables with short names like $r. Configured minimum length is 3. |
4246 | ShortVariable | Avoid variables with short names like $g. Configured minimum length is 3. |
4246 | ShortVariable | Avoid variables with short names like $b. Configured minimum length is 3. |
4264 | ShortVariable | Avoid variables with short names like $r. Configured minimum length is 3. |
4264 | ShortVariable | Avoid variables with short names like $g. Configured minimum length is 3. |
4264 | ShortVariable | Avoid variables with short names like $b. Configured minimum length is 3. |
4264 | ShortVariable | Avoid variables with short names like $a. Configured minimum length is 3. |
4270 - 4302 | CyclomaticComplexity | The method alterColor() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10. |
4270 | ShortVariable | Avoid variables with short names like $fn. Configured minimum length is 3. |
4310 | UnusedLocalVariable | Avoid unused local variables such as '$i'. |
4321 | UnusedLocalVariable | Avoid unused local variables such as '$base'. |
4321 | UnusedLocalVariable | Avoid unused local variables such as '$i'. |
4439 | ShortVariable | Avoid variables with short names like $w. Configured minimum length is 3. |
4440 | ShortVariable | Avoid variables with short names like $a. Configured minimum length is 3. |
4442 | ShortVariable | Avoid variables with short names like $w1. Configured minimum length is 3. |
4443 | ShortVariable | Avoid variables with short names like $w2. Configured minimum length is 3. |
4461 | ShortVariable | Avoid variables with short names like $h. Configured minimum length is 3. |
4461 | ShortVariable | Avoid variables with short names like $s. Configured minimum length is 3. |
4461 | ShortVariable | Avoid variables with short names like $l. Configured minimum length is 3. |
4469 | ShortVariable | Avoid variables with short names like $h. Configured minimum length is 3. |
4469 | ShortVariable | Avoid variables with short names like $s. Configured minimum length is 3. |
4469 | ShortVariable | Avoid variables with short names like $l. Configured minimum length is 3. |
4469 | ShortVariable | Avoid variables with short names like $a. Configured minimum length is 3. |
4802 | ShortVariable | Avoid variables with short names like $n. Configured minimum length is 3. |
4817 | ShortVariable | Avoid variables with short names like $n. Configured minimum length is 3. |
5177 | ShortVariable | Avoid variables with short names like $f. Configured minimum length is 3. |
5182 | LongVariable | Avoid excessively long variable names like $libGlobalVariableExists. Keep variable name length under 20. |
5225 | ShortVariable | Avoid variables with short names like $n. Configured minimum length is 3. |
5241 | ShortVariable | Avoid variables with short names like $id. Configured minimum length is 3. |
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
453 | 127 | warning | Line exceeds 120 characters; contains 127 characters |
Constants
Name | Value |
---|---|
LINE_COMMENTS | 1 |
DEBUG_INFO | 2 |
WITH_RULE | 1 |
WITH_MEDIA | 2 |
WITH_SUPPORTS | 4 |
WITH_ALL | 7 |
Members
private
- $commentsSeen
- $extends
- $extendsMap
- $ignoreErrors
- $indentLevel
- $parsedFiles
- $parser
- $shouldEvaluate
- $sourceColumn
- $sourceIndex
- $sourceLine
- $stderr
protected
- $charsetSeen
- $encoding
- $env
- $formatter
- $importCache
- $importPaths
- $importedFiles
- $libAbs
- $libAdjustColor
- $libAdjustHue
- $libAlpha
- $libAppend
- $libBlue
- $libCeil
- $libChangeColor
- $libComparable
- $libComplement
- $libDarken
- $libDesaturate
- $libFadeIn
- $libFadeOut
- $libFeatureExists
- $libFloor
- $libFunctionExists
- $libGlobalVariableExists
- $libGrayscale
- $libGreen
- $libHsl
- $libHsla
- $libHue
- $libIeHexStr
- $libIf
- $libIndex
- $libInspect
- $libInvert
- $libJoin
- $libKeywords
- $libLength
- $libLighten
- $libLightness
- $libMapGet
- $libMapHasKey
- $libMapKeys
- $libMapMerge
- $libMapRemove
- $libMapValues
- $libMix
- $libMixinExists
- $libNth
- $libOpacify
- $libOpacity
- $libPercentage
- $libQuote
- $libRandom
- $libRed
- $libRgb
- $libRgba
- $libRound
- $libSaturate
- $libSaturation
- $libScaleColor
- $libSetNth
- $libStrIndex
- $libStrInsert
- $libStrLength
- $libStrSlice
- $libToLowerCase
- $libToUpperCase
- $libTransparentize
- $libTypeOf
- $libUnit
- $libUnitless
- $libUnquote
- $libVariableExists
- $lineNumberStyle
- $namespaces — array
- $operatorNames — array
- $registeredFeatures
- $registeredVars
- $rootBlock
- $rootEnv
- $scope
- $sourceNames
- $storeEnv
- $userFunctions
public
- $defaultValue
- $emptyList
- $emptyMap
- $emptyString
- $false
- $null
- $nullString
- $selfSelector
- $true
- $with
- $without
Methods
private
- coerceValue() — Coerce a php value into a scss one
- compactEnv() — Convert env linked list to stack
- compileWith() — Compile @at-root's with: inclusion / without: exclusion into filter flags
- extractEnv() — Convert env stack to singly linked list
- filterWithout() — Filter env stack
- fncall() — Function caller
- hueToRGB() — Hue to RGB helper
- isWithout() — Filter WITH rules
- spliceTree() — Splice parse tree
protected
- adjustHsl()
- alterColor()
- applyArguments() — Apply argument values per definition
- callNativeFunction() — Call built-in and registered (PHP) functions
- callScssFunction() — Call SCSS @function
- coerceColor() — Coerce value to color
- coerceForExpression() — Coerce color for expression
- coerceList() — Coerce something to list
- coerceMap() — Coerce something to map
- coercePercent() — Coerce value to a percentage
- coerceString() — Coerce value to string
- collapseSelectors() — Collapse selectors
- combineSelectorSingle() — Combine selector single
- compileAtRoot() — Compile at-root
- compileBlock() — Recursively compiles a block.
- compileChild() — Compile child; returns a value to halt execution
- compileChildren() — Compile children and return result
- compileChildrenNoReturn() — Compile children and throw exception if unexpected @return
- compileComment() — Compile root level comment
- compileDirective() — Compile directive
- compileImport() — Compile import; returns true if the value was something that could be imported
- compileKeyframeBlock() — Compile keyframe block
- compileMedia() — Compile media
- compileMediaQuery() — Compile media query
- compileNestedBlock() — Compile nested block
- compileRoot() — Compile root
- compileSelector() — Compile selector to string; self(&) should have been replaced by now
- compileSelectorPart() — Compile selector part
- compileStringContent() — Compile string content
- evalSelector() — Evaluate selector
- evalSelectorPart() — Evaluate selector part; replaces all the interpolates, stripping quotes
- evalSelectors() — Evaluate selectors
- expToString() — Reduce expression to string
- extractInterpolation() — Extract interpolation; it doesn't need to be recursive, compileValue will handle that
- extractRelationshipFromFragment() — Extract a relationship from the fragment.
- fileExists() — Does file exist?
- fixColor() — Make sure a color's components don't go out of bounds
- flattenList() — Flatten list
- flattenSelectorSingle() — Flatten selector single; joins together .classes and #ids
- flattenSelectors() — Flatten selectors
- getBuiltinFunction() — Get built-in function
- getNormalizedNumbers() — Helper to normalize args containing numbers
- getStoreEnv() — Get store environment
- handleImportLoop() — Handle import loop
- has() — Has variable?
- hasSelectorPlaceholder() — Has selector placeholder?
- importFile() — Import file
- injectVariables() — Inject variables
- isImmediateRelationshipCombinator() — Is the value a direct relationship combinator?
- isSelfExtend() — Is self extend?
- isTruthy() — Is truthy?
- joinSelectors() — Join selectors; looks for & to replace, or append parent before child
- libAbs()
- libAdjustColor()
- libAdjustHue()
- libAlpha()
- libAppend()
- libBlue()
- libCall()
- libCeil()
- libChangeColor()
- libComparable()
- libComplement()
- libCounter() — Workaround IE7's content counter bug.
- libDarken()
- libDesaturate()
- libFadeIn()
- libFadeOut()
- libFeatureExists()
- libFloor()
- libFunctionExists()
- libGlobalVariableExists()
- libGrayscale()
- libGreen()
- libHsl()
- libHsla()
- libHue()
- libIeHexStr()
- libIf()
- libIndex()
- libInspect()
- libInvert()
- libJoin()
- libKeywords()
- libLength()
- libLighten()
- libLightness()
- libListSeparator()
- libMapGet()
- libMapHasKey()
- libMapKeys()
- libMapMerge()
- libMapRemove()
- libMapValues()
- libMax()
- libMin()
- libMix()
- libMixinExists()
- libNth()
- libOpacify()
- libOpacity()
- libPercentage()
- libQuote()
- libRandom()
- libRed()
- libRgb()
- libRgba()
- libRound()
- libSaturate()
- libSaturation()
- libScaleColor()
- libSetNth()
- libStrIndex()
- libStrInsert()
- libStrLength()
- libStrSlice()
- libToLowerCase()
- libToUpperCase()
- libTransparentize()
- libTypeOf()
- libUniqueId()
- libUnit()
- libUnitless()
- libUnquote()
- libVariableExists()
- libZip()
- listSeparatorForJoin()
- makeOutputBlock() — Make output block
- matchExtends() — Match extends
- matchExtendsSingle() — Match extends single
- mediaParent() — Media parent
- mergeDirectRelationships()
- mergeMediaTypes() — Merge media types
- missingSelectors() — Report missing selectors
- multiplyMedia() — Multiply media
- multiplySelectors() — Find the final set of selectors
- normalizeName() — Normalize name
- opAdd() — Add strings
- opAddNumberNumber() — Add numbers
- opAnd() — Boolean and
- opCmpNumberNumber() — Three-way comparison, aka spaceship operator
- opColorColor() — Compare colors
- opColorNumber() — Compare color and number
- opDivNumberNumber() — Divide numbers
- opEq() — Compare number1 == number2
- opGtNumberNumber() — Compare number1 > number2
- opGteNumberNumber() — Compare number1 >= number2
- opLtNumberNumber() — Compare number1 < number2
- opLteNumberNumber() — Compare number1 <= number2
- opModNumberNumber() — Mod numbers
- opMulNumberNumber() — Multiply numbers
- opNeq() — Compare number1 != number2
- opNumberColor() — Compare number and color
- opOr() — Boolean or
- opSubNumberNumber() — Subtract numbers
- parserFactory() — Instantiate parser
- popEnv() — Pop environment
- pushEnv() — Push environment
- pushExtends() — Push extends
- reduce() — Reduce value
- set() — Set variable
- setExisting() — Set existing variable
- setRaw() — Set raw variable
- shouldEval() — Should $value cause its operand to eval
- sortArgs() — Sorts keyword arguments
public
- __construct() — Constructor
- addFeature() — Add feature
- addImportPath() — Add import path
- addParsedFile() — Adds to list of parsed files
- assertColor() — Assert value is a color
- assertList() — Assert value is a list
- assertMap() — Assert value is a map
- assertNumber() — Assert value is a number
- compile() — Compile scss
- compileValue() — Compiles a primitive value into a CSS property value.
- findImport() — Return the file path for an import url if it exists
- get() — Get variable
- getParsedFiles() — Returns list of parsed files
- getVariables() — Returns list of variables
- normalizeValue() — Normalize value
- registerFunction() — Register function
- setEncoding() — Set encoding
- setFormatter() — Set formatter
- setIgnoreErrors() — Ignore errors?
- setImportPaths() — Set import paths
- setLineNumberStyle() — Set line number style
- setNumberPrecision() — Set number precision
- setVariables() — Set variables
- throwError() — Throw error (exception)
- toBool() — Cast to boolean
- toHSL() — Convert RGB to HSL
- toRGB() — Convert HSL to RGB
- unregisterFunction() — Unregister function
- unsetVariable() — Unset variable
History
-
2017-05-18T21:45:34+00:00 (commit #62babba)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
Pre 3.0.0
-
2017-05-17T09:50:09+00:00 (commit #bcd6e9c)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
PSR-2
-
2017-05-16T19:52:59+00:00 (commit #fd0a296)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
PSR-2 applied
-
2016-01-25T17:45:50+00:00 (commit #97e2af2)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
Pre v.3.0
-
2015-04-02T12:09:45+00:00 (commit #80007ff)
Author: Limych (andrey@khrolenok.ru) / Commiter: Limych (andrey@khrolenok.ru)
Added advertizing. Added SCSS processor.