Merge remote-tracking branch 'origin/master'

This commit is contained in:
Roman Shevchenko
2015-01-07 12:08:45 +01:00
2 changed files with 13 additions and 0 deletions
@@ -55,6 +55,11 @@ public class ExprMatchingStrategy extends MatchingStrategyBase {
result = true;
}
@Override
public void visitPackageStatement(PsiPackageStatement statement) {
result = true;
}
// finding parameters
@Override public void visitParameterList(final PsiParameterList list) {
result = true;
@@ -2451,6 +2451,14 @@ public class StructuralSearchTest extends StructuralSearchTestCase {
"}\n";
assertEquals("Find annotated casts", 1, findMatchesCount(source3, "(@'_A 'Cast) '_Expression"));
assertEquals("Find annotated new expressions", 1, findMatchesCount(source3, "new @'_A 'Type()"));
// package-info.java
final String source4 = "/**\n" +
" * documentation\n" +
" */\n" +
"@Deprecated\n" +
"package one.two;";
assertEquals("Find annotation on package statement", 1, findMatchesCount(source4, "@'_Annotation", true));
}
public void testBoxingAndUnboxing() {