Exemplo n.º 1
0
        private IAstTypeReference RemapArgumentTypesForFunction(AstSpecifiedFunctionType function, Func <IAstTypeReference, IAstTypeReference> remap)
        {
            var parameterTypes = function.ParameterTypes;
            var remapped       = RemapAll(parameterTypes, remap);

            var newReturnType = remap(function.ReturnType);
            var changed       = remapped.Item2 || newReturnType != function.ReturnType;

            return(!changed ? function : new AstSpecifiedFunctionType(remapped.Item1, newReturnType));
        }
Exemplo n.º 2
0
 protected virtual void AppendSpecifiedFunctionType(StringBuilder builder, AstSpecifiedFunctionType specifiedFunctionType)
 {
     builder.Append(specifiedFunctionType);
 }