@@ -25,9 +25,9 @@ class ShowExtractors[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
25
25
26
26
def visitTree (x : Tree ): Buffer = x match {
27
27
case Term .Ident (name) =>
28
- this += " Ident(" += name += " )"
28
+ this += " Ident(\" " += name += " \ " )"
29
29
case Term .Select (qualifier, name, signature) =>
30
- this += " Select(" += qualifier += " , " += name += " , " += signature += " )"
30
+ this += " Select(" += qualifier += " , \" " += name += " \ " , " += signature += " )"
31
31
case Term .This (qual) =>
32
32
this += " This(" += qual += " )"
33
33
case Term .Super (qual, mix) =>
@@ -43,7 +43,7 @@ class ShowExtractors[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
43
43
case Term .Typed (expr, tpt) =>
44
44
this += " Typed(" += expr += " , " += tpt += " )"
45
45
case Term .NamedArg (name, arg) =>
46
- this += " NamedArg(" += name += " , " += arg += " )"
46
+ this += " NamedArg(\" " += name += " \ " , " += arg += " )"
47
47
case Term .Assign (lhs, rhs) =>
48
48
this += " Assign(" += lhs += " , " += rhs += " )"
49
49
case Term .Block (stats, expr) =>
@@ -63,20 +63,20 @@ class ShowExtractors[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
63
63
case Term .Inlined (call, bindings, expansion) =>
64
64
this += " Inlined(" += call += " , " ++= bindings += " , " += expansion += " )"
65
65
case ValDef (name, tpt, rhs) =>
66
- this += " ValDef(" += name += " , " += tpt += " , " += rhs += " )"
66
+ this += " ValDef(\" " += name += " \ " , " += tpt += " , " += rhs += " )"
67
67
case DefDef (name, typeParams, paramss, returnTpt, rhs) =>
68
- this += " DefDef(" += name += " , " ++= typeParams += " , " +++= paramss += " , " += returnTpt += " , " += rhs += " )"
68
+ this += " DefDef(\" " += name += " \ " , " ++= typeParams += " , " +++= paramss += " , " += returnTpt += " , " += rhs += " )"
69
69
case TypeDef (name, rhs) =>
70
- this += " TypeDef(" += name += " , " += rhs += " )"
70
+ this += " TypeDef(\" " += name += " \ " , " += rhs += " )"
71
71
case ClassDef (name, constr, parents, self, body) =>
72
- this += " ClassDef(" += name += " , " += constr += " , "
72
+ this += " ClassDef(\" " += name += " \ " , " += constr += " , "
73
73
visitList[Parent ](parents, {
74
74
case parent @ Term () => this += parent
75
75
case parent @ TypeTree () => this += parent
76
76
})
77
77
this += " , " += self += " , " ++= body += " )"
78
78
case PackageDef (name, members) =>
79
- this += " PackageDef(" += name += " , " ++= members += " )"
79
+ this += " PackageDef(\" " += name += " \ " , " ++= members += " )"
80
80
case Import (expr, selectors) =>
81
81
this += " Import(" += expr += " , " ++= selectors += " )"
82
82
case PackageClause (pid, stats) =>
@@ -87,9 +87,9 @@ class ShowExtractors[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
87
87
case TypeTree .Synthetic () =>
88
88
this += " Synthetic()"
89
89
case TypeTree .TypeIdent (name) =>
90
- this += " TypeIdent(" += name += " )"
90
+ this += " TypeIdent(\" " += name += " \ " )"
91
91
case TypeTree .TypeSelect (qualifier, name) =>
92
- this += " TypeSelect(" += qualifier += " , " += name += " )"
92
+ this += " TypeSelect(" += qualifier += " , \" " += name += " \ " )"
93
93
case TypeTree .Singleton (ref) =>
94
94
this += " Singleton(" += ref += " )"
95
95
case TypeTree .And (left, right) =>
@@ -117,7 +117,7 @@ class ShowExtractors[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
117
117
case Pattern .Value (v) =>
118
118
this += " Value(" += v += " )"
119
119
case Pattern .Bind (name, body) =>
120
- this += " Bind(" += name += " , " += body += " )"
120
+ this += " Bind(\" " += name += " \ " , " += body += " )"
121
121
case Pattern .Unapply (fun, implicits, patterns) =>
122
122
this += " Unapply(" += fun += " , " ++= implicits += " , " ++= patterns += " )"
123
123
case Pattern .Alternative (patterns) =>
@@ -137,28 +137,28 @@ class ShowExtractors[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
137
137
case Constant .Long (value) => this += " Long(" += value += " )"
138
138
case Constant .Float (value) => this += " Float(" += value += " )"
139
139
case Constant .Double (value) => this += " Double(" += value += " )"
140
- case Constant .String (value) => this += " String(" += value += " )"
140
+ case Constant .String (value) => this += " String(\" " += value += " \ " )"
141
141
}
142
142
143
143
def visitType (x : TypeOrBounds ): Buffer = x match {
144
144
case Type .ConstantType (value) =>
145
145
this += " ConstantType(" += value += " )"
146
146
case Type .SymRef (sym, qual) =>
147
147
def visitName (sym : Definition ): Buffer = sym match {
148
- case ValDef (name, _, _) => this += " ValDef(" += name += " , _, _)"
149
- case DefDef (name, _, _, _, _) => this += " DefDef(" += name += " , _, _, _, _)"
150
- case TypeDef (name, _) => this += " TypeDef(" += name += " , _)"
151
- case ClassDef (name, _, _, _, _) => this += " ClassDef(" += name += " , _, _, _, _)"
152
- case PackageDef (name, _) => this += " PackageDef(" += name += " , _)"
148
+ case ValDef (name, _, _) => this += " ValDef(\" " += name += " \ " , _, _)"
149
+ case DefDef (name, _, _, _, _) => this += " DefDef(\" " += name += " \ " , _, _, _, _)"
150
+ case TypeDef (name, _) => this += " TypeDef(\" " += name += " \ " , _)"
151
+ case ClassDef (name, _, _, _, _) => this += " ClassDef(\" " += name += " \ " , _, _, _, _)"
152
+ case PackageDef (name, _) => this += " PackageDef(\" " += name += " \ " , _)"
153
153
case _ => this += " #"
154
154
}
155
155
this += " SymRef("
156
156
visitName(sym)
157
157
this += " , " += qual += " )"
158
158
case Type .TermRef (name, qual) =>
159
- this += " TermRef(" += name += " , " += qual += " )"
159
+ this += " TermRef(\" " += name += " \ " , " += qual += " )"
160
160
case Type .TypeRef (name, qual) =>
161
- this += " TypeRef(" += name += " , " += qual += " )"
161
+ this += " TypeRef(\" " += name += " \ " , " += qual += " )"
162
162
case Type .Refinement (parent, name, info) =>
163
163
this += " Refinement(" += parent += " , " += name += " , " += info += " )"
164
164
case Type .AppliedType (tycon, args) =>
@@ -198,7 +198,7 @@ class ShowExtractors[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
198
198
199
199
def visitId (x : Id ): Buffer = {
200
200
val Id (name) = x
201
- this += " Id(" += name += " )"
201
+ this += " Id(\" " += name += " \ " )"
202
202
}
203
203
204
204
def visitSignature (sig : Signature ): Buffer = {
0 commit comments