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
3893
3951
* Takes the constructed class symbol as an argument. Calling `cls.typeRef.asType` as part of this function will lead to cyclic reference errors.
3894
3952
* @paramdecls The member declarations of the class provided the symbol of this class
3895
3953
* @paramselfType The self type of the class if it has one
3896
-
* @paramclsFlags extra flags with which the class symbol should be constructed
3954
+
* @paramclsFlags extra flags with which the class symbol should be constructed. Can be `Private` | `Protected` | `PrivateLocal` | `Local` | `Final` | `Trait` | `Abstract` | `Open`
3897
3955
* @paramclsPrivateWithin the symbol within which this new class symbol should be private. May be noSymbol
3898
3956
* @paramclsAnnotations annotations of the class
3899
3957
* @paramconMethodType Function returning MethodOrPoly type representing the type of the constructor.
3900
3958
* Takes the result type as parameter which must be returned from the innermost MethodOrPoly.
3901
3959
* PolyType may only represent the first clause of the constructor.
3902
-
* @paramconFlags extra flags with which the constructor symbol should be constructed
3960
+
* @paramconFlags extra flags with which the constructor symbol should be constructed. Can be `Synthetic` | `Method` | `Private` | `Protected` | `PrivateLocal` | `Local`
3903
3961
* @paramconPrivateWithin the symbol within which the constructor for this new class symbol should be private. May be noSymbol.
3904
3962
* @paramconParamFlags extra flags with which the constructor parameter symbols should be constructed. Must match the shape of `conMethodType`.
3963
+
* For type parameters those can be `Param` | `Deferred` | `Private` | `PrivateLocal` | `Local`.
3964
+
* For term parameters those can be `ParamAccessor` | `Private` | `Protected` | `PrivateLocal` | `Local`
3965
+
* @paramconParamPrivateWithins the symbols within which the constructor parameters should be private. Must match the shape of `conMethodType`. Can consist of noSymbol.
3905
3966
*
3906
3967
* Term and type parameters assigned by the constructor can be obtained via `classSymbol.memberField`/`classSymbol.memberType`.
3907
3968
* This symbol starts without an accompanying definition.
0 commit comments