Skip to content
Open
Show file tree
Hide file tree
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
14 changes: 13 additions & 1 deletion core/src/main/scala-3/chisel3/properties/ObjectIntf.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

package chisel3.properties

import chisel3.experimental.SourceInfo

private[chisel3] trait DynamicObjectObjIntf { self: DynamicObject.type =>
// TODO implement

/** A wrapper method to wrap Class instantiations and return a DynamicObject.
*
* This is necessary to help Chisel track internal state. This can be used instead of `Definition.apply` if a
* DynamicObject is required. If possible, it is safer to user `Definition.apply` and StaticObject.
*
* @param bc the Class being created
*
* @return a DynamicObject representing an instance of the Class
*/
def apply[T <: Class](bc: => T)(using SourceInfo): DynamicObject = _applyImpl(bc)
}
Loading