File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 11const string DoubleSlashCommentPrefix = "// " ;
2- const string TripleSlashCommentPrefix = "/// " ;
2+ const string TripleSlashCommentPrefix = "///" ;
33const string SummaryStart = "/// <summary>" ;
44const string SummaryEnd = "/// </summary>" ;
55const string FileFilter = "*.cs" ;
66
7+ var commentStarts = new HashSet < string > { DoubleSlashCommentPrefix , TripleSlashCommentPrefix } ;
78var repoRoot = Directory . GetCurrentDirectory ( ) ;
89
910#if DEBUG
1415
1516// Tests: B2BodySim, B2World, B2WorldId
1617var files = Directory . GetFiles ( folderPath , FileFilter , SearchOption . AllDirectories )
17- //.Where(w => w.Contains("B2WorldId "))
18+ //.Where(w => w.Contains("B2PrismaticJointDef "))
1819 //.Take(50)
1920 . ToList ( ) ;
2021
@@ -110,10 +111,8 @@ void AddBlockIfFollowedByPublic(int startIndex, int endIndex)
110111 }
111112}
112113
113- static List < int > ExtractCommentLineIndexes ( List < string > lines )
114+ List < int > ExtractCommentLineIndexes ( List < string > lines )
114115{
115- HashSet < string > commentStarts = [ DoubleSlashCommentPrefix , TripleSlashCommentPrefix ] ;
116-
117116 return lines
118117 . Select ( ( line , index ) => ( line , index ) )
119118 . Where ( item => commentStarts . Any ( commentStart =>
You can’t perform that action at this time.
0 commit comments