forked from dotnet/fsharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLanguageFeatures.fsi
More file actions
118 lines (102 loc) · 3.84 KB
/
Copy pathLanguageFeatures.fsi
File metadata and controls
118 lines (102 loc) · 3.84 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
// 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
| StructActivePattern
| PrintfBinaryFormat
| IndexerNotationWithoutDot
| RefCellNotationInformationals
| UseBindingValueDiscard
| UnionIsPropertiesVisible
| NonVariablePatternsToRightOfAsPatterns
| AttributesToRightOfModuleKeyword
| MLCompatRevisions
| 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
/// LanguageVersion management
type LanguageVersion =
/// Create a LanguageVersion management object
new: string -> LanguageVersion
/// Get the list of valid versions
static member ContainsVersion: 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 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
static member Default: LanguageVersion