-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
chore(compile-core): removed the optional tag parameter from condenseWhitespace's signature #13437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe updates modify function signatures in two files. The Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (5)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Size ReportBundles
Usages
|
@vue/compiler-core
@vue/compiler-dom
@vue/compiler-sfc
@vue/compiler-ssr
@vue/reactivity
@vue/runtime-core
@vue/runtime-dom
@vue/server-renderer
@vue/shared
vue
@vue/compat
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
packages/compiler-core/src/transforms/vFor.ts (1)
266-266
: Improve type clarity by usingundefined
instead ofvoid
.The explicit return type annotation is a good improvement for clarity. However, consider using
undefined
instead ofvoid
in the union type for better clarity.Apply this diff to improve type clarity:
-): void | (() => void) { +): undefined | (() => void) {This follows the static analysis recommendation and makes the union type more explicit about what the function can return.
🧰 Tools
🪛 Biome (1.9.4)
[error] 266-266: void is confusing inside a union type.
Unsafe fix: Use undefined instead.
(lint/suspicious/noConfusingVoidType)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
packages/compiler-core/src/parser.ts
(2 hunks)packages/compiler-core/src/transforms/vFor.ts
(1 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
packages/compiler-core/src/parser.ts (1)
packages/compiler-core/src/ast.ts (1)
TemplateChildNode
(93-102)
🪛 Biome (1.9.4)
packages/compiler-core/src/transforms/vFor.ts
[error] 266-266: void is confusing inside a union type.
Unsafe fix: Use undefined instead.
(lint/suspicious/noConfusingVoidType)
⏰ Context from checks skipped due to timeout of 90000ms (5)
- GitHub Check: Redirect rules
- GitHub Check: test / e2e-test
- GitHub Check: test / unit-test-windows
- GitHub Check: Header rules
- GitHub Check: Pages changed
🔇 Additional comments (2)
packages/compiler-core/src/parser.ts (2)
650-650
: LGTM: Function call updated correctly.The removal of the
tag
parameter from thecondenseWhitespace
call is consistent with the function signature change.
835-835
: Good cleanup: Removed unused parameter.The
tag
parameter was not being used in the function implementation, so removing it improves the function signature clarity and eliminates unnecessary parameters.
95d7189
to
fe1333f
Compare
processFor
Ts type optcondenseWhitespace
tag
paramSummary by CodeRabbit