(commentDirectives, text, commentDirectiveRegEx, lineStart)
| 11967 | return token; |
| 11968 | } |
| 11969 | function appendIfCommentDirective(commentDirectives, text, commentDirectiveRegEx, lineStart) { |
| 11970 | var type = getDirectiveFromComment(ts.trimStringStart(text), commentDirectiveRegEx); |
| 11971 | if (type === undefined) { |
| 11972 | return commentDirectives; |
| 11973 | } |
| 11974 | return ts.append(commentDirectives, { |
| 11975 | range: { pos: lineStart, end: pos }, |
| 11976 | type: type, |
| 11977 | }); |
| 11978 | } |
| 11979 | function getDirectiveFromComment(text, commentDirectiveRegEx) { |
| 11980 | var match = commentDirectiveRegEx.exec(text); |
| 11981 | if (!match) { |
no test coverage detected
searching dependent graphs…