Changeset View
Changeset View
Standalone View
Standalone View
src/ref/symbol/ArcanistSymbolEngine.php
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | final class ArcanistSymbolEngine | ||||
public function loadRefsForSymbols( | public function loadRefsForSymbols( | ||||
ArcanistSymbolRef $template, | ArcanistSymbolRef $template, | ||||
array $symbols) { | array $symbols) { | ||||
$refs = array(); | $refs = array(); | ||||
$load_refs = array(); | $load_refs = array(); | ||||
foreach ($symbols as $symbol) { | foreach ($symbols as $symbol) { | ||||
$ref = id(clone $template) | $ref = (clone $template) | ||||
->setSymbol($symbol); | ->setSymbol($symbol); | ||||
Lint: PHP Syntax Error!: This file contains a syntax error: XHPAST Parse Error: syntax error, unexpected… | |||||
$ref_key = $ref->getSymbolEngineCacheKey(); | $ref_key = $ref->getSymbolEngineCacheKey(); | ||||
if (!isset($this->refs[$ref_key])) { | if (!isset($this->refs[$ref_key])) { | ||||
$this->refs[$ref_key] = $ref; | $this->refs[$ref_key] = $ref; | ||||
$load_refs[] = $ref; | $load_refs[] = $ref; | ||||
} | } | ||||
$refs[$symbol] = $ref; | $refs[$symbol] = $ref; | ||||
Show All 11 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0
This file contains a syntax error: XHPAST Parse Error: syntax error, unexpected T_OBJECT_OPERATOR on line 81