internal static UnaryOperatorSymbolWithMethod Create(UnaryOperatorKind kind, MethodSymbol method, ConversionSymbol conv) { return(new UnaryOperatorSymbolWithMethod(kind, method, conv)); }
internal static bool IsInXSharpRuntime(this MethodSymbol s) => s.Method.DeclaringType.Assembly.IsInXSharpRuntime();
internal UnaryOperatorSymbolWithMethod(UnaryOperatorKind kind, MethodSymbol method, ConversionSymbol conv) : base(kind, OperandType.Error) { Method = method; Conv = conv; }
internal static bool IsEnumeratorGetter(this MethodSymbol s) => s.Parameters.Parameters.Length == 0 && (s.Type.Matches(Compilation.Get(WellKnownTypes.System_Collections_IEnumerator)) || s.Type.DeclaringType.Matches(Compilation.Get(WellKnownTypes.System_Collections_Generic_IEnumerator_T1)));