Skip to content

Commit 8319d54

Browse files
mickaelistriadatho7561
authored andcommitted
[Search] add support for StrigLiteral in SingleMemberAnnotation
1 parent 4982782 commit 8319d54

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/core/search/PatternLocatorVisitor.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
import org.eclipse.jdt.core.dom.SimpleName;
4949
import org.eclipse.jdt.core.dom.SimpleType;
5050
import org.eclipse.jdt.core.dom.SingleVariableDeclaration;
51+
import org.eclipse.jdt.core.dom.StringLiteral;
5152
import org.eclipse.jdt.core.dom.StructuralPropertyDescriptor;
5253
import org.eclipse.jdt.core.dom.SuperConstructorInvocation;
5354
import org.eclipse.jdt.core.dom.SuperMethodInvocation;
@@ -329,6 +330,11 @@ public boolean visit(NumberLiteral node) {
329330
return true;
330331
}
331332
@Override
333+
public boolean visit(StringLiteral node) {
334+
defaultVisitImplementation(node, (x,y) -> y.match(node, this.nodeSet, this.locator));
335+
return true;
336+
}
337+
@Override
332338
public boolean visit(CharacterLiteral node) {
333339
defaultVisitImplementation(node, (x,y) -> y.match(node, this.nodeSet, this.locator));
334340
return true;

0 commit comments

Comments
 (0)