Issue #18435: Remove emptyforinitializerpad Example2 from XdocsExampl…#18505
Conversation
There was a problem hiding this comment.
https://www.diffchecker.com/vr99pJo2/
please keep all numbers and spaces be same.
only comments location and content should be in diff.
|
@smita1078 , do you see a reason why diff checking did not detect different numbers. |
I didn't get it? Are u asking about the |
|
@smita1078 , yes. There is different digit in for loop , and test is not failing. |
e3a98cd to
7b796c7
Compare
Currently The test only compares token types and structure, not literal values. So i < 1 and i < 2 have identical AST structure (between xdoc --start and xdoc --end) from this test's perspective. |
|
@smita1078, please create issue, this is good point to improve. |
bae7cb4 to
330167c
Compare
Sure will do! |
|
@romani, |
|
|
@ZaheerAhmadDev, please share web diff in PR description, as I did |
| for (; i < 2; i++ ) { }; // violation '';' is not preceded with whitespace' | ||
| for (;i<2;i++) { }; // violation '';' is not preceded with whitespace' | ||
| for ( ;i<2;i++) { }; | ||
| for ( ; i < 1; i++ ); |
There was a problem hiding this comment.
Please use 2 to let FOR to look kind of same in all lines
330167c to
f0fa6af
Compare
|
GitHub, generate website |
|
@ZaheerAhmadDev , please do #18505 (comment) |
|
@romani |
|
Make it like #18505 (review) |
ZaheerAhmadDev
left a comment
There was a problem hiding this comment.
Numbers and spacing in Example2 and Example1 are both same.
Comments remain to explain violations.
|
I don't know how else hint you that I need picture of diff , same as I did |
|
Compare example1 vs example2 |
|
https://www.diffchecker.com/kS03ZKeN/ |
f0fa6af to
dc1f0c6
Compare
|
@romani, please review this PR and let me know if any other changes are required. |
…docsExamplesAstConsistencyTest
dc1f0c6 to
d82988c
Compare
@romani ,
|
|
All good thanks a lot |


Issue #18435:
Remove emptyforinitializerpad Example2 from XdocsExamplesAstConsistencyTest.
Update Example 2 to match Example 1 Ast.
https://www.diffchecker.com/kS03ZKeN/

Both Example2 and Example1 have same numbers and spacing.