Skip to content

Remove ParentEnvironment from EmitCtx #51

@iwillspeak

Description

@iwillspeak

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.

Metadata

Metadata

Labels

featureNew feature or requestup for grabsShout out and claim this issue

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions