function lessc::accessor in Less CSS Preprocessor 6.3
Same name and namespace in other branches
- 6 lessc.inc.php \lessc::accessor()
1 call to lessc::accessor()
- lessc::value in lessphp/
lessc.inc.php
File
- lessphp/
lessc.inc.php, line 434
Class
Code
function accessor(&$var) {
$s = $this
->seek();
if (!$this
->tags($scope, true, '>') || !$this
->literal('[')) {
$this
->seek($s);
return false;
}
// either it is a variable or a property
// why is a property wrapped in quotes, who knows!
if ($this
->variable($name)) {
$name = $this->vPrefix . $name;
}
elseif ($this
->literal("'") && $this
->keyword($name) && $this
->literal("'")) {
// .. $this->count is messed up if we wanted to test another access type
}
else {
$this
->seek($s);
return false;
}
if (!$this
->literal(']')) {
$this
->seek($s);
return false;
}
$var = array(
$scope,
$name,
);
return true;
}