Skip to content

Commit

Permalink
feat(okidoc-md): improve @doc tag visitor warn log
Browse files Browse the repository at this point in the history
  • Loading branch information
bodia-uz committed Apr 20, 2018
1 parent 4901b46 commit be85dd7
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function createApiVisitor(docTag, enter) {
console.warn(
`${leftPath.type} = ${
rightPath.type
} is currently not supported by okidoc-md`,
} is currently not supported by okidoc-md @doc tag visitor`,
);
}

Expand Down Expand Up @@ -87,7 +87,9 @@ function createApiVisitor(docTag, enter) {
// TODO: add logic for 'var', 'let', 'constant', ...

console.warn(
`${variableDeclaratorInit.type} is currently not supported by okidoc-md`,
`${
variableDeclaratorInit.type
} is currently not supported by okidoc-md @doc tag visitor`,
);
}

Expand Down Expand Up @@ -135,7 +137,9 @@ function createApiVisitor(docTag, enter) {
// TODO: add logic for other node types

console.warn(
`${declarationPath.type} is currently not supported by okidoc-md`,
`${
declarationPath.type
} is currently not supported by okidoc-md @doc tag visitor`,
);
},
VariableDeclaration(path) {
Expand Down

0 comments on commit be85dd7

Please sign in to comment.