File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -1948,7 +1948,7 @@ class Typer extends Namer
1948
1948
fun = ref(defn.QuotedMatcher_unapplyR ).appliedToType(patType),
1949
1949
implicits =
1950
1950
ref(defn.InternalQuoted_exprQuoteR ).appliedToType(shape.tpe).appliedTo(shape) ::
1951
- givenReflection( tree.span) :: Nil ,
1951
+ implicitArgTree(defn. TastyReflectionType , tree.span) :: Nil ,
1952
1952
patterns = splicePat :: Nil ,
1953
1953
proto = pt)
1954
1954
}
@@ -1979,9 +1979,6 @@ class Typer extends Namer
1979
1979
def patternHole (splice : Tree )(implicit ctx : Context ): Tree =
1980
1980
ref(defn.InternalQuoted_patternHoleR ).appliedToType(splice.tpe).withSpan(splice.span)
1981
1981
1982
- def givenReflection (span : Span )(implicit ctx : Context ): Tree =
1983
- implicitArgTree(defn.TastyReflectionType , span)
1984
-
1985
1982
/** Translate `${ t: Expr[T] }` into expression `t.splice` while tracking the quotation level in the context */
1986
1983
def typedSplice (tree : untpd.Splice , pt : Type )(implicit ctx : Context ): Tree = track(" typedSplice" ) {
1987
1984
checkSpliceOutsideQuote(tree)
You can’t perform that action at this time.
0 commit comments