CaseKeywordCompletion
Attributes
- Graph
-
- Supertypes
- Self type
Members list
Value members
Concrete methods
A case completion showing the valid subtypes of the type being deconstructed.
A case completion showing the valid subtypes of the type being deconstructed.
Value parameters
- completionPos
-
the position of the completion
- hasBind
-
truewhencase _: @@ =>, if hasBind we don't need unapply completions - parent
-
the parent tree node of the pattern match, for example
Apply(_, _)when inList(1).foreach { cas@@ }, used as fallback to compute the type of the selector when it'sEmptyTree. - patternOnly
-
Noneforcase@@,Some(query)forcase query@@ =>orcase ab: query@@ => - selector
-
selectorofselector match { cases }orEmptyTreewhen not in a match expression (for exampleList(1).foreach { case@@ }. - typedtree
-
typed tree of the file, used for generating auto imports
Attributes
A match keyword completion to generate an exhaustive pattern match for sealed types.
A match keyword completion to generate an exhaustive pattern match for sealed types.
Value parameters
- completionPos
-
the position of the completion
- selector
-
the match expression being deconstructed or
EmptyTreewhen not in a match expression (for exampleList(1).foreach { case@@ }. - typedtree
-
typed tree of the file, used for generating auto imports