Repository navigation
Expand file tree
/
Copy pathLanguageFeatures.fsi
More file actions
120 lines (101 loc) · 4.27 KB
/
Copy pathLanguageFeatures.fsi
File metadata and controls
120 lines (101 loc) · 4.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
// Copyright (c) Microsoft Corporation. All Rights Reserved. See License.txt in the project root for license information.
/// Coordinating compiler operations - configuration, loading initial context, reporting errors etc.
module internal FSharp.Compiler.Features
/// LanguageFeature enumeration
[<RequireQualifiedAccess>]
type LanguageFeature =
| FromEndSlicing
| RuntimeAsync
| WitnessPassing
| ExpandedMeasurables
| NullnessChecking
| UnionIsPropertiesVisible
| AttributesToRightOfModuleKeyword
| ReallyLongLists
| ErrorOnDeprecatedRequireQualifiedAccess
| MatchNotAllowedForUnionCaseWithNoData
| CSharpExtensionAttributeNotRequired
| ErrorForNonVirtualMembersOverrides
| WarningWhenCopyAndUpdateRecordChangesAllFields
| WarningWhenMultipleRecdTypeChoice
| ConstraintIntersectionOnFlexibleTypes
| WarningWhenTailRecAttributeButNonTailRecUsage
| UnmanagedConstraintCsharpInterop
| ReuseSameFieldsInStructUnions
/// RFC-1137
| PreferExtensionMethodOverPlainProperty
| WarningIndexedPropertiesGetSetSameType
| WarningWhenTailCallAttrOnNonRec
| BooleanReturningAndReturnTypeDirectedPartialActivePattern
| EnforceAttributeTargets
| LowerInterpolatedStringToConcat
| LowerIntegralRangesToFastLoops
| AllowAccessModifiersToAutoPropertiesGettersAndSetters
| LowerSimpleMappingsInComprehensionsToFastLoops
| ParsedHashDirectiveArgumentNonQuotes
| EmptyBodiedComputationExpressions
| AllowObjectExpressionWithoutOverrides
| DontWarnOnUppercaseIdentifiersInBindingPatterns
| UseTypeSubsumptionCache
| DeprecatePlacesWhereSeqCanBeOmitted
| SupportValueOptionsAsOptionalParameters
| WarnWhenUnitPassedToObjArg
| UseBangBindingValueDiscard
| BetterAnonymousRecordParsing
| ScopedNowarn
| ErrorOnInvalidDeclsInTypeDefinitions
| AllowTypedLetUseAndBang
| ReturnFromFinal
| MoreConcreteTiebreaker
| OverloadResolutionPriority
| WarnWhenFunctionValueUsedAsInterpolatedStringArg
| MethodOverloadsCache
| ImplicitDIMCoverage
| PreprocessorElif
| ExtensionConstraintSolutions
| ExceptionFieldSerializationSupport
| ErrorOnMissingSignatureAttribute
| RecordConstructorSyntax
| NotNullIfNotNull
| DirectDelegateConstruction
| AccessProtectedBaseFieldFromClosure
| ImprovedImpliedArgumentNamesPartTwo
| RecordSpreads
| RequireNamedArguments
| TypeArgumentDependencyOrdering
| ErrorOnBitwiseOpsOnNonIntegralEnums
| OptimizeClosureIfNotInlined
| ReraiseInComputationExpressions
/// LanguageVersion management
type LanguageVersion =
/// Create a LanguageVersion management object
new: string * ?disabledFeaturesArray: LanguageFeature array -> LanguageVersion
/// Is the selected LanguageVersion valid
static member ContainsVersion: string -> bool
/// Is the selected LanguageVersion currently supported
static member IsVersionSupported: string -> bool
/// Has preview been explicitly specified
member IsPreviewEnabled: bool
/// Does the selected LanguageVersion support the specified feature
member SupportsFeature: LanguageFeature -> bool
/// Get the disabled features
member DisabledFeatures: LanguageFeature array
/// Create a new LanguageVersion with updated disabled features
member WithDisabledFeatures: LanguageFeature array -> LanguageVersion
/// Get the list of valid versions
static member ValidVersions: string[]
/// Get the list of valid options
static member ValidOptions: string[]
/// Get the specified LanguageVersion
member SpecifiedVersion: decimal
/// Get the text used to specify the version, several of which may map to the same version
member VersionText: string
/// Get the specified LanguageVersion as a string
member SpecifiedVersionString: string
/// Get a string name for the given feature.
static member GetFeatureString: feature: LanguageFeature -> string
/// Get a version string associated with the given feature.
static member GetFeatureVersionString: feature: LanguageFeature -> string
/// Try to parse a feature name string to a LanguageFeature option
static member TryParseFeature: featureName: string -> LanguageFeature option
static member Default: LanguageVersion