Skip to content

Commit

Permalink
Reformat NB code comments [nocode]
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Dec 21, 2023
1 parent 8b8e549 commit d3dca21
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/instrument/visitors/assignee.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ function IdentifierVar(node, state) {
/**
* Throw error if is an illegal `const`, `let` or `class` declaration at top level of program,
* where file is CommonJS and var name is a CommonJS var.
* NB This is the only illegal declaration need to check for.
* NB: This is the only illegal declaration need to check for.
* Any other illegal declarations will have thrown an error already in `@babel/parser`.
*
* @param {Object} block - Block object
Expand Down
4 changes: 2 additions & 2 deletions lib/serialize/records.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function createBlock(id, name, parent) {
* The parent may be in a higher block than current scope.
* Block 4, current parentage 2 -> 1, new parent 3 -> 1 => result 4 -> 3 -> 2 -> 1.
*
* NB Block IDs are always higher for more deeply nested blocks.
* NB: Block IDs are always higher for more deeply nested blocks.
* i.e. for `function x() { function y() {} }`, `y` will have higher block ID than `x`.
*
* @param {Object} block - Block object
Expand Down Expand Up @@ -154,7 +154,7 @@ function createScope(id, block, parent) {
/**
* Update parent for existing scope.
* Same logic as `updateBlockParent()` above.
* NB While block IDs are always higher for nested scopes, scope IDs are not necessarily.
* NB: While block IDs are always higher for nested scopes, scope IDs are not necessarily.
* Scope IDs are allocated in order functions are called, which may not correspond to
* the relative nesting of the blocks they sit in.
*
Expand Down
2 changes: 1 addition & 1 deletion lib/serialize/strict.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = {
*
* Try to add 'use strict' directive inside function body. but if this is not possible due to
* function having non-simple params, wrap in an IIFE to make strict.
* NB 'use strict' in function with non-simple params is syntax error.
* NB: 'use strict' in function with non-simple params is syntax error.
*
* Return the wrapped node (or input node if 'use strict' could be added inside function).
*
Expand Down

0 comments on commit d3dca21

Please sign in to comment.