@@ -1126,7 +1126,7 @@ $endif$
1126
1126
* ^
1127
1127
* </pre>
1128
1128
*/
1129
- def be(aType: ResultOfATypeInvocation[_]): MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$] = macro MatcherFactory$arity$.andNotATypeMatcherFactory$arity$[SC, $commaSeparatedTCNs$]
1129
+ def be(aType: ResultOfATypeInvocation[_]): MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$] = ??? // macro MatcherFactory$arity$.andNotATypeMatcherFactory$arity$[SC, $commaSeparatedTCNs$]
1130
1130
1131
1131
/**
1132
1132
* This method enables the following syntax given a <code>MatcherFactory$arity$</code>:
@@ -1136,7 +1136,7 @@ $endif$
1136
1136
* ^
1137
1137
* </pre>
1138
1138
*/
1139
- def be(anType: ResultOfAnTypeInvocation[_]): MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$] = macro MatcherFactory$arity$.andNotAnTypeMatcherFactory$arity$[SC, $commaSeparatedTCNs$]
1139
+ def be(anType: ResultOfAnTypeInvocation[_]): MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$] = ??? // macro MatcherFactory$arity$.andNotAnTypeMatcherFactory$arity$[SC, $commaSeparatedTCNs$]
1140
1140
1141
1141
/**
1142
1142
* This method enables the following syntax given a <code>MatcherFactory$arity$</code>:
@@ -1518,7 +1518,7 @@ $endif$
1518
1518
* ^
1519
1519
* </pre>
1520
1520
*/
1521
- def matchPattern(right: PartialFunction[Any, _]) = macro MatchPatternMacro.andNotMatchPatternMatcher
1521
+ def matchPattern(right: PartialFunction[Any, _]) = ??? // macro MatchPatternMacro.andNotMatchPatternMatcher
1522
1522
}
1523
1523
"""
1524
1524
@@ -2420,7 +2420,7 @@ $endif$
2420
2420
* ^
2421
2421
* </pre>
2422
2422
*/
2423
- def be(aType: ResultOfATypeInvocation[_]): MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$] = macro MatcherFactory$arity$.orNotATypeMatcherFactory$arity$[SC, $commaSeparatedTCNs$]
2423
+ def be(aType: ResultOfATypeInvocation[_]): MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$] = ??? // macro MatcherFactory$arity$.orNotATypeMatcherFactory$arity$[SC, $commaSeparatedTCNs$]
2424
2424
2425
2425
/**
2426
2426
* This method enables the following syntax given a <code>MatcherFactory$arity$</code>:
@@ -2430,7 +2430,7 @@ $endif$
2430
2430
* ^
2431
2431
* </pre>
2432
2432
*/
2433
- def be(anType: ResultOfAnTypeInvocation[_]): MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$] = macro MatcherFactory$arity$.orNotAnTypeMatcherFactory$arity$[SC, $commaSeparatedTCNs$]
2433
+ def be(anType: ResultOfAnTypeInvocation[_]): MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$] = ??? // macro MatcherFactory$arity$.orNotAnTypeMatcherFactory$arity$[SC, $commaSeparatedTCNs$]
2434
2434
2435
2435
/**
2436
2436
* This method enables the following syntax given a <code>MatcherFactory$arity$</code>:
@@ -2812,7 +2812,7 @@ $endif$
2812
2812
* ^
2813
2813
* </pre>
2814
2814
*/
2815
- def matchPattern(right: PartialFunction[Any, _]) = macro MatchPatternMacro.orNotMatchPatternMatcher
2815
+ def matchPattern(right: PartialFunction[Any, _]) = ??? // macro MatchPatternMacro.orNotMatchPatternMatcher
2816
2816
}
2817
2817
2818
2818
/**
@@ -2848,149 +2848,148 @@ $endif$
2848
2848
thisMatcherFactory.or(MatcherWords.not.exist)
2849
2849
}
2850
2850
2851
- /**
2852
- * Companion object containing an implicit method that converts a <code>MatcherFactory$arity$</code> to a <code>Matcher</code>.
2853
- *
2854
- * @author Bill Venners
2855
- */
2856
- object MatcherFactory$arity$ {
2857
-
2858
- import scala.language.implicitConversions
2859
-
2860
- /**
2861
- * Converts a <code>MatcherFactory$arity$</code> to a <code>Matcher</code>.
2862
- *
2863
- * @param matcherFactory a MatcherFactory$arity$ to convert
2864
- * @return a Matcher produced by the passed MatcherFactory$arity$
2865
- */
2866
- implicit def produceMatcher[SC, $typeConstructors$, T <: SC : $colonSeparatedTCNs$](matcherFactory: MatcherFactory$arity$[SC, $commaSeparatedTCNs$]): Matcher[T] =
2867
- matcherFactory.matcher
2868
-
2869
- import scala.reflect.macros.Context
2870
-
2871
- /**
2872
- * This method is called by macro that supports 'and not a [Type]' syntax.
2873
- */
2874
- def andNotATypeMatcherFactory$arity$[SC, $typeConstructors$](context: Context)(aType: context.Expr[ResultOfATypeInvocation[_]]): context.Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] =
2875
- new MatcherFactory$arity$Macro[SC, $commaSeparatedTCNs$].andNotATypeMatcherFactory$arity$(context)(aType)
2876
-
2877
- /**
2878
- * This method is called by macro that supports 'or not a [Type]' syntax.
2879
- */
2880
- def orNotATypeMatcherFactory$arity$[SC, $typeConstructors$](context: Context)(aType: context.Expr[ResultOfATypeInvocation[_]]): context.Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] =
2881
- new MatcherFactory$arity$Macro[SC, $commaSeparatedTCNs$].orNotATypeMatcherFactory$arity$(context)(aType)
2882
-
2883
- /**
2884
- * This method is called by macro that supports 'and not a [Type]' syntax.
2885
- */
2886
- def andNotAnTypeMatcherFactory$arity$[SC, $typeConstructors$](context: Context)(anType: context.Expr[ResultOfAnTypeInvocation[_]]): context.Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] =
2887
- new MatcherFactory$arity$Macro[SC, $commaSeparatedTCNs$].andNotAnTypeMatcherFactory$arity$(context)(anType)
2888
-
2889
- /**
2890
- * This method is called by macro that supports 'or not a [Type]' syntax.
2891
- */
2892
- def orNotAnTypeMatcherFactory$arity$[SC, $typeConstructors$](context: Context)(anType: context.Expr[ResultOfAnTypeInvocation[_]]): context.Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] =
2893
- new MatcherFactory$arity$Macro[SC, $commaSeparatedTCNs$].orNotAnTypeMatcherFactory$arity$(context)(anType)
2894
- }
2895
-
2896
- private[scalatest] class MatcherFactory$arity$Macro[-SC, $typeConstructors$] {
2897
-
2898
- import scala.reflect.macros.Context
2899
-
2900
- def andNotATypeMatcherFactory$arity$(context: Context)(aType: context.Expr[ResultOfATypeInvocation[_]]): context.Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] = {
2901
- import context.universe._
2902
-
2903
- val rhs = TypeMatcherMacro.notATypeMatcher(context)(aType)
2904
-
2905
- context.macroApplication match {
2906
- case Apply(Select(qualifier, _), _) =>
2907
- context.Expr(
2908
- Apply(
2909
- Select(
2910
- Select(
2911
- qualifier,
2912
- "owner"
2913
- ),
2914
- newTermName("and")
2915
- ),
2916
- List(rhs.tree)
2917
- )
2918
- )
2919
- case _ => context.abort(context.macroApplication.pos, "This macro should be used with 'and not' syntax only.")
2920
- }
2921
- }
2922
-
2923
- def orNotATypeMatcherFactory$arity$(context: Context)(aType: context.Expr[ResultOfATypeInvocation[_]]): context.Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] = {
2924
- import context.universe._
2925
-
2926
- val rhs = TypeMatcherMacro.notATypeMatcher(context)(aType)
2927
-
2928
- context.macroApplication match {
2929
- case Apply(Select(qualifier, _), _) =>
2930
- context.Expr(
2931
- Apply(
2932
- Select(
2933
- Select(
2934
- qualifier,
2935
- "owner"
2936
- ),
2937
- newTermName("or")
2938
- ),
2939
- List(rhs.tree)
2940
- )
2941
- )
2942
- case _ => context.abort(context.macroApplication.pos, "This macro should be used with 'or not' syntax only.")
2943
- }
2944
- }
2945
-
2946
- def andNotAnTypeMatcherFactory$arity$(context: Context)(anType: context.Expr[ResultOfAnTypeInvocation[_]]): context.Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] = {
2947
- import context.universe._
2948
-
2949
- val rhs = TypeMatcherMacro.notAnTypeMatcher(context)(anType)
2950
-
2951
- context.macroApplication match {
2952
- case Apply(Select(qualifier, _), _) =>
2953
- context.Expr(
2954
- Apply(
2955
- Select(
2956
- Select(
2957
- qualifier,
2958
- "owner"
2959
- ),
2960
- newTermName("and")
2961
- ),
2962
- List(rhs.tree)
2963
- )
2964
- )
2965
- case _ => context.abort(context.macroApplication.pos, "This macro should be used with 'and not' syntax only.")
2966
- }
2967
- }
2968
-
2969
- def orNotAnTypeMatcherFactory$arity$(context: Context)(anType: context.Expr[ResultOfAnTypeInvocation[_]]): context.Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] = {
2970
- import context.universe._
2971
-
2972
- val rhs = TypeMatcherMacro.notAnTypeMatcher(context)(anType)
2973
-
2974
- context.macroApplication match {
2975
- case Apply(Select(qualifier, _), _) =>
2976
- context.Expr(
2977
- Apply(
2978
- Select(
2979
- Select(
2980
- qualifier,
2981
- "owner"
2982
- ),
2983
- newTermName("or")
2984
- ),
2985
- List(rhs.tree)
2986
- )
2987
- )
2988
- case _ => context.abort(context.macroApplication.pos, "This macro should be used with 'or not' syntax only.")
2989
- }
2990
- }
2991
-
2992
- }
2993
-
2851
+ // /**
2852
+ // * Companion object containing an implicit method that converts a <code>MatcherFactory$arity$</code> to a <code>Matcher</code>.
2853
+ // *
2854
+ // * @author Bill Venners
2855
+ // */
2856
+ // object MatcherFactory$arity$ {
2857
+
2858
+ // import scala.language.implicitConversions
2859
+
2860
+ // /**
2861
+ // * Converts a <code>MatcherFactory$arity$</code> to a <code>Matcher</code>.
2862
+ // *
2863
+ // * @param matcherFactory a MatcherFactory$arity$ to convert
2864
+ // * @return a Matcher produced by the passed MatcherFactory$arity$
2865
+ // */
2866
+ // implicit def produceMatcher[SC, $typeConstructors$, T <: SC : $colonSeparatedTCNs$](matcherFactory: MatcherFactory$arity$[SC, $commaSeparatedTCNs$]): Matcher[T] =
2867
+ // matcherFactory.matcher
2868
+
2869
+ // import scala.reflect.macros.Context
2870
+
2871
+ // /**
2872
+ // * This method is called by macro that supports 'and not a [Type]' syntax.
2873
+ // */
2874
+ // def andNotATypeMatcherFactory$arity$[SC, $typeConstructors$](context: Context)(aType: context.Expr[ResultOfATypeInvocation[_]]): context.Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] =
2875
+ // new MatcherFactory$arity$Macro[SC, $commaSeparatedTCNs$].andNotATypeMatcherFactory$arity$(context)(aType)
2876
+
2877
+ // /**
2878
+ // * This method is called by macro that supports 'or not a [Type]' syntax.
2879
+ // */
2880
+ // def orNotATypeMatcherFactory$arity$[SC, $typeConstructors$](context: Context)(aType: context.Expr[ResultOfATypeInvocation[_]]): context.Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] =
2881
+ // new MatcherFactory$arity$Macro[SC, $commaSeparatedTCNs$].orNotATypeMatcherFactory$arity$(context)(aType)
2882
+
2883
+ // /**
2884
+ // * This method is called by macro that supports 'and not a [Type]' syntax.
2885
+ // */
2886
+ // def andNotAnTypeMatcherFactory$arity$[SC, $typeConstructors$](context: Context)(anType: context.Expr[ResultOfAnTypeInvocation[_]]): context.Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] =
2887
+ // new MatcherFactory$arity$Macro[SC, $commaSeparatedTCNs$].andNotAnTypeMatcherFactory$arity$(context)(anType)
2888
+
2889
+ // /**
2890
+ // * This method is called by macro that supports 'or not a [Type]' syntax.
2891
+ // */
2892
+ // def orNotAnTypeMatcherFactory$arity$[SC, $typeConstructors$](context: Context)(anType: context.Expr[ResultOfAnTypeInvocation[_]]): context.Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] =
2893
+ // new MatcherFactory$arity$Macro[SC, $commaSeparatedTCNs$].orNotAnTypeMatcherFactory$arity$(context)(anType)
2894
+ // }
2895
+
2896
+ // private[scalatest] class MatcherFactory$arity$Macro[-SC, $typeConstructors$] {
2897
+
2898
+ // import scala.reflect.macros.Context
2899
+
2900
+ // def andNotATypeMatcherFactory$arity$(context: Context)(aType: context.Expr[ResultOfATypeInvocation[_]]): context.Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] = {
2901
+ // import context.universe._
2902
+
2903
+ // val rhs = TypeMatcherMacro.notATypeMatcher(context)(aType)
2904
+
2905
+ // context.macroApplication match {
2906
+ // case Apply(Select(qualifier, _), _) =>
2907
+ // context.Expr(
2908
+ // Apply(
2909
+ // Select(
2910
+ // Select(
2911
+ // qualifier,
2912
+ // "owner"
2913
+ // ),
2914
+ // newTermName("and")
2915
+ // ),
2916
+ // List(rhs.tree)
2917
+ // )
2918
+ // )
2919
+ // case _ => context.abort(context.macroApplication.pos, "This macro should be used with 'and not' syntax only.")
2920
+ // }
2921
+ // }
2922
+
2923
+ // def orNotATypeMatcherFactory$arity$(context: Context)(aType: context.Expr[ResultOfATypeInvocation[_]]): context.Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] = {
2924
+ // import context.universe._
2925
+
2926
+ // val rhs = TypeMatcherMacro.notATypeMatcher(context)(aType)
2927
+
2928
+ // context.macroApplication match {
2929
+ // case Apply(Select(qualifier, _), _) =>
2930
+ // context.Expr(
2931
+ // Apply(
2932
+ // Select(
2933
+ // Select(
2934
+ // qualifier,
2935
+ // "owner"
2936
+ // ),
2937
+ // newTermName("or")
2938
+ // ),
2939
+ // List(rhs.tree)
2940
+ // )
2941
+ // )
2942
+ // case _ => context.abort(context.macroApplication.pos, "This macro should be used with 'or not' syntax only.")
2943
+ // }
2944
+ // }
2945
+
2946
+ // def andNotAnTypeMatcherFactory$arity$(context: Context)(anType: context.Expr[ResultOfAnTypeInvocation[_]]): context.Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] = {
2947
+ // import context.universe._
2948
+
2949
+ // val rhs = TypeMatcherMacro.notAnTypeMatcher(context)(anType)
2950
+
2951
+ // context.macroApplication match {
2952
+ // case Apply(Select(qualifier, _), _) =>
2953
+ // context.Expr(
2954
+ // Apply(
2955
+ // Select(
2956
+ // Select(
2957
+ // qualifier,
2958
+ // "owner"
2959
+ // ),
2960
+ // newTermName("and")
2961
+ // ),
2962
+ // List(rhs.tree)
2963
+ // )
2964
+ // )
2965
+ // case _ => context.abort(context.macroApplication.pos, "This macro should be used with 'and not' syntax only.")
2966
+ // }
2967
+ // }
2968
+
2969
+ // def orNotAnTypeMatcherFactory$arity$(context: Context)(anType: context.Expr[ResultOfAnTypeInvocation[_]]): context.Expr[MatcherFactory$arity$[SC with AnyRef, $commaSeparatedTCNs$]] = {
2970
+ // import context.universe._
2971
+
2972
+ // val rhs = TypeMatcherMacro.notAnTypeMatcher(context)(anType)
2973
+
2974
+ // context.macroApplication match {
2975
+ // case Apply(Select(qualifier, _), _) =>
2976
+ // context.Expr(
2977
+ // Apply(
2978
+ // Select(
2979
+ // Select(
2980
+ // qualifier,
2981
+ // "owner"
2982
+ // ),
2983
+ // newTermName("or")
2984
+ // ),
2985
+ // List(rhs.tree)
2986
+ // )
2987
+ // )
2988
+ // case _ => context.abort(context.macroApplication.pos, "This macro should be used with 'or not' syntax only.")
2989
+ // }
2990
+ // }
2991
+
2992
+ // }
2994
2993
"""
2995
2994
2996
2995
// For some reason that I don't understand, I need to leave off the stars before the <pre> when
0 commit comments