Lines 316-319
Link Here
|
316 |
expectedFullWithStatementRecoveryUnitToString, |
316 |
expectedFullWithStatementRecoveryUnitToString, |
317 |
testName); |
317 |
testName); |
318 |
} |
318 |
} |
|
|
319 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=211180 |
320 |
public void test0002() { |
321 |
|
322 |
String s = |
323 |
"package a; \n" |
324 |
+ "public class X { \n" |
325 |
+ " void foo() { \n" |
326 |
+ " # \n" |
327 |
+ " @MyAnnot(value=) \n" |
328 |
+ " int i; ` \n" |
329 |
+ " } \n" |
330 |
+ "} \n"; |
331 |
|
332 |
String expectedDietUnitToString = |
333 |
"package a;\n" + |
334 |
"public class X {\n" + |
335 |
" public X() {\n" + |
336 |
" }\n" + |
337 |
" void foo() {\n" + |
338 |
" }\n" + |
339 |
"}\n"; |
340 |
|
341 |
String expectedDietWithStatementRecoveryUnitToString = |
342 |
expectedDietUnitToString; |
343 |
|
344 |
String expectedDietPlusBodyUnitToString = |
345 |
"package a;\n" + |
346 |
"public class X {\n" + |
347 |
" public X() {\n" + |
348 |
" super();\n" + |
349 |
" }\n" + |
350 |
" void foo() {\n" + |
351 |
" }\n" + |
352 |
"}\n"; |
353 |
|
354 |
String expectedDietPlusBodyWithStatementRecoveryUnitToString = |
355 |
"package a;\n" + |
356 |
"public class X {\n" + |
357 |
" public X() {\n" + |
358 |
" super();\n" + |
359 |
" }\n" + |
360 |
" void foo() {\n" + |
361 |
" @MyAnnot(value = $missing$) int i;\n" + |
362 |
" }\n" + |
363 |
"}\n"; |
364 |
|
365 |
String expectedFullUnitToString = |
366 |
expectedDietUnitToString; |
367 |
|
368 |
String expectedFullWithStatementRecoveryUnitToString = |
369 |
expectedFullUnitToString; |
370 |
|
371 |
String testName = "<test>"; |
372 |
checkParse( |
373 |
s.toCharArray(), |
374 |
expectedDietUnitToString, |
375 |
expectedDietWithStatementRecoveryUnitToString, |
376 |
expectedDietPlusBodyUnitToString, |
377 |
expectedDietPlusBodyWithStatementRecoveryUnitToString, |
378 |
expectedFullUnitToString, |
379 |
expectedFullWithStatementRecoveryUnitToString, |
380 |
testName); |
381 |
} |
319 |
} |
382 |
} |