@@ -217,20 +217,6 @@ object Applications {
217
217
class ExtMethodApply (app : Tree )(implicit @ constructorOnly src : SourceFile )
218
218
extends IntegratedTypeArgs (app)
219
219
220
- /** If we are in an inline method but not in a nested quote, mark the inline method
221
- * as a macro.
222
- */
223
- def handleMeta (tree : Tree )(implicit ctx : Context ): tree.type = {
224
- import transform .SymUtils ._
225
-
226
- def markAsMacro (c : Context ): Unit =
227
- if (c.owner eq c.outer.owner) markAsMacro(c.outer)
228
- else if (c.owner.isInlineMethod) c.owner.setFlag(Macro )
229
- else if (! c.outer.owner.is(Package )) markAsMacro(c.outer)
230
- if (tree.symbol.isSplice && StagingContext .level == 0 )
231
- markAsMacro(ctx)
232
- tree
233
- }
234
220
}
235
221
236
222
trait Applications extends Compatibility { self : Typer with Dynamic =>
@@ -811,7 +797,7 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
811
797
* or, if application is an operator assignment, also an `Assign` or
812
798
* Block node.
813
799
*/
814
- def typedApply (tree : untpd.Apply , pt : Type )(implicit ctx : Context ): Tree = handleMeta {
800
+ def typedApply (tree : untpd.Apply , pt : Type )(implicit ctx : Context ): Tree = {
815
801
816
802
def realApply (implicit ctx : Context ): Tree = track(" realApply" ) {
817
803
val originalProto = new FunProto (tree.args, IgnoredProto (pt))(this , tree.isContextual)(argCtx(tree))
@@ -955,7 +941,7 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
955
941
val isNamed = hasNamedArg(tree.args)
956
942
val typedArgs = if (isNamed) typedNamedArgs(tree.args) else tree.args.mapconserve(typedType(_))
957
943
record(" typedTypeApply" )
958
- handleMeta( typedFunPart(tree.fun, PolyProto (typedArgs, pt)) match {
944
+ typedFunPart(tree.fun, PolyProto (typedArgs, pt)) match {
959
945
case IntegratedTypeArgs (app) =>
960
946
app
961
947
case _ : TypeApply if ! ctx.isAfterTyper =>
@@ -977,7 +963,7 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
977
963
}
978
964
if (typedFn.tpe eq TryDynamicCallType ) tryDynamicTypeApply()
979
965
else assignType(cpy.TypeApply (tree)(typedFn, typedArgs), typedFn, typedArgs)
980
- })
966
+ }
981
967
}
982
968
983
969
/** Rewrite `new Array[T](....)` if T is an unbounded generic to calls to newGenericArray.
0 commit comments