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 1
1
const string DoubleSlashCommentPrefix = "// " ;
2
- const string TripleSlashCommentPrefix = "/// " ;
2
+ const string TripleSlashCommentPrefix = "///" ;
3
3
const string SummaryStart = "/// <summary>" ;
4
4
const string SummaryEnd = "/// </summary>" ;
5
5
const string FileFilter = "*.cs" ;
6
6
7
+ var commentStarts = new HashSet < string > { DoubleSlashCommentPrefix , TripleSlashCommentPrefix } ;
7
8
var repoRoot = Directory . GetCurrentDirectory ( ) ;
8
9
9
10
#if DEBUG
14
15
15
16
// Tests: B2BodySim, B2World, B2WorldId
16
17
var files = Directory . GetFiles ( folderPath , FileFilter , SearchOption . AllDirectories )
17
- //.Where(w => w.Contains("B2WorldId "))
18
+ //.Where(w => w.Contains("B2PrismaticJointDef "))
18
19
//.Take(50)
19
20
. ToList ( ) ;
20
21
@@ -110,10 +111,8 @@ void AddBlockIfFollowedByPublic(int startIndex, int endIndex)
110
111
}
111
112
}
112
113
113
- static List < int > ExtractCommentLineIndexes ( List < string > lines )
114
+ List < int > ExtractCommentLineIndexes ( List < string > lines )
114
115
{
115
- HashSet < string > commentStarts = [ DoubleSlashCommentPrefix , TripleSlashCommentPrefix ] ;
116
-
117
116
return lines
118
117
. Select ( ( line , index ) => ( line , index ) )
119
118
. Where ( item => commentStarts . Any ( commentStart =>
You can’t perform that action at this time.
0 commit comments