Skip to content
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

Put effects in biblio #426

Merged
merged 4 commits into from
Mar 31, 2022
Merged

Put effects in biblio #426

merged 4 commits into from
Mar 31, 2022

Conversation

bakkot
Copy link
Contributor

@bakkot bakkot commented Mar 27, 2022

Based on #425.

This makes the effects (right now, just "user code") be present in the exported biblio, for the benefit of other tooling and so that proposals can get the [UC] annotation.

However, because this requires additional work on behalf of consumers for the rendering to be accurate (namely, explicitly marking any roots of user code in their own text), this PR also makes the rendering opt-in. This is therefore a breaking change (because 262 will need to opt in to get its current behavior).

if (entry.type === 'op' && entry.effects?.length > 0) {
this._effectfulAOs.set(entry.aoid, entry.effects);
for (const effect of entry.effects) {
if (!this._effectWorklist.has(effect)) {
Copy link
Member

Choose a reason for hiding this comment

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

We really need a MultiMap...

Base automatically changed from better-exported-biblio to main March 31, 2022 01:57
@bakkot bakkot force-pushed the effects-in-biblio branch from 8bfb0ea to 3fe9162 Compare March 31, 2022 01:58
@bakkot bakkot merged commit df40811 into main Mar 31, 2022
@bakkot bakkot deleted the effects-in-biblio branch March 31, 2022 02:03
@bakkot bakkot mentioned this pull request Apr 1, 2022
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