void () { String s1 = """ class A { int a; // comment char b; int c; // comment2 }"""; assertEquals("Find field by dcl with comment", 2, findMatchesCount(s1, "'_Type '_Variable = '_Value?; //'Comment")); String s2 = """ class A { // comment int a; char b; // comment2 int c; }"""; assertEquals("Find field by dcl with comment 2", 2, findMatchesCount(s2, "//'Comment\n'_Type '_Variable = '_Value?;")); String s3 = """ // comment class A {} class B {} class C {}"""; assertEquals("Find class with comment", 1, findMatchesCount(s3, "//'_comment\nclass '_X {}")); }