@@ -217,20 +217,6 @@ object Applications {
217217 class ExtMethodApply (app : Tree )(implicit @ constructorOnly src : SourceFile )
218218 extends IntegratedTypeArgs (app)
219219
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- }
234220}
235221
236222trait Applications extends Compatibility { self : Typer with Dynamic =>
@@ -811,7 +797,7 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
811797 * or, if application is an operator assignment, also an `Assign` or
812798 * Block node.
813799 */
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 = {
815801
816802 def realApply (implicit ctx : Context ): Tree = track(" realApply" ) {
817803 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 =>
955941 val isNamed = hasNamedArg(tree.args)
956942 val typedArgs = if (isNamed) typedNamedArgs(tree.args) else tree.args.mapconserve(typedType(_))
957943 record(" typedTypeApply" )
958- handleMeta( typedFunPart(tree.fun, PolyProto (typedArgs, pt)) match {
944+ typedFunPart(tree.fun, PolyProto (typedArgs, pt)) match {
959945 case IntegratedTypeArgs (app) =>
960946 app
961947 case _ : TypeApply if ! ctx.isAfterTyper =>
@@ -977,7 +963,7 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
977963 }
978964 if (typedFn.tpe eq TryDynamicCallType ) tryDynamicTypeApply()
979965 else assignType(cpy.TypeApply (tree)(typedFn, typedArgs), typedFn, typedArgs)
980- })
966+ }
981967 }
982968
983969 /** Rewrite `new Array[T](....)` if T is an unbounded generic to calls to newGenericArray.
0 commit comments