File tree 1 file changed +4
-4
lines changed
compiler/src/scala/quoted/runtime/impl
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5,20 +5,20 @@ import dotty.tools.dotc.core.Contexts._
5
5
import dotty .tools .dotc .util .Property
6
6
import dotty .tools .dotc .util .SourcePosition
7
7
8
- /** Unique identifier of the evaluation of a splice.
8
+ /** A scope uniquely identifies the context for evaluating a splice
9
9
*
10
- * A nested splice gets a new Scope with the outer one as an owner .
10
+ * A nested splice gets a new scope with the enclosing scope as its `outer` .
11
11
* This also applies for recursive splices.
12
12
*/
13
13
trait Scope {
14
14
/** Outer scope that was used to create the quote containing this splice.
15
- * NoScope if there is no scope
15
+ * NoScope otherwise.
16
16
*/
17
17
def outer : Scope = NoScope
18
18
/** Is this is a outer scope of the given scope */
19
19
def isOuterScopeOf (scope : Scope ): Boolean =
20
20
this .eq(scope) || (scope.ne(NoScope ) && isOuterScopeOf(scope.outer))
21
- /** Scope of he top level splice or staging `run` */
21
+ /** Scope of the top level splice or staging `run` */
22
22
def root : Scope =
23
23
if outer.eq(NoScope ) then this else outer.root
24
24
/** Stack of locations where scopes where evaluated */
You can’t perform that action at this time.
0 commit comments