File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,6 @@ Documentation.Class = class {
207
207
member . filterForLanguage ( lang ) ;
208
208
membersArray . push ( member ) ;
209
209
}
210
- this . spec = filterSpecs ( this . spec , lang ) ;
211
210
this . membersArray = membersArray ;
212
211
}
213
212
@@ -341,7 +340,6 @@ Documentation.Member = class {
341
340
argsArray . push ( overriddenArg ) ;
342
341
}
343
342
this . argsArray = argsArray ;
344
- this . spec = filterSpecs ( this . spec , lang ) ;
345
343
}
346
344
347
345
clone ( ) {
@@ -689,16 +687,4 @@ function generateSourceCodeComment(spec) {
689
687
return md . render ( comments , 120 ) ;
690
688
}
691
689
692
- /**
693
- *
694
- * @param {MarkdownNode[] } spec
695
- * @param {string } lang
696
- * @returns {MarkdownNode[] }
697
- */
698
- function filterSpecs ( spec , lang ) {
699
- if ( ! spec )
700
- return ;
701
- return spec . filter ( n => n . type !== 'note' || ( n . type === 'note' && ( ! n . codeLang || n . codeLang === lang ) ) ) ;
702
- }
703
-
704
690
module . exports = Documentation ;
Original file line number Diff line number Diff line change @@ -141,12 +141,10 @@ function buildTree(lines) {
141
141
}
142
142
143
143
if ( content . startsWith ( ':::' ) ) {
144
- let noteType = content . substring ( 3 ) . split ( ' ' ) ;
145
144
/** @type {MarkdownNode } */
146
145
const node = {
147
146
type : 'note' ,
148
- noteType : noteType [ 0 ] ,
149
- codeLang : noteType [ 1 ]
147
+ noteType : content . substring ( 3 )
150
148
} ;
151
149
line = lines [ ++ i ] ;
152
150
const tokens = [ ] ;
You can’t perform that action at this time.
0 commit comments