You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to keep the reference to the called method, not only the symbol
of the to level class. This is important for the traces of the `assert`
method that is defined in a different file. This might also be useful
for macro annotations.
This is also a solution to the awkward Select vs. Ident distinction to
identify macros in `YCheckPositions`.
Ww use `-Ycompile-scala3-library` to avoid the `stdLibPatches` patches in the
community build test for `stdLib213` the same way we do in
`scala-library-bootstrapped`.
valYnoExperimental:Setting[Boolean] =BooleanSetting("-Yno-experimental", "Disable experimental language features.")
397
397
valYlegacyLazyVals:Setting[Boolean] =BooleanSetting("-Ylegacy-lazy-vals", "Use legacy (pre 3.3.0) implementation of lazy vals.")
398
398
valYcompileScala2Library:Setting[Boolean] =BooleanSetting("-Ycompile-scala2-library", "Used when compiling the Scala 2 standard library.")
399
+
valYcompileScala3Library:Setting[Boolean] =BooleanSetting("-Ycompile-scala3-library", "Used when compiling the Scala 3 standard library, including the Scala 2 library sources.")
399
400
valYoutputOnlyTasty:Setting[Boolean] =BooleanSetting("-Youtput-only-tasty", "Used to only generate the TASTy file without the classfiles")
Copy file name to clipboardExpand all lines: compiler/src/dotty/tools/dotc/transform/YCheckPositions.scala
+3-6
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ class YCheckPositions extends Phase {
35
35
valcurrentSource= sources.head
36
36
assert(tree.source == currentSource, i"wrong source set for $tree # ${tree.uniqueId} of ${tree.getClass}, set to ${tree.source} but context had $currentSource\n${tree.symbol.flagsString}")
37
37
38
-
//Recursivlely check children while keeping track of current source
38
+
//Recursively check children while keeping track of current source
if (!isMacro(call)) // FIXME macro implementations can drop Inlined nodes. We should reinsert them after macro expansion based on the positions of the trees
0 commit comments