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