punchUpToTyped method

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

Creates a type-preserving copy of this interface in a parent module.

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

Implementation

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