Home / Function/ enterNode() — react Function Reference

enterNode() — react Function Reference

Architecture documentation for the enterNode() function in code-path-analyzer.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  d082f1e7_4eef_c1db_f99e_4cfec174190f["enterNode()"]
  879ae635_0722_8285_b0bd_4d1ab153e2e3["CodePathAnalyzer"]
  d082f1e7_4eef_c1db_f99e_4cfec174190f -->|defined in| 879ae635_0722_8285_b0bd_4d1ab153e2e3
  be7612d8_31aa_c40a_35d5_89fd476ab28a["rule.create()"]
  be7612d8_31aa_c40a_35d5_89fd476ab28a -->|calls| d082f1e7_4eef_c1db_f99e_4cfec174190f
  6f68084b_bea2_71c3_ca2d_d9fa72214a6a["preprocess()"]
  d082f1e7_4eef_c1db_f99e_4cfec174190f -->|calls| 6f68084b_bea2_71c3_ca2d_d9fa72214a6a
  161c28ff_1683_8239_7d98_2beab93199f8["processCodePathToEnter()"]
  d082f1e7_4eef_c1db_f99e_4cfec174190f -->|calls| 161c28ff_1683_8239_7d98_2beab93199f8
  style d082f1e7_4eef_c1db_f99e_4cfec174190f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-analyzer.js lines 745–760

  enterNode(node) {
    this.currentNode = node;

    // Updates the code path due to node's position in its parent node.
    if (node.parent) {
      preprocess(this, node);
    }

    /*
     * Updates the code path.
     * And emits onCodePathStart/onCodePathSegmentStart events.
     */
    processCodePathToEnter(this, node);

    this.currentNode = null;
  }

Domain

Subdomains

Called By

Frequently Asked Questions

What does enterNode() do?
enterNode() is a function in the react codebase, defined in packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-analyzer.js.
Where is enterNode() defined?
enterNode() is defined in packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-analyzer.js at line 745.
What does enterNode() call?
enterNode() calls 2 function(s): preprocess, processCodePathToEnter.
What calls enterNode()?
enterNode() is called by 1 function(s): rule.create.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free