createBindContext function

Expression createBindContext(
  1. ServerParam param
)

Implementation

Expression createBindContext(ServerParam param) {
  return refer((BindContextImpl).name).newInstanceNamed(
    'from',
    [
      refer('context'),
    ],
    {
      'nameOfParameter': literalString(param.name),
      'parameterType': refer(param.type),
    },
  );
}