File tree 2 files changed +18
-2
lines changed
compiler/src/dotty/tools/dotc/core
2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -733,10 +733,10 @@ object SymDenotations {
733
733
originalName.isSetterName &&
734
734
(! isCompleted || info.firstParamTypes.nonEmpty) // to avoid being fooled by var x_= : Unit = ...
735
735
736
- /** is this a symbol representing an import? */
736
+ /** Is this a symbol representing an import? */
737
737
final def isImport : Boolean = name == nme.IMPORT
738
738
739
- /** is this the constructor of a class? */
739
+ /** Is this the constructor of a class? */
740
740
final def isClassConstructor : Boolean = name == nme.CONSTRUCTOR
741
741
742
742
/** Is this the constructor of a trait or a class */
Original file line number Diff line number Diff line change @@ -2679,14 +2679,30 @@ trait Reflection { reflection =>
2679
2679
/** Annotations attached to this symbol */
2680
2680
def annots : List [Term ]
2681
2681
2682
+ /** Does this symbol come from a currently compiled source file? */
2682
2683
def isDefinedInCurrentRun : Boolean
2683
2684
2685
+ /** Dummy val symbol that owns all statements within the initialization of the class.
2686
+ * This may also contain local definitions such as classes defined in a `locally` block in the class.
2687
+ */
2684
2688
def isLocalDummy : Boolean
2689
+
2690
+ /** Is this symbol a class representing a refinement? */
2685
2691
def isRefinementClass : Boolean
2692
+
2693
+ /** Is this symbol an alias type? */
2686
2694
def isAliasType : Boolean
2695
+
2696
+ /** Is this symbol an anonymous class? */
2687
2697
def isAnonymousClass : Boolean
2698
+
2699
+ /** Is this symbol an anonymous function? */
2688
2700
def isAnonymousFunction : Boolean
2701
+
2702
+ /** Is this symbol an abstract type? */
2689
2703
def isAbstractType : Boolean
2704
+
2705
+ /** Is this the constructor of a class? */
2690
2706
def isClassConstructor : Boolean
2691
2707
2692
2708
/** Is this the definition of a type? */
You can’t perform that action at this time.
0 commit comments