-
Notifications
You must be signed in to change notification settings - Fork 15
Code snippet generates a java:MethodDeclaration
in semantic mode
#104
Comments
Specifically this method: public Scope scope(final String name) {
return block(asyncBucket.scope(name)
.thenApply(asyncScope -> new Scope(asyncScope, asyncBucket.name()))
);
} |
Here is a minimal repro: package pkg;
public class C {
public void method(final String str) {}
} Specifically, removing the |
Issue description updated to include short example. |
Was rised in a community slack today again. I'm going to look into this later this week, if @dennwc (who is assignee in this issue for now) is not fixing it earlier. |
The issue is due to the fact that method argument modifiers array is always assumed to be Thus transformation Subsequent work should be done, introducing a proper schema for this case e.g by adding some extra node as discussed in bblfsh/sdk#361 |
In Semantic mode, a function that has arguments is of type "java:MethodDeclaration" and if it does not have arguments, its type is "uast:FunctionGroup"
Code:
As per #104 (comment)
Initial code reproducing this is in details.
Once fixed, this should be added to the integration tests.
The text was updated successfully, but these errors were encountered: