Skip to content
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

Merged
merged 4 commits into from
Aug 3, 2021
Merged

Debug commands #647

merged 4 commits into from
Aug 3, 2021

Conversation

patrickkusebauch
Copy link
Collaborator

Closes: #638

$classLikeName = $classReference->getTokenName();
if ([] === $classLikeLayerResolver->getLayersByTokenName($classLikeName)) {
$classLikeNames[] = $classLikeName->toString();
foreach ($astMap->getAstFileReferences() as $fileReference) {
Copy link
Collaborator Author

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.

Copy link
Collaborator

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.

Copy link
Collaborator

@dbrumann dbrumann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$classLikeName = $classReference->getTokenName();
if ([] === $classLikeLayerResolver->getLayersByTokenName($classLikeName)) {
$classLikeNames[] = $classLikeName->toString();
foreach ($astMap->getAstFileReferences() as $fileReference) {
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update debug commands
2 participants