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

extractSelf convenience helper #2232

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,10 @@
addOp(SubcontextInstruction.SetExtractor(f))(toSame)
}

final def extractSelf(implicit t: Tag[T]): Self = {
addOp(SubcontextInstruction.SetExtractor(Functoid.identity[T]))(toSame)

Check warning on line 359 in distage/distage-core-api/src/main/scala/izumi/distage/model/definition/dsl/AbstractBindingDefDSL.scala

View check run for this annotation

Codecov / codecov/patch

distage/distage-core-api/src/main/scala/izumi/distage/model/definition/dsl/AbstractBindingDefDSL.scala#L359

Added line #L359 was not covered by tests
}

final def localDependency[B: Tag]: Self = {
localDependency(DIKey[B])
}
Expand Down
Loading