You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Generate a new type symbol with the given parent, name and type
3919
-
*
3918
+
/** Generate a new type symbol for a type alias with the given parent, name and type
3919
+
*
3920
+
* This symbol starts without an accompanying definition.
3921
+
* It is the meta-programmer's responsibility to provide exactly one corresponding definition by passing
3922
+
* this symbol to the TypeDef constructor.
3923
+
*
3924
+
* @paramparent The owner of the type
3925
+
* @paramname The name of the type
3926
+
* @paramflags extra flags to with which symbol can be constructed. `Deferred` flag will be added. Can be `Private` | `Protected` | `Override` | `Deferred` | `Final` | `Infix` | `Local`
3927
+
* @paramtpe The rhs the type alias
3928
+
* @paramprivateWithin the symbol within which this new method symbol should be private. May be noSymbol.
3929
+
* @note As a macro can only splice code into the point at which it is expanded, all generated symbols must be
3930
+
* direct or indirect children of the reflection context's owner.
3931
+
*/
3932
+
@experimental
3933
+
// Keep: `flags` doc aligned with QuotesImpl's `validTypeFlags`
/** Generate a new type symbol for a type bounds with the given parent, name and type
3937
+
*
3920
3938
* This symbol starts without an accompanying definition.
3921
3939
* It is the meta-programmer's responsibility to provide exactly one corresponding definition by passing
3922
3940
* this symbol to the TypeDef constructor.
3923
3941
*
3924
3942
* @paramparent The owner of the type
3925
3943
* @paramname The name of the type
3926
3944
* @paramflags extra flags to with which symbol can be constructed. `Deferred` flag will be added. Can be `Private` | `Protected` | `Override` | `Deferred` | `Final` | `Infix` | `Local`
3927
-
* @paramtpe The rhs or bounds of the type
3945
+
* @paramtpe The bounds of the type
3928
3946
* @paramprivateWithin the symbol within which this new method symbol should be private. May be noSymbol.
3929
3947
* @note As a macro can only splice code into the point at which it is expanded, all generated symbols must be
3930
3948
* direct or indirect children of the reflection context's owner.
3931
3949
*/
3932
3950
@experimental
3933
3951
// Keep: `flags` doc aligned with QuotesImpl's `validTypeFlags`
assert(typeDef.toString =="TypeDef(mytype,TypeTree[TypeBounds(TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class java)),object lang),String),TypeRef(ThisType(TypeRef(NoPrefix,module class scala)),class Any))])")
0 commit comments