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

chore: add debug logs #24

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/main/java/spoon/support/compiler/jdt/JDTTreeBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,9 @@ public void endVisit(LambdaExpression lambdaExpression, BlockScope blockScope) {

@Override
public boolean visit(AllocationExpression allocationExpression, BlockScope scope) {
CtElement currentElement = context.getCurrentElement();
System.out.println("Position: " + currentElement.getPosition().toString());
System.out.println("Pretty Print: " + currentElement.prettyprint());
CtConstructorCall constructorCall = factory.Core().createConstructorCall();
constructorCall.setExecutable(references.getExecutableReference(allocationExpression));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@

// the expected type is not available/parameterized if the constructor call occurred in e.g. an unresolved
// method, or in a method that did not expect a parameterized argument
type.addActualTypeArgument(jdtTreeBuilder.getFactory().Type().createReference(CtTypeReference.OMITTED_TYPE_ARG_NAME));
type.addActualTypeArgument(jdtTreeBuilder.getFactory().Type().OMITTED_TYPE_ARG_TYPE.clone());

Check failure on line 710 in src/main/java/spoon/support/compiler/jdt/ReferenceBuilder.java

View workflow job for this annotation

GitHub Actions / code-quality qodana

Usage of API marked for removal

'OMITTED_TYPE_ARG_TYPE' is deprecated since version 11.0.0 and marked for removal
}

/**
Expand Down
Loading