File tree 1 file changed +7
-7
lines changed
semanticdb/src/dotty/semanticdb 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ class SemanticdbConsumer extends TastyConsumer {
64
64
65
65
implicit class SymbolExtender (symbol : Symbol ) {
66
66
def isTypeParameter : Boolean = symbol match {
67
- case IsTypeSymbol (_) => symbol.flags.isParam
67
+ case IsTypeSymbol (_) => symbol.flags.is( Flags . Param )
68
68
case _ => false
69
69
}
70
70
@@ -83,21 +83,21 @@ class SemanticdbConsumer extends TastyConsumer {
83
83
case _ => false
84
84
}
85
85
86
- def isObject : Boolean = symbol.flags.isObject
86
+ def isObject : Boolean = symbol.flags.is( Flags . Object )
87
87
88
- def isTrait : Boolean = symbol.flags.isTrait
88
+ def isTrait : Boolean = symbol.flags.is( Flags . Trait )
89
89
90
- def isValueParameter : Boolean = symbol.flags.isParam
90
+ def isValueParameter : Boolean = symbol.flags.is( Flags . Param )
91
91
92
92
// TODO : implement it
93
93
def isJavaClass : Boolean = false
94
94
}
95
95
96
96
def resolveClass (symbol : ClassSymbol ): Symbol =
97
97
(symbol.companionClass, symbol.companionModule) match {
98
- case (_, Some (module)) if symbol.flags.isObject => module
99
- case (Some (c), _) => c
100
- case _ => symbol
98
+ case (_, Some (module)) if symbol.flags.is( Flags . Object ) => module
99
+ case (Some (c), _) => c
100
+ case _ => symbol
101
101
}
102
102
103
103
def disimbiguate (symbol_path : String , symbol : Symbol ): String = {
You can’t perform that action at this time.
0 commit comments