-
Notifications
You must be signed in to change notification settings - Fork 858
Expand file tree
/
Copy pathLanguageFeatures.fsi
More file actions
155 lines (135 loc) · 5.31 KB
/
LanguageFeatures.fsi
File metadata and controls
155 lines (135 loc) · 5.31 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
// 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 =
| SingleUnderscorePattern
| WildCardInForLoop
| RelaxWhitespace
| RelaxWhitespace2
| StrictIndentation
| NameOf
| ImplicitYield
| OpenTypeDeclaration
| DotlessFloat32Literal
| PackageManagement
| FromEndSlicing
| FixedIndexSlice3d4d
| AndBang
| ResumableStateMachines
| NullableOptionalInterop
| DefaultInterfaceMemberConsumption
| WitnessPassing
| AdditionalTypeDirectedConversions
| InterfacesWithMultipleGenericInstantiation
| StringInterpolation
| OverloadsForCustomOperations
| ExpandedMeasurables
| NullnessChecking
| StructActivePattern
| PrintfBinaryFormat
| IndexerNotationWithoutDot
| RefCellNotationInformationals
| UseBindingValueDiscard
| UnionIsPropertiesVisible
| NonVariablePatternsToRightOfAsPatterns
| AttributesToRightOfModuleKeyword
| BetterExceptionPrinting
| DelegateTypeNameResolutionFix
| ReallyLongLists
| ErrorOnDeprecatedRequireQualifiedAccess
| RequiredPropertiesSupport
| InitPropertiesSupport
| LowercaseDUWhenRequireQualifiedAccess
| InterfacesWithAbstractStaticMembers
| SelfTypeConstraints
| AccessorFunctionShorthand
| MatchNotAllowedForUnionCaseWithNoData
| CSharpExtensionAttributeNotRequired
| ErrorForNonVirtualMembersOverrides
| WarningWhenInliningMethodImplNoInlineMarkedFunction
| EscapeDotnetFormattableStrings
| ArithmeticInLiterals
| ErrorReportingOnStaticClasses
| TryWithInSeqExpression
| WarningWhenCopyAndUpdateRecordChangesAllFields
| StaticMembersInInterfaces
| NonInlineLiteralsAsPrintfFormat
| NestedCopyAndUpdate
| ExtendedStringInterpolation
| WarningWhenMultipleRecdTypeChoice
| ImprovedImpliedArgumentNames
| DiagnosticForObjInference
| ConstraintIntersectionOnFlexibleTypes
| StaticLetInRecordsDusEmptyTypes
| WarningWhenTailRecAttributeButNonTailRecUsage
| UnmanagedConstraintCsharpInterop
| WhileBang
| ReuseSameFieldsInStructUnions
| ExtendedFixedBindings
| PreferStringGetPinnableReference
/// 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
| WarnWhenFunctionValueUsedAsInterpolatedStringArg
| MethodOverloadsCache
| ImplicitDIMCoverage
| PreprocessorElif
| SupportILFieldsInSRTP
/// 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
/// Has been explicitly specified as 4.6, 4.7 or 5.0
member IsExplicitlySpecifiedAs50OrBefore: unit -> 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