Lines Matching refs:args

515                     $this->zipSetArgs($block->args, $orderedArgs, $keywordArgs);
544 if (empty($block->args)) {
548 $remainingArgs = $block->args;
551 foreach ($block->args as $arg) {
594 if (isset($skip[$block->id]) && !isset($block->args)) {
645 protected function zipSetArgs($args, $orderedValues, $keywordValues) { argument
649 foreach ($args as $a) {
676 $last = end($args);
678 $rest = array_slice($orderedValues, count($args) - 1);
707 [, $path, $args, $suffix] = $prop;
711 foreach ((array)$args as $arg) {
754 if (isset($mixin->args)) {
757 $this->zipSetArgs($mixin->args, $orderedArgs, $keywordArgs);
897 [, $name, $args] = $value;
898 return $name.'('.$this->compileValue($args).')';
904 protected function lib_pow($args) { argument
905 [$base, $exp] = $this->assertArgs($args, 2, "pow");
906 …return array( "number", pow($this->assertNumber($base), $this->assertNumber($exp)), $args[2][0][2]…
913 protected function lib_mod($args) { argument
914 [$a, $b] = $this->assertArgs($args, 2, "mod");
915 return array( "number", $this->assertNumber($a) % $this->assertNumber($b), $args[2][0][2] );
918 protected function lib_convert($args) { argument
919 [$value, $to] = $this->assertArgs($args, 2, "convert");
932 protected function lib_min($args) { argument
933 $values = $this->assertMinArgs($args, 1, "min");
954 protected function lib_max($args) { argument
955 $values = $this->assertMinArgs($args, 1, "max");
1114 protected function lib__sprintf($args) { argument
1115 if ($args[0] != "list") return $args;
1116 $values = $args[2];
1177 public function colorArgs($args) { argument
1178 if ($args[0] != 'list' || count($args[2]) < 2) {
1181 [$color, $delta] = $args[2];
1188 protected function lib_darken($args) { argument
1189 [$color, $delta] = $this->colorArgs($args);
1196 protected function lib_lighten($args) { argument
1197 [$color, $delta] = $this->colorArgs($args);
1204 protected function lib_saturate($args) { argument
1205 [$color, $delta] = $this->colorArgs($args);
1212 protected function lib_desaturate($args) { argument
1213 [$color, $delta] = $this->colorArgs($args);
1220 protected function lib_spin($args) { argument
1221 [$color, $delta] = $this->colorArgs($args);
1231 protected function lib_fadeout($args) { argument
1232 [$color, $delta] = $this->colorArgs($args);
1237 protected function lib_fadein($args) { argument
1238 [$color, $delta] = $this->colorArgs($args);
1267 protected function lib_fade($args) { argument
1268 [$color, $alpha] = $this->colorArgs($args);
1281 protected function lib_mix($args) { argument
1282 if ($args[0] != "list" || count($args[2]) < 2)
1285 [$first, $second] = $args[2];
1292 if (isset($args[2][2])) {
1293 $weight = $args[2][2][1] / 100.0;
1317 protected function lib_contrast($args) { argument
1322 if ( $args[0] == 'list' ) {
1323 $inputColor = ( isset($args[2][0]) ) ? $this->assertColor($args[2][0]) : $lightColor;
1324 $darkColor = ( isset($args[2][1]) ) ? $this->assertColor($args[2][1]) : $darkColor;
1325 $lightColor = ( isset($args[2][2]) ) ? $this->assertColor($args[2][2]) : $lightColor;
1326 if( isset($args[2][3]) ) {
1327 if( isset($args[2][3][2]) && $args[2][3][2] == '%' ) {
1328 $args[2][3][1] /= 100;
1329 unset($args[2][3][2]);
1331 $threshold = $this->assertNumber($args[2][3]);
1335 $inputColor = $this->assertColor($args);
1598 [, $name, $args] = $value;
1605 if ($args[0] == 'list')
1606 $args = self::compressList($args[2], $args[1]);
1608 $ret = call_user_func($f, $this->reduce($args, true), $this);
1612 $name, "(", $args, ")"
2057 protected function injectVariables($args) { argument
2060 foreach ($args as $name => $strValue) {
2744 if ($this->tag($tag, true) && $this->argumentDef($args, $isVararg) &&
2749 $block->args = $args;
2778 if (!isset($block->args)) {
3278 protected function argumentDef(&$args, &$isVararg) { argument
3371 $args = $values;
3548 $args = array();
3553 $args[] = array("string", "", array($name, "=", $value));
3557 $args[] = $value;
3563 $args = array('list', ',', $args);
3566 $func = array('function', $fname, $args);