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 =>
7878 def asType : Type = tpe
7979 def asTypeIn (site : Type ): Type = site.memberType(this )
8080 def asTypeConstructor : Type = typeConstructor
81+ def setFlags (flags : FlagSet ): this .type = setInternalFlags(flags)
8182 def setInternalFlags (flag : Long ): this .type = { setFlag(flag); this }
8283 def setTypeSignature (tpe : Type ): this .type = { setInfo(tpe); this }
8384 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 {
2424 */
2525 trait SymbolContextApi extends SymbolApi with AttachableApi { this : Symbol =>
2626
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
2936 }
3037
3138 // Tree extensions ---------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments