File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
compiler/src/scala/quoted/runtime/impl Expand file tree Collapse file tree 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._
55import dotty .tools .dotc .util .Property
66import dotty .tools .dotc .util .SourcePosition
77
8- /** Unique identifier of the evaluation of a splice.
8+ /** A scope uniquely identifies the context for evaluating a splice
99 *
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` .
1111 * This also applies for recursive splices.
1212 */
1313trait Scope {
1414 /** Outer scope that was used to create the quote containing this splice.
15- * NoScope if there is no scope
15+ * NoScope otherwise.
1616 */
1717 def outer : Scope = NoScope
1818 /** Is this is a outer scope of the given scope */
1919 def isOuterScopeOf (scope : Scope ): Boolean =
2020 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` */
2222 def root : Scope =
2323 if outer.eq(NoScope ) then this else outer.root
2424 /** Stack of locations where scopes where evaluated */
You can’t perform that action at this time.
0 commit comments