+
+ @Override
+ public void inline(SSASimplificationContext context, LetApply apply) {
+ ValRef[] parameters = apply.getParameters();
+ if(parameters.length == 2) {
+ parameters[1].remove();
+ apply.setParameters(Arrays.copyOf(parameters, 1));
+ }
+ ValRef oldFunc = apply.getFunction();
+ apply.setFunction(TypeValueConstant.INSTANCE.createOccurrence(oldFunc.getTypeParameters()));
+ oldFunc.remove();
+ context.markModified("inline-typeOf");
+ }