-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug commands #647
Debug commands #647
Conversation
$classLikeName = $classReference->getTokenName(); | ||
if ([] === $classLikeLayerResolver->getLayersByTokenName($classLikeName)) { | ||
$classLikeNames[] = $classLikeName->toString(); | ||
foreach ($astMap->getAstFileReferences() as $fileReference) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an extension of the current functionality. But I am thinking if this should first pass by Emitters somehow since now you might not want to collect some of the tokens. Something like to actually analyze normally, and look at the dependencyResult
for dependencies that are not in any layer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good idea, but we can defer it to a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @patrickkusebauch.
$classLikeName = $classReference->getTokenName(); | ||
if ([] === $classLikeLayerResolver->getLayersByTokenName($classLikeName)) { | ||
$classLikeNames[] = $classLikeName->toString(); | ||
foreach ($astMap->getAstFileReferences() as $fileReference) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good idea, but we can defer it to a separate PR.
Closes: #638