File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
compiler/src/dotty/tools/dotc/semanticdb Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -342,6 +342,8 @@ class ExtractSemanticDB extends Phase with
342
342
SymbolInformation .Kind .UNKNOWN_KIND
343
343
344
344
private def symbolProps (sym : Symbol , symkinds : Set [SymbolKind ])(given Context ): Int =
345
+ if sym.is(ModuleClass )
346
+ return symbolProps(sym.sourceModule, symkinds)
345
347
var props = 0
346
348
if sym.isPrimaryConstructor
347
349
props |= SymbolInformation .Property .PRIMARY .value
@@ -353,9 +355,9 @@ class ExtractSemanticDB extends Phase with
353
355
props |= SymbolInformation .Property .SEALED .value
354
356
if sym.isOneOf(GivenOrImplicit )
355
357
props |= SymbolInformation .Property .IMPLICIT .value
356
- if sym.is(Lazy )
358
+ if sym.is(Lazy , butNot = Module )
357
359
props |= SymbolInformation .Property .LAZY .value
358
- if sym.isAllOf(CaseClass ) || sym.isAllOf(EnumCase )
360
+ if sym.isAllOf(Case | Module ) || sym.is( CaseClass ) || sym.isAllOf(EnumCase )
359
361
props |= SymbolInformation .Property .CASE .value
360
362
if sym.is(Covariant )
361
363
props |= SymbolInformation .Property .COVARIANT .value
Original file line number Diff line number Diff line change @@ -1289,19 +1289,19 @@ a/b/Givens.Monoid#empty(). => abstract method empty
1289
1289
a/b/Givens.foo(). => method foo
1290
1290
a/b/Givens.foo().(A) => implicit param A
1291
1291
a/b/Givens.foo().[A] => typeparam A
1292
- a/b/Givens.given_Monoid_String. => final object given_Monoid_String
1292
+ a/b/Givens.given_Monoid_String. => final implicit object given_Monoid_String
1293
1293
a/b/Givens.given_Monoid_String.combine(). => method combine
1294
1294
a/b/Givens.given_Monoid_String.combine().(x) => param x
1295
1295
a/b/Givens.given_Monoid_String.combine().(y) => param y
1296
1296
a/b/Givens.given_Monoid_String.empty(). => method empty
1297
- a/b/Givens.given_sayGoodbye_of_B. => final object given_sayGoodbye_of_B
1297
+ a/b/Givens.given_sayGoodbye_of_B. => final implicit object given_sayGoodbye_of_B
1298
1298
a/b/Givens.given_sayGoodbye_of_B.sayGoodbye(). => method sayGoodbye
1299
1299
a/b/Givens.given_sayGoodbye_of_B.sayGoodbye().(any) => param any
1300
1300
a/b/Givens.given_sayGoodbye_of_B.sayGoodbye().[B] => typeparam B
1301
1301
a/b/Givens.given_sayGoodbye_of_B.saySoLong(). => method saySoLong
1302
1302
a/b/Givens.given_sayGoodbye_of_B.saySoLong().(any) => param any
1303
1303
a/b/Givens.given_sayGoodbye_of_B.saySoLong().[B] => typeparam B
1304
- a/b/Givens.given_sayHello_of_A. => final object given_sayHello_of_A
1304
+ a/b/Givens.given_sayHello_of_A. => final implicit object given_sayHello_of_A
1305
1305
a/b/Givens.given_sayHello_of_A.sayHello(). => method sayHello
1306
1306
a/b/Givens.given_sayHello_of_A.sayHello().(any) => param any
1307
1307
a/b/Givens.given_sayHello_of_A.sayHello().[A] => typeparam A
You can’t perform that action at this time.
0 commit comments