Skip to content

Commit

Permalink
fix(matching): Ignore modifiers when building method signature (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpedroh authored Jun 9, 2024
1 parent 4fccfbd commit 26dbc22
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
public abstract class Artifact {
public abstract T addChild(final T child) throws IOException;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
public abstract class Artifact {
public abstract T addChild(final T child);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
public abstract class Artifact { public abstract T addChild ( T child ) ; }
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
public abstract class Artifact {
public abstract T addChild(T child);
}
2 changes: 1 addition & 1 deletion matching_handlers/src/java/method_declaration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ fn extract_argument_types_from_formal_parameters(node: &CSTNode) -> Vec<String>
non_terminal
.children
.iter()
.filter(|node| node.kind() != "identifier")
.filter(|node| node.kind() != "modifiers" && node.kind() != "identifier")
.fold(String::new(), |acc, cur| {
format!("{} {}", acc, cur.contents())
}),
Expand Down

0 comments on commit 26dbc22

Please sign in to comment.