File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
src/reflect/scala/reflect Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ trait Symbols extends api.Symbols { self: SymbolTable =>
78
78
def asType : Type = tpe
79
79
def asTypeIn (site : Type ): Type = site.memberType(this )
80
80
def asTypeConstructor : Type = typeConstructor
81
+ def setFlags (flags : FlagSet ): this .type = setInternalFlags(flags)
81
82
def setInternalFlags (flag : Long ): this .type = { setFlag(flag); this }
82
83
def setTypeSignature (tpe : Type ): this .type = { setInfo(tpe); this }
83
84
def getAnnotations : List [AnnotationInfo ] = { initialize; annotations }
Original file line number Diff line number Diff line change @@ -24,8 +24,15 @@ abstract class Universe extends scala.reflect.api.Universe {
24
24
*/
25
25
trait SymbolContextApi extends SymbolApi with AttachableApi { this : Symbol =>
26
26
27
- // [Eugene++ to Martin] should we also add mutability methods here (similarly to what's done below for trees)?
28
- // I'm talking about `setAnnotations` and friends
27
+ def setFlags (flags : FlagSet ): this .type
28
+
29
+ def setTypeSignature (tpe : Type ): this .type
30
+
31
+ def setAnnotations (annots : AnnotationInfo * ): this .type
32
+
33
+ def setName (name : Name ): this .type
34
+
35
+ def setPrivateWithin (sym : Symbol ): this .type
29
36
}
30
37
31
38
// Tree extensions ---------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments