CodeExplorer isReferencedByConstructor example
$path[$sourceId] =
$byConstructor;
$checkedNodes[$sourceId] = true;
foreach ($edges as $edge) { $node =
$edge->
getDestNode();
$id =
$node->
getId();
if ($sourceId ===
$id || !
$node->
getValue() instanceof Definition ||
$edge->
isWeak()) { continue;
} if (isset($path[$id])) { $loop = null;
$loopByConstructor =
$edge->
isReferencedByConstructor() && !
$edge->
isLazy();
$pathInLoop =
[$id,
[]];
foreach ($path as $k =>
$pathByConstructor) { if (null !==
$loop) { $loop[] =
$k;
$pathInLoop[1
][$k] =
$pathByConstructor;
$loops[$k][] = &
$pathInLoop;
$loopByConstructor =
$loopByConstructor &&
$pathByConstructor;
} elseif ($k ===
$id) { $loop =
[];
} } $path[$sourceId] =
$byConstructor;
$checkedNodes[$sourceId] = true;
foreach ($edges as $edge) { $node =
$edge->
getDestNode();
$id =
$node->
getId();
if ($sourceId ===
$id || !
$node->
getValue() instanceof Definition ||
$edge->
isLazy() ||
$edge->
isWeak()) { continue;
} if (isset($path[$id])) { $loop = null;
$loopByConstructor =
$edge->
isReferencedByConstructor();
$pathInLoop =
[$id,
[]];
foreach ($path as $k =>
$pathByConstructor) { if (null !==
$loop) { $loop[] =
$k;
$pathInLoop[1
][$k] =
$pathByConstructor;
$loops[$k][] = &
$pathInLoop;
$loopByConstructor =
$loopByConstructor &&
$pathByConstructor;
} elseif ($k ===
$id) { $loop =
[];
} } $path[$sourceId] =
$byConstructor;
$checkedNodes[$sourceId] = true;
foreach ($edges as $edge) { $node =
$edge->
getDestNode();
$id =
$node->
getId();
if ($sourceId ===
$id || !
$node->
getValue() instanceof Definition ||
$edge->
isWeak()) { continue;
} if (isset($path[$id])) { $loop = null;
$loopByConstructor =
$edge->
isReferencedByConstructor() && !
$edge->
isLazy();
$pathInLoop =
[$id,
[]];
foreach ($path as $k =>
$pathByConstructor) { if (null !==
$loop) { $loop[] =
$k;
$pathInLoop[1
][$k] =
$pathByConstructor;
$loops[$k][] = &
$pathInLoop;
$loopByConstructor =
$loopByConstructor &&
$pathByConstructor;
} elseif ($k ===
$id) { $loop =
[];
} }