feersum icon indicating copy to clipboard operation
feersum copied to clipboard

Remove ParentEnvironment from EmitCtx

Open iwillspeak opened this issue 3 years ago • 0 comments

Only make instance methods on the environment iff the parent is captured.

The current emit context keeps track of the parent context to handle the case where the current method doesn't have an environment but the parent method does. In that case we still currently emit the method as an instance method on the parent's environment. There doesn't seem to be a need to do so however. instead we could emit it as a static metod on the current library type.

iwillspeak avatar Nov 20 '21 13:11 iwillspeak