Page MenuHomeWickedGov Phorge

Property.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

Property.php

<?php
/**
* @private
* @see less-3.13.1.js#tree.Property
*/
class Less_Tree_Property extends Less_Tree {
public $name;
public $index;
public $currentFileInfo;
public $evaluating = false;
/**
* @param string $name
*/
public function __construct( $name, $index = null, $currentFileInfo = null ) {
$this->name = $name;
$this->index = $index;
$this->currentFileInfo = $currentFileInfo;
}
public function compile( $env ) {
$name = $this->name;
if ( $this->evaluating ) {
throw new Less_Exception_Compiler( "Recursive property reference for " . $name, null,
$this->index, $this->currentFileInfo );
}
$property = null;
$this->evaluating = true;
/** @var Less_Tree_Ruleset $frame */
foreach ( $env->frames as $frame ) {
$vArr = $frame->property( $name );
if ( $vArr ) {
$size = count( $vArr );
for ( $i = 0; $i < $size; $i++ ) {
$v = $vArr[$i];
$vArr[$i] = new Less_Tree_Declaration(
$v->name,
$v->value,
$v->important,
$v->merge,
$v->index,
$v->currentFileInfo,
$v->inline,
$v->variable
);
}
Less_Visitor_toCSS::_mergeRules( $vArr );
$v = $vArr[ count( $vArr ) - 1 ];
if ( isset( $v->important ) && $v->important ) {
$importantScopeLength = count( $env->importantScope );
$env->importantScope[ $importantScopeLength - 1 ]['important'] = $v->important;
}
$property = $v->value->compile( $env );
break;
}
}
if ( $property ) {
$this->evaluating = false;
return $property;
} else {
throw new Less_Exception_Compiler( "property '" . $name . "' is undefined in file " .
$this->currentFileInfo["filename"], null, $this->index, $this->currentFileInfo );
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, May 16, 18:57 (5 h, 50 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
5b/41/d5b4143b2db2f0fd9b1543aed707
Default Alt Text
Property.php (1 KB)

Event Timeline