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
cls.enter(dotc.core.Symbols.newSymbol(cls, name.toTermName, Flags.ParamAccessor| conParamFlags(clauseIdx)(elementIdx), fixedType, Symbol.noSymbol)) // TODO set privateWithin?
* @paramparents Function returning the parent classes of the class. The first parent must not be a trait
3878
3936
* Takes the constructed class symbol as an argument. Calling `cls.typeRef.asType` as part of this function will lead to cyclic reference errors.
3879
3937
* @paramdecls The member declarations of the class provided the symbol of this class
3880
3938
* @paramselfType The self type of the class if it has one
3881
-
* @paramclsFlags extra flags with which the class symbol should be constructed
3939
+
* @paramclsFlags extra flags with which the class symbol should be constructed. Can be `Private` | `Protected` | `PrivateLocal` | `Local` | `Final` | `Trait` | `Abstract` | `Open`
3882
3940
* @paramclsPrivateWithin the symbol within which this new class symbol should be private. May be noSymbol
3883
3941
* @paramclsAnnotations annotations of the class
3884
3942
* @paramconMethodType Function returning MethodOrPoly type representing the type of the constructor.
3885
3943
* Takes the result type as parameter which must be returned from the innermost MethodOrPoly.
3886
3944
* PolyType may only represent the first clause of the constructor.
3887
-
* @paramconFlags extra flags with which the constructor symbol should be constructed
3945
+
* @paramconFlags extra flags with which the constructor symbol should be constructed. Can be `Synthetic` | `Method` | `Private` | `Protected` | `PrivateLocal` | `Local`
3888
3946
* @paramconPrivateWithin the symbol within which the constructor for this new class symbol should be private. May be noSymbol.
3889
3947
* @paramconParamFlags extra flags with which the constructor parameter symbols should be constructed. Must match the shape of `conMethodType`.
3948
+
* For type parameters those can be `Param` | `Deferred` | `Private` | `PrivateLocal` | `Local`.
3949
+
* For term parameters those can be `ParamAccessor` | `Private` | `Protected` | `PrivateLocal` | `Local`
3950
+
* @paramconParamPrivateWithins the symbols within which the constructor parameters should be private. Must match the shape of `conMethodType`. Can consist of noSymbol.
3890
3951
*
3891
3952
* Term and type parameters assigned by the constructor can be obtained via `classSymbol.memberField`/`classSymbol.memberType`.
3892
3953
* This symbol starts without an accompanying definition.
0 commit comments