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) });
public static IParameterInfo CreateFrom(IMethodSymbol method, Compilation compilation) { method.EnsureNotError(); return(new SymbolReturnParameterInfo(method, compilation)); }