Skip to content

Commit c986fdd

Browse files
authored
Merge pull request #8747 from dotty-staging/fix-#8731
Fix #8731: Revise end markers scheme
2 parents 1931bc7 + d7900c5 commit c986fdd

File tree

15 files changed

+374
-252
lines changed

15 files changed

+374
-252
lines changed

compiler/src/dotty/tools/dotc/ast/Trees.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,8 @@ object Trees {
369369
comment.map(putAttachment(DocComment, _))
370370
this
371371
}
372+
373+
def name: Name
372374
}
373375

374376
/** A ValDef or DefDef tree */

compiler/src/dotty/tools/dotc/core/Names.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ object Names {
2525
def toTermName: TermName
2626
}
2727

28-
implicit def eqName: Eql[Name, Name] = Eql.derived
29-
3028
/** A common superclass of Name and Symbol. After bootstrap, this should be
3129
* just the type alias Name | Symbol
3230
*/
@@ -37,7 +35,7 @@ object Names {
3735
* in a name table. A derived term name adds a tag, and possibly a number
3836
* or a further simple name to some other name.
3937
*/
40-
abstract class Name extends Designator with PreName {
38+
abstract class Name extends Designator, PreName derives Eql {
4139

4240
/** A type for names of the same kind as this name */
4341
type ThisName <: Name

0 commit comments

Comments
 (0)