Skip to content

Commit 93f6095

Browse files
committed
Remove do-apply pattern from Definition and Instance
1 parent 64febee commit 93f6095

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/scala/chisel3/experimental/hierarchy/InstantiateImpl.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private[chisel3] trait InstantiateImpl {
8181
tt: Any
8282
)(
8383
implicit sourceInfo: SourceInfo
84-
): Instance[A] = Instance.do_apply(_definitionImpl(args, f, tt))(sourceInfo)
84+
): Instance[A] = Instance.apply(_definitionImpl(args, f, tt))(sourceInfo)
8585

8686
/** This is not part of the public API, do not call directly! */
8787
protected def _definitionImpl[K, A <: BaseModule](
@@ -95,7 +95,7 @@ private[chisel3] trait InstantiateImpl {
9595
CacheKey[A](boxAllData(args), tt, modulePrefix), {
9696
// The definition needs to have no source locator because otherwise it will be unstably
9797
// derived from the first invocation of Instantiate for the particular Module
98-
Definition.do_apply(f(args))(UnlocatableSourceInfo)
98+
Definition.apply(f(args))(UnlocatableSourceInfo)
9999
}
100100
)
101101
.asInstanceOf[Definition[A]]

0 commit comments

Comments
 (0)