Skip to content

Commit

Permalink
refactor: rename @jsdoc/parse to @jsdoc/ast
Browse files Browse the repository at this point in the history
To prevent circular dependencies with `@jsdoc/doclet` in the near future.
  • Loading branch information
hegemonic committed Jan 16, 2023
1 parent 913f884 commit 59ecaa1
Show file tree
Hide file tree
Showing 26 changed files with 1,308 additions and 83 deletions.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions packages/jsdoc-ast/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `@jsdoc/ast`

JSDoc tools for working with abstract syntax trees (ASTs).
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
limitations under the License.
*/
// TODO: docs
/** @module @jsdoc/parse.astNode */
const _ = require('lodash');
const { cast } = require('@jsdoc/util');
const { SCOPE } = require('@jsdoc/core').name;
Expand All @@ -26,7 +25,6 @@ let uid = 100000000;
/**
* Check whether an AST node represents a function.
*
* @alias module:@jsdoc/parse.astNode.isFunction
* @param {(Object|string)} node - The AST node to check, or the `type` property of a node.
* @return {boolean} Set to `true` if the node is a function or `false` in all other cases.
*/
Expand Down Expand Up @@ -54,7 +52,6 @@ const isFunction = (exports.isFunction = (node) => {
/**
* Check whether an AST node creates a new scope.
*
* @alias module:@jsdoc/parse.astNode.isScope
* @param {Object} node - The AST node to check.
* @return {Boolean} Set to `true` if the node creates a new scope, or `false` in all other cases.
*/
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 59ecaa1

Please sign in to comment.