File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
compiler/src/dotty/tools/dotc/interactive Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -233,20 +233,6 @@ object Completion {
233
233
(info.offset, completionList)
234
234
}
235
235
236
- /** Possible completions of members of `prefix` which are accessible when called inside `boundary` */
237
- def completions (prefix : Type , boundary : Symbol )(implicit ctx : Context ): List [Symbol ] =
238
- Interactive .safely {
239
- if (boundary != NoSymbol ) {
240
- val boundaryCtx = ctx.withOwner(boundary)
241
- def exclude (sym : Symbol ) = sym.isAbsent || sym.is(Synthetic ) || sym.is(Artifact )
242
- def addMember (name : Name , buf : mutable.Buffer [SingleDenotation ]): Unit =
243
- buf ++= prefix.member(name).altsWith(sym =>
244
- ! exclude(sym) && sym.isAccessibleFrom(prefix)(boundaryCtx))
245
- prefix.memberDenots(completionsFilter, addMember).map(_.symbol).toList
246
- }
247
- else Nil
248
- }
249
-
250
236
/** Filter for names that should appear when looking for completions. */
251
237
private [this ] object completionsFilter extends NameFilter {
252
238
def apply (pre : Type , name : Name )(implicit ctx : Context ): Boolean =
You can’t perform that action at this time.
0 commit comments