Skip to content

Commit 7e2e6d3

Browse files
Apply suggestions from code review
Co-authored-by: Fengyun Liu <[email protected]>
1 parent 6e18e45 commit 7e2e6d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/src/scala/quoted/runtime/impl/SpliceScope.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ import dotty.tools.dotc.core.Contexts._
55
import dotty.tools.dotc.util.Property
66
import 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
*/
1313
trait 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 */

0 commit comments

Comments
 (0)