Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jez
Copy link
Collaborator

@jez jez commented Mar 14, 2022

Motivation

Should unblock work to serve LSP requests from stale data when otherwise it
would have been blocked.

Test plan

Can't really test this yet. We'll likely test in conjunction with #5469.

But that being said, this code is also not used at all yet.

Comment on lines +298 to +303

// TODO(jez) This is weird. Is this the first member on noClassOrModule?
typeMember = enterTypeMember(Loc::none(), Symbols::noClassOrModule(), core::Names::Constants::StubTypeMember(),
Variance::CoVariant);
ENFORCE(typeMember == Symbols::StubTypeMember());

Copy link
Contributor

@aprocter aprocter Mar 14, 2022

Choose a reason for hiding this comment

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

I dimly recall that I had thought about trying to put this on StubModule but it seemed to run afoul of an ENFORCE while building the initial GlobalState---I don't remember exactly where, and I dimly recall thinking that the failing ENFORCE might actually have been a simple sanity check rather than enforcing a relied-upon property.

You might try moving StubTypeMember somewhere that makes more sense---maybe you'll know how to deal with the breakage (if any).

@jez jez force-pushed the jez-stubbing-namer branch from 8c1f515 to 0ae8f26 Compare March 15, 2022 02:19
@jez jez closed this Mar 24, 2022
@jez jez deleted the jez-stubbing-namer branch March 24, 2022 21:40
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.

3 participants