Skip to content

Commit bc67e27

Browse files
committed
Add missing PrefixKind.Using enum
1 parent 536dfea commit bc67e27

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

presentation-compiler/src/main/dotty/tools/pc/completions/CompletionAffix.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ case class CompletionAffix(
5656
private def loopPrefix(prefixes: List[PrefixKind]): String =
5757
prefixes match
5858
case PrefixKind.New :: tail => "new " + loopPrefix(tail)
59+
case PrefixKind.Using :: tail => "using " + loopPrefix(tail)
5960
case _ => ""
6061

6162
/**
@@ -87,7 +88,7 @@ enum SuffixKind:
8788
case Brace, Bracket, Template, NoSuffix
8889

8990
enum PrefixKind:
90-
case New
91+
case New, Using
9192

9293
type Suffix = Affix[SuffixKind]
9394
type Prefix = Affix[PrefixKind]

0 commit comments

Comments
 (0)