public static IMethodInfo CreateFrom(IMethodSymbol method, Compilation compilation)
        {
            method.EnsureNotError();

            return(method switch
            {
                _ when method.TypeArguments.Any() => new SymbolGenericMethodInfo(method, compilation),
                _ => new SymbolMethodInfo(method, compilation)
            });
Exemple #2
0
        public static IParameterInfo CreateFrom(IMethodSymbol method, Compilation compilation)
        {
            method.EnsureNotError();

            return(new SymbolReturnParameterInfo(method, compilation));
        }