@@ -46,6 +46,7 @@ import org.scalatest.matchers.AMatcher
46
46
import org.scalatest.matchers.AnMatcher
47
47
import org.scalatest.matchers.MatchPatternMacro
48
48
import org.scalatest.matchers.TypeMatcherMacro
49
+ import org.scalatest.matchers.MatchPatternHelper
49
50
import org.scalatest.matchers.dsl.FullyMatchWord
50
51
import org.scalatest.matchers.dsl.StartWithWord
51
52
import org.scalatest.matchers.dsl.EndWithWord
@@ -2868,7 +2869,6 @@ object MatcherFactory$arity$ {
2868
2869
2869
2870
import scala.language.implicitConversions
2870
2871
import scala.quoted._
2871
- import scala.tasty._
2872
2872
2873
2873
/**
2874
2874
* Converts a <code>MatcherFactory$arity$</code> to a <code>Matcher</code>.
@@ -2882,7 +2882,7 @@ object MatcherFactory$arity$ {
2882
2882
/**
2883
2883
* This method is called by macro that supports 'and not a [Type]' syntax.
2884
2884
*/
2885
- def andNotATypeMatcherFactory$arity$[SC: Type, $typeConstructors$](self: Expr[MatcherFactory$arity$[SC & AnyRef, $commaSeparatedTCNs$]#AndNotWord], aType: Expr[ResultOfATypeInvocation[_]])(implicit refl: Reflection , $typeConstructorsWithType$): Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] = {
2885
+ def andNotATypeMatcherFactory$arity$[SC: Type, $typeConstructors$](self: Expr[MatcherFactory$arity$[SC & AnyRef, $commaSeparatedTCNs$]#AndNotWord], aType: Expr[ResultOfATypeInvocation[_]])(implicit qctx: QuoteContext , $typeConstructorsWithType$): Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] = {
2886
2886
val rhs = TypeMatcherMacro.notATypeMatcher(aType)
2887
2887
2888
2888
'{ (\$self).owner.and(\$rhs) }
@@ -2891,33 +2891,33 @@ object MatcherFactory$arity$ {
2891
2891
/**
2892
2892
* This method is called by macro that supports 'or not a [Type]' syntax.
2893
2893
*/
2894
- def orNotATypeMatcherFactory$arity$[SC: Type, $typeConstructors$](self: Expr[MatcherFactory$arity$[SC & AnyRef, $commaSeparatedTCNs$]#OrNotWord], aType: Expr[ResultOfATypeInvocation[_]])(implicit refl: Reflection , $typeConstructorsWithType$): Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] = {
2894
+ def orNotATypeMatcherFactory$arity$[SC: Type, $typeConstructors$](self: Expr[MatcherFactory$arity$[SC & AnyRef, $commaSeparatedTCNs$]#OrNotWord], aType: Expr[ResultOfATypeInvocation[_]])(implicit qctx: QuoteContext , $typeConstructorsWithType$): Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] = {
2895
2895
val rhs = TypeMatcherMacro.notATypeMatcher(aType)
2896
2896
'{ (\$self).owner.or(\$rhs) }
2897
2897
}
2898
2898
2899
2899
/**
2900
2900
* This method is called by macro that supports 'and not a [Type]' syntax.
2901
2901
*/
2902
- def andNotAnTypeMatcherFactory$arity$[SC: Type, $typeConstructors$](self: Expr[MatcherFactory$arity$[SC & AnyRef, $commaSeparatedTCNs$]#AndNotWord], anType: Expr[ResultOfAnTypeInvocation[_]])(implicit refl: Reflection , $typeConstructorsWithType$): Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] = {
2902
+ def andNotAnTypeMatcherFactory$arity$[SC: Type, $typeConstructors$](self: Expr[MatcherFactory$arity$[SC & AnyRef, $commaSeparatedTCNs$]#AndNotWord], anType: Expr[ResultOfAnTypeInvocation[_]])(implicit qctx: QuoteContext , $typeConstructorsWithType$): Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] = {
2903
2903
val rhs = TypeMatcherMacro.notAnTypeMatcher(anType)
2904
2904
'{ (\$self).owner.and(\$rhs) }
2905
2905
}
2906
2906
2907
2907
/**
2908
2908
* This method is called by macro that supports 'or not a [Type]' syntax.
2909
2909
*/
2910
- def orNotAnTypeMatcherFactory$arity$[SC: Type, $typeConstructors$](self: Expr[MatcherFactory$arity$[SC & AnyRef, $commaSeparatedTCNs$]#OrNotWord], anType: Expr[ResultOfAnTypeInvocation[_]])(implicit refl: Reflection , $typeConstructorsWithType$): Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] = {
2910
+ def orNotAnTypeMatcherFactory$arity$[SC: Type, $typeConstructors$](self: Expr[MatcherFactory$arity$[SC & AnyRef, $commaSeparatedTCNs$]#OrNotWord], anType: Expr[ResultOfAnTypeInvocation[_]])(implicit qctx: QuoteContext , $typeConstructorsWithType$): Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] = {
2911
2911
val rhs = TypeMatcherMacro.notAnTypeMatcher(anType)
2912
2912
'{ (\$self).owner.or(\$rhs) }
2913
2913
}
2914
2914
2915
- def andNotMatchPattern[SC: Type, $typeConstructors$](self: Expr[MatcherFactory$arity$[SC & AnyRef, $commaSeparatedTCNs$]#AndNotWord], right: Expr[PartialFunction[Any, _]])(implicit refl: Reflection , $typeConstructorsWithType$): Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] = {
2915
+ def andNotMatchPattern[SC: Type, $typeConstructors$](self: Expr[MatcherFactory$arity$[SC & AnyRef, $commaSeparatedTCNs$]#AndNotWord], right: Expr[PartialFunction[Any, _]])(implicit qctx: QuoteContext , $typeConstructorsWithType$): Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] = {
2916
2916
val notMatcher = '{ MatchPatternHelper.notMatchPatternMatcher(\$right) }
2917
2917
'{ (\$self).owner.and(\$notMatcher) }
2918
2918
}
2919
2919
2920
- def orNotMatchPattern[SC: Type, $typeConstructors$](self: Expr[MatcherFactory$arity$[SC & AnyRef, $commaSeparatedTCNs$]#OrNotWord], right: Expr[PartialFunction[Any, _]])(implicit refl: Reflection , $typeConstructorsWithType$): Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] = {
2920
+ def orNotMatchPattern[SC: Type, $typeConstructors$](self: Expr[MatcherFactory$arity$[SC & AnyRef, $commaSeparatedTCNs$]#OrNotWord], right: Expr[PartialFunction[Any, _]])(implicit qctx: QuoteContext , $typeConstructorsWithType$): Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] = {
2921
2921
val notMatcher = '{ MatchPatternHelper.notMatchPatternMatcher(\$right) }
2922
2922
'{ (\$self).owner.or(\$notMatcher) }
2923
2923
}
0 commit comments