Skip to content

Conversation

@fpvandoorn
Copy link
Member

Part of #34846.


Open in Gitpod

@github-actions github-actions bot added the t-meta Tactics, attributes or user commands label Feb 11, 2026
@github-actions
Copy link

PR summary 4071ce7432

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

No declarations were harmed in the making of this PR! 🐙

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

-- if this declaration is not `pre` and not an internal declaration, we return an error,
-- since we should have already translated this declaration.
if src != pre && !src.isInternalDetail then
throwError "The declaration {pre} depends on the declaration {src} which is in the namespace \
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not also use .ofConstname for pre?

if res == src then
throwError "{t.attrName}: the generated translated name equals the original name '{src}'.\n\
throwError "{t.attrName}: the generated translated name equals the original name \
'{.ofConstName src}'.\n\
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
'{.ofConstName src}'.\n\
`{.ofConstName src}`.\n\

Let's take this opportunity to use back-ticks. The advantage of backtics is that they cannot be part of declaration names, while ' can.

Arguably, we should consistently do this in the whole file.

unless srcDecl.levelParams.length == tgtDecl.levelParams.length do
throwError "`{t.attrName}` validation failed:\n expected {srcDecl.levelParams.length} \
universe levels, but '{tgt}' has {tgtDecl.levelParams.length} universe levels"
universe levels, but '{.ofConstName tgt}' has {tgtDecl.levelParams.length} \
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
universe levels, but '{.ofConstName tgt}' has {tgtDecl.levelParams.length} \
universe levels, but `{.ofConstName tgt}` has {tgtDecl.levelParams.length} \

throwError "`{t.attrName}` validation failed: expected{indentExpr srcType}\nbut '{tgt}' has \
type{indentExpr tgtType}"
throwError "`{t.attrName}` validation failed: expected{indentExpr srcType}\n\
but '{.ofConstName tgt}' has type{indentExpr tgtType}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
but '{.ofConstName tgt}' has type{indentExpr tgtType}"
but `{.ofConstName tgt}` has type{indentExpr tgtType}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-meta Tactics, attributes or user commands

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants