Skip to content

Commit

Permalink
Mention array support for onComment in source comment
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Sep 4, 2023
1 parent 389bcde commit 7fb1ee7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions acorn/src/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ export const defaultOptions = {
// passed, the full `{line, column}` locations of the start and
// end of the comments. Note that you are not allowed to call the
// parser from the callback—that will corrupt its internal state.
// When this option has an array as value, objects representing the
// comments are pushed to it.
onComment: null,
// Nodes have their start and end characters offsets recorded in
// `start` and `end` properties (directly on the node, rather than
Expand Down

0 comments on commit 7fb1ee7

Please sign in to comment.