internal UnaryOperatorSymbolWithType AsEnum(TypeSymbol type) { if (this is UnaryOperatorSymbolWithMethod || !type.IsEnum || !Binder.TypesMatch(Type, type.EnumUnderlyingType)) { return(null); } return(new UnaryOperatorSymbolWithType(this, type)); }
internal static bool Matches(this TypeSymbol s, TypeSymbol other) => Binder.TypesMatch(s, other);