|
Lines 13076-13079
Link Here
|
| 13076 |
"this[KEYWORD]{this, null, null, this, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_NON_INHERITED + R_NON_RESTRICTED) + "}", |
13076 |
"this[KEYWORD]{this, null, null, this, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_NON_INHERITED + R_NON_RESTRICTED) + "}", |
| 13077 |
requestor.getResults()); |
13077 |
requestor.getResults()); |
| 13078 |
} |
13078 |
} |
|
|
13079 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=164311 |
| 13080 |
public void testBug164311() throws JavaModelException { |
| 13081 |
this.workingCopies = new ICompilationUnit[1]; |
| 13082 |
this.workingCopies[0] = getWorkingCopy( |
| 13083 |
"/Completion/src/test/Test.java", |
| 13084 |
"package test;"+ |
| 13085 |
"public class Test {\n" + |
| 13086 |
" public int zzzzzz;\n" + |
| 13087 |
" public void method1() {\n" + |
| 13088 |
" label : if (0> (10));\n" + |
| 13089 |
" zzz\n" + |
| 13090 |
" }\n" + |
| 13091 |
"}\n"); |
| 13092 |
|
| 13093 |
CompletionTestsRequestor2 requestor = new CompletionTestsRequestor2(true); |
| 13094 |
String str = this.workingCopies[0].getSource(); |
| 13095 |
String completeBehind = "zzz"; |
| 13096 |
int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); |
| 13097 |
this.workingCopies[0].codeComplete(cursorLocation, requestor, this.wcOwner); |
| 13098 |
|
| 13099 |
assertResults( |
| 13100 |
"zzzzzz[FIELD_REF]{zzzzzz, Ltest.Test;, I, zzzzzz, null, " + (R_DEFAULT + R_INTERESTING + R_CASE + R_UNQUALIFIED + R_NON_RESTRICTED) + "}", |
| 13101 |
requestor.getResults()); |
| 13102 |
} |
| 13079 |
} |
13103 |
} |