punchDownToTyped method

InterfaceReference<InterfaceType> punchDownToTyped(
  1. BridgeModule subModule, {
  2. String? newIntfName,
  3. bool allowNameUniquification = false,
  4. String portUniquify(
    1. String logical
    )?,
})

Creates a type-preserving copy of this interface in a submodule.

Unlike punchDownTo, this method does not accept port exclusions because removing ports changes the concrete interface type.

Implementation

InterfaceReference<InterfaceType> punchDownToTyped(
  BridgeModule subModule, {
  String? newIntfName,
  bool allowNameUniquification = false,
  String Function(String logical)? portUniquify,
}) =>
    _punchDownTo(
      subModule,
      interface.clone() as InterfaceType,
      newIntfName: newIntfName,
      allowNameUniquification: allowNameUniquification,
      exceptPorts: null,
      portUniquify: portUniquify,
    );