Skip to content

Commit 0fe400c

Browse files
committed
linter fixes
1 parent bb25770 commit 0fe400c

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

src/inputStructure.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,8 @@ const inputStructure = (tokens) => {
108108
break;
109109
case 'class_constructor':
110110
prefillClass(structure, token.class_name);
111-
const c = comment(tokens, index);
112-
structure.classes[token.class_name].constructor = attachClassConstructorComment(token, c);
113-
structure.classes[token.class_name].comment = c || undefined;
111+
structure.classes[token.class_name].constructor = attachClassConstructorComment(token, comment(tokens, index));
112+
structure.classes[token.class_name].comment = comment(tokens, index) || undefined;
114113
break;
115114
case 'class_method':
116115
prefillClass(structure, token.class_name);

src/inputTokens.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ const single_line_comment_matcher = (tokens, line) => {
126126
};
127127

128128
const multiline_comment_begin_matcher = (tokens, line) => {
129-
const expr = /^\/\*[\*!]\s*$/;
129+
const expr = /^\/\*[*!]\s*$/;
130130
const match = line.match(expr);
131131

132132
if (match) {

src/outputSource.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const commentSource = (token, br, ts) => {
1+
const commentSource = (token, br) => {
22
let source = '';
33

44
source += `/*!${br}`;
@@ -16,7 +16,7 @@ const commentSource = (token, br, ts) => {
1616
return source;
1717
};
1818

19-
const variableSource = (token, br, ts) => {
19+
const variableSource = (token, br) => {
2020
let source = '';
2121

2222
source += token.comment ? `//! ${token.comment.brief || ''}${br}` : '';
@@ -25,7 +25,7 @@ const variableSource = (token, br, ts) => {
2525
return source;
2626
};
2727

28-
const functionSource = (token, br, ts) => {
28+
const functionSource = (token, br) => {
2929
let source = '';
3030

3131
source += token.comment ? commentSource(token.comment, br) : '';

0 commit comments

Comments
 (0)