PatternContext Type
Union cases
| Union case |
Description
|
|
|
Full Usage:
Other
|
Any other position in a pattern that does not need special handling |
Full Usage:
PositionalUnionCaseField(fieldIndex, isTheOnlyField, caseIdRange)
Parameters:
int option
-
Position in the tuple. None if there is no tuple, with only one field outside of parentheses - `Some v|`
isTheOnlyField : bool
-
True when completing the first field in the tuple and no other field is bound - `Case (a|)` but not `Case (a|, b)`
caseIdRange : range
-
Range of the case identifier
|
Completing union case field pattern (e.g. fun (Some v| ) -> ) or fun (Some (v| )) -> ). In theory, this could also be parameterized active pattern usage.
|
|
|
|
F# Compiler Guide