Lines 12233-12238
Link Here
|
12233 |
"vUnknown[VARIABLE_DECLARATION]{vUnknown, null, I, vUnknown, null, "+(R_DEFAULT + R_INTERESTING + R_NAME_FIRST_SUFFIX + R_NAME_FIRST_PREFIX + R_NAME_LESS_NEW_CHARACTERS + R_CASE + R_NON_RESTRICTED)+"}", |
12233 |
"vUnknown[VARIABLE_DECLARATION]{vUnknown, null, I, vUnknown, null, "+(R_DEFAULT + R_INTERESTING + R_NAME_FIRST_SUFFIX + R_NAME_FIRST_PREFIX + R_NAME_LESS_NEW_CHARACTERS + R_CASE + R_NON_RESTRICTED)+"}", |
12234 |
requestor.getResults()); |
12234 |
requestor.getResults()); |
12235 |
} |
12235 |
} |
|
|
12236 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=166570 |
12237 |
public void testCompletionVariableName35() throws JavaModelException { |
12238 |
this.workingCopies = new ICompilationUnit[2]; |
12239 |
this.workingCopies[0] = getWorkingCopy( |
12240 |
"/Completion/src/test/Test.java", |
12241 |
"package test;\n"+ |
12242 |
"public class Test {\n"+ |
12243 |
" void bar() {\n"+ |
12244 |
" Test2 zzz\n"+ |
12245 |
" int zzzzz = 0;\n"+ |
12246 |
" }\n"+ |
12247 |
"}"); |
12248 |
|
12249 |
this.workingCopies[1] = getWorkingCopy( |
12250 |
"/Completion/src/test/Test2.java", |
12251 |
"package test;\n"+ |
12252 |
"public class Test2 {\n"+ |
12253 |
"}"); |
12254 |
|
12255 |
CompletionTestsRequestor2 requestor = new CompletionTestsRequestor2(true); |
12256 |
String str = this.workingCopies[0].getSource(); |
12257 |
String completeBehind = "Test2 zzz"; |
12258 |
int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); |
12259 |
this.workingCopies[0].codeComplete(cursorLocation, requestor, this.wcOwner); |
12260 |
|
12261 |
assertResults( |
12262 |
"zzzTest2[VARIABLE_DECLARATION]{zzzTest2, null, Ltest.Test2;, zzzTest2, null, "+(R_DEFAULT + R_INTERESTING + R_CASE + R_NON_RESTRICTED)+"}", |
12263 |
requestor.getResults()); |
12264 |
} |
12236 |
public void testCompletionVariableName4() throws JavaModelException { |
12265 |
public void testCompletionVariableName4() throws JavaModelException { |
12237 |
this.wc = getWorkingCopy( |
12266 |
this.wc = getWorkingCopy( |
12238 |
"/Completion/src/CompletionVariableName4.java", |
12267 |
"/Completion/src/CompletionVariableName4.java", |