Skip to content

Conversation

tamasvajk
Copy link
Contributor

No description provided.

@tamasvajk tamasvajk marked this pull request as ready for review October 9, 2024 13:20
@tamasvajk tamasvajk requested a review from a team as a code owner October 9, 2024 13:20
* same variable may be referred to from distant places in the IR, so we need a way to find out
* which label is used for a given local variable. This information is stored in this mapping.
*/
private val variableLabelMapping: MutableMap<KtProperty, Label<out DbLocalvar>> =
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add something like // TODO: This should be in a subclass so that DiagnosticTrapWriter doesn't include it, as it is not threadsafe please?

return variableLabelMapping.get(v)
}
*/
fun getExistingVariableLabelFor(v: KtProperty): Label<out DbLocalvar>? {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this can remain commented out with OLD: KE1. I hope we'll be able to remove it once we've reimplemented comment extraction.

parent: Label<out DbExprparent>,
idx: Int,
enclosingStmt: Label<out DbStmt>,
extractInitializer: Boolean = true
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we definitely going to need this in KE2? Should we leave it commented out, or at least add a TODO, if we don't know?

@tamasvajk tamasvajk merged commit 643419a into github:ke2 Oct 10, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants