Skip to content

Conversation

@ash-t-luu
Copy link
Contributor

Overview

Issue Type

  • Bug
  • Feature
  • Tech Debt

Description
Wrote a function getCallee that checks each file node and determines if hooks are utilized in the file, which returns a boolean and changes the value of the isClientComponent key on the tree node object.

Ticket Item
RL-23 - Determine if a node is a server or client component type in parser

Previous behavior
Did not have the functionality to determine client/server component type for each file.

Expected behavior
Now it has functionality for checking the type and assigning a property on each tree node to a boolean based on the result of the function getCallee.

Copy link
Contributor

@Ponch49 Ponch49 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Ponch49 Ponch49 merged commit 7d132fc into dev Dec 2, 2023
ash-t-luu added a commit that referenced this pull request Jan 29, 2024
… updated babel/parser, took out comments in test files, added paths to exclude complie in tsconfig, note: test 14 is not fully working
ash-t-luu added a commit that referenced this pull request Feb 2, 2024
ash-t-luu added a commit that referenced this pull request Feb 3, 2024
…testing for #11-14, changed logic in parser to account for all function declarations
@ash-t-luu ash-t-luu mentioned this pull request Feb 3, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants