Skip to content

[WIP] Refactor utilities ast file structure based on naming pattern - #1368

Closed
Rel1cx with Copilot wants to merge 1 commit into
mainfrom
copilot/refactor-utilities-ast-file-structure
Closed

[WIP] Refactor utilities ast file structure based on naming pattern#1368
Rel1cx with Copilot wants to merge 1 commit into
mainfrom
copilot/refactor-utilities-ast-file-structure

Conversation

Copilot AI commented Dec 31, 2025

Copy link
Copy Markdown
Contributor

Reorganize AST file structure following component naming pattern

Analysis Complete

  • Analyze packages/core/src/component naming pattern
  • Analyze current packages/utilities/ast/src structure
  • Understand the import pattern (namespace imports won't break)
  • Identify renaming strategy

Planned Changes

Following the pattern in packages/core/src/component where all files are prefixed with component-, the AST files should follow a consistent naming pattern with node- as the base prefix:

Files to rename:

  • array-index.tsnode-array-index.ts
  • array-method.tsnode-array-method.ts
  • class-id.tsnode-class-id.ts
  • expression-base.tsnode-expression-base.ts
  • expression-is.tsnode-expression-is.ts
  • expression-nested.tsnode-expression-nested.ts
  • function-id.tsnode-function-id.ts
  • function-init-path.tsnode-function-init-path.ts
  • function-is.tsnode-function-is.ts
  • property-name.tsnode-property-name.ts
  • literal.tsnode-literal.ts
  • misc.tsnode-misc.ts
  • traverse.tsnode-traverse.ts
  • process-env-node-env.tsnode-process-env-node-env.ts
  • vitest-mock.tsnode-vitest-mock.ts

Files already following pattern (no changes):

  • node-equal.ts
  • node-format.ts
  • node-is.ts
  • node-selectors.ts
  • node-types.ts

Implementation Steps

  • Rename all files
  • Update imports in the renamed files
  • Update index.ts exports
  • Update test files
  • Run build and tests
  • Verify no external imports are broken
Original prompt

根据 packages/core/src/component 下 file structure 的命名 pattern 重新梳理 packages/utilities/ast/src 下的 file structure


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@vercel

vercel Bot commented Dec 31, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
eslint-react Ready Ready Preview, Comment Dec 31, 2025 10:46am

@Rel1cx Rel1cx closed this Dec 31, 2025
Copilot AI requested a review from Rel1cx December 31, 2025 10:48
@Rel1cx
Rel1cx deleted the copilot/refactor-utilities-ast-file-structure branch December 31, 2025 10:58
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.

2 participants