File tree 1 file changed +6
-4
lines changed
compiler/src/dotty/tools/dotc/interactive
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,9 @@ object Completion {
240
240
* 4. have an existing source symbol,
241
241
* 5. are the module class in case of packages,
242
242
* 6. are mutable accessors, to exclude setters for `var`,
243
- * 7. have same term/type kind as name prefix given so far
243
+ * 7. symbol is not a package object
244
+ * 8. symbol is not an atifact of the compiler
245
+ * 9. have same term/type kind as name prefix given so far
244
246
*/
245
247
private def include (sym : Symbol , nameInScope : Name )(implicit ctx : Context ): Boolean =
246
248
nameInScope.startsWith(prefix) &&
@@ -249,12 +251,12 @@ object Completion {
249
251
sym.sourceSymbol.exists &&
250
252
(! sym.is(Package ) || ! sym.moduleClass.exists) &&
251
253
! sym.is(allOf(Mutable , Accessor )) &&
254
+ ! sym.isPackageObject &&
255
+ ! sym.is(Artifact ) &&
252
256
(
253
257
(mode.is(Mode .Term ) && sym.isTerm)
254
258
|| (mode.is(Mode .Type ) && (sym.isType || sym.isStable))
255
- ) &&
256
- ! sym.isPackageObject &&
257
- ! sym.is(Artifact )
259
+ )
258
260
259
261
/**
260
262
* Find all the members of `site` that are accessible and which should be included in `info`.
You can’t perform that action at this time.
0 commit comments