forked from dotnet/fsharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSR.fs
More file actions
169 lines (164 loc) · 9.22 KB
/
Copy pathSR.fs
File metadata and controls
169 lines (164 loc) · 9.22 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
156
157
158
159
160
161
162
163
164
165
166
167
168
// Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.FSharp.Core
module internal SR =
#if FX_RESHAPED_REFLECTION
open System.Reflection
type TypeInThisAssembly(_dummy : obj) = class end
let private resources = new System.Resources.ResourceManager("FSCore", TypeInThisAssembly(null).GetType().GetTypeInfo().Assembly)
#else
let private resources = new System.Resources.ResourceManager("FSCore", System.Reflection.Assembly.GetExecutingAssembly())
#endif
let matchCasesIncomplete = "matchCasesIncomplete"
let resetNotSupported = "resetNotSupported"
let indexOutOfBounds = "indexOutOfBounds"
let listsHadDifferentLengths = "listsHadDifferentLengths"
let inputListWasEmpty = "inputListWasEmpty"
let enumerationNotStarted = "enumerationNotStarted"
let setContainsNoElements = "setContainsNoElements"
let enumerationAlreadyFinished = "enumerationAlreadyFinished"
let findElementNotFound = "findElementNotFound"
let findIndexElementNotFound = "findIndexElementNotFound"
let pickElementNotFound = "pickElementNotFound"
let notEnoughElements = "notEnoughElements"
let inputMustBeNonNegative = "inputMustBeNonNegative"
let inputMustBePositive = "inputMustBePositive"
let enumerationPastIntMaxValue = "enumerationPastIntMaxValue"
let inputSequenceEmpty = "inputSequenceEmpty"
let inputSequenceTooLong = "inputSequenceTooLong"
let mapCannotBeMutated = "mapCannotBeMutated"
let notComparable = "notComparable"
let outOfRange = "outOfRange"
let arraysHadDifferentLengths = "arraysHadDifferentLengths"
let arrayWasEmpty = "arrayWasEmpty"
let nonZeroBasedDisallowed = "nonZeroBasedDisallowed"
let mismatchIAREnd = "mismatchIAREnd"
let mismatchIARCancel = "mismatchIARCancel"
let syncContextNull = "syncContextNull"
let mailboxScanTimedOut = "mailboxScanTimedOut"
let mailboxReceiveTimedOut = "mailboxReceiveTimedOut"
let mailboxProcessorAlreadyStarted = "mailboxProcessorAlreadyStarted"
let mailboxProcessorPostAndReplyTimedOut = "mailboxProcessorPostAndReplyTimedOut"
let mailboxProcessorPostAndAsyncReplyTimedOut = "mailboxProcessorPostAndAsyncReplyTimedOut"
let cannotMutate = "cannotMutate"
let notAPermutation = "notAPermutation"
let failedReadEnoughBytes = "failedReadEnoughBytes"
let addressOpNotFirstClass = "addressOpNotFirstClass"
let genericCompareFail1 = "genericCompareFail1"
let notUsedForHashing = "notUsedForHashing"
let badFormatString = "badFormatString"
let dyInvDivByIntCoerce = "dyInvDivByIntCoerce"
let dyInvOpAddCoerce = "dyInvOpAddCoerce"
let dyInvOpAddOverload = "dyInvOpAddOverload"
let dyInvOpMultCoerce = "dyInvOpMultCoerce"
let dyInvOpMultOverload = "dyInvOpMultOverload"
let keyNotFound = "keyNotFound"
let stepCannotBeZero = "stepCannotBeZero"
let startCannotBeNaN = "startCannotBeNaN"
let stepCannotBeNaN = "stepCannotBeNaN"
let endCannotBeNaN = "endCannotBeNaN"
let checkInit = "checkInit"
let checkStaticInit = "checkStaticInit"
let noNegateMinValue = "noNegateMinValue"
let delegateExpected = "delegateExpected"
let invalidTupleTypes = "invalidTupleTypes"
let notATupleType = "notATupleType"
let notAFunctionType = "notAFunctionType"
let tupleIndexOutOfRange = "tupleIndexOutOfRange"
let objIsNullAndNoType = "objIsNullAndNoType"
let privateUnionType = "privateUnionType"
let notAUnionType = "notAUnionType"
let privateExceptionType = "privateExceptionType"
let notAnExceptionType = "notAnExceptionType"
let privateRecordType = "privateRecordType"
let notARecordType = "notARecordType"
let nullsNotAllowedInArray = "nullsNotAllowedInArray"
let objIsNotARecord = "objIsNotARecord"
let keyNotFoundAlt = "keyNotFoundAltMessage"
let firstClassUsesOfSplice = "firstClassUsesOfSplice"
let printfNotAFunType = "printfNotAFunType"
let printfMissingFormatSpecifier = "printfMissingFormatSpecifier"
let printfHashFormatSpecifierIllegal = "printfHashFormatSpecifierIllegal"
let printfPrecisonSpecifierIllegal = "printfPrecisonSpecifierIllegal"
let printfWidthSpecifierIllegal = "printfWidthSpecifierIllegal"
let printfSpecifierAfterIllegal = "printfSpecifierAfterIllegal"
let printfBadFormatSpecifier = "printfBadFormatSpecifier"
let printfBadIntegerForDynamicFomatter = "printfBadIntegerForDynamicFomatter"
let printfExpectedWidth = "printfExpectedWidth"
let printfExpectedPrecision = "printfExpectedPrecision"
let printfBadFloatValue = "printfBadFloatValue"
let multipleCompilationMappings = "multipleCompilationMappings"
let constructorForUnionCaseNotFound = "constructorForUnionCaseNotFound"
let moveNextNotCalledOrFinished = "moveNextNotCalledOrFinished"
let thisValueCannotBeMutated = "thisValueCannotBeMutated"
let optionValueWasNone = "optionValueWasNone"
// quotations.fs start with Q
let QmissingRecordField = "QmissingRecordField"
let QmissingUnionCase = "QmissingUnionCase"
let QinvalidCaseIndex = "QinvalidCaseIndex"
let QexpectedTwoTypes = "QexpectedTwoTypes"
let QexpectedOneType = "QexpectedOneType"
let QunrecognizedMethodCall = "QunrecognizedMethodCall"
let QunexpectedHole = "QunexpectedHole"
let QtmmExpectedFunction = "QtmmExpectedFunction"
let QtmmInvalidParam = "QtmmInvalidParam"
let QtmmFunctionArgTypeMismatch = "QtmmFunctionArgTypeMismatch"
let QtmmVarTypeNotMatchRHS = "QtmmVarTypeNotMatchRHS"
let QtmmTuple = "QtmmTuple"
let QtmmExprNotMatchTuple = "QtmmExprNotMatchTuple"
let QtmmIncorrectArgForRecord = "QtmmIncorrectArgForRecord"
let QtmmIncorrectArgForUnion = "QtmmIncorrectArgForUnion"
let QtmmExprTypeMismatch = "QtmmExprTypeMismatch"
let QtmmTrueAndFalseMustMatch = "QtmmTrueAndFalseMustMatch"
let QtmmCondMustBeBool = "QtmmCondMustBeBool"
let QtmmInitArray = "QtmmInitArray"
let QtmmBadFieldType = "QtmmBadFieldType"
let QtmmLowerUpperBoundMustBeInt = "QtmmLowerUpperBoundMustBeInt"
let QtmmLoopBodyMustBeLambdaTakingInteger = "QtmmLoopBodyMustBeLambdaTakingInteger"
let QtmmGuardMustBeBool = "QtmmGuardMustBeBool"
let QtmmBodyMustBeUnit = "QtmmBodyMustBeUnit"
let QtmmFunTypeNotMatchDelegate = "QtmmFunTypeNotMatchDelegate"
let QtmmRaw = "QtmmRaw"
let QtmmExprHasWrongType = "QtmmExprHasWrongType"
let QincorrectNumArgs = "QincorrectNumArgs"
let QincorrectType = "QincorrectType"
let QincorrectInstanceType = "QincorrectInstanceType"
let QinvalidFuncType = "QinvalidFuncType"
let QtupleLengthsDiffer = "QtupleLengthsDiffer"
let QtupleAccessOutOfRange = "QtupleAccessOutOfRange"
let QincompatibleRecordLength = "QincompatibleRecordLength"
let QunionNeedsDiffNumArgs = "QunionNeedsDiffNumArgs"
let QstaticWithReceiverObject = "QstaticWithReceiverObject"
let QnonStaticNoReceiverObject = "QnonStaticNoReceiverObject"
let QwritingGetOnly = "QwritingGetOnly"
let QreadingSetOnly = "QreadingSetOnly"
let QparentCannotBeNull = "QparentCannotBeNull"
let QfailedToBindProperty = "QfailedToBindProperty"
let QfailedToBindField = "QfailedToBindField"
let QfailedToBindConstructor = "QfailedToBindConstructor"
let QfailedToBindTypeInAssembly = "QfailedToBindTypeInAssembly"
let QwrongNumOfTypeArgs = "QwrongNumOfTypeArgs"
let QillFormedAppOrLet = "QillFormedAppOrLet"
let QcannotTakeAddress = "QcannotTakeAddress"
let QcannotBindToMethod = "QcannotBindToMethod"
let QcannotBindProperty = "QcannotBindProperty"
let QcannotBindFunction = "QcannotBindFunction"
let QfailedToBindAssembly = "QfailedToBindAssembly"
let QtypeArgumentOutOfRange = "QtypeArgumentOutOfRange"
let controlContinuationInvokedMultipleTimes = "controlContinuationInvokedMultipleTimes"
let invalidRecordTypeConstructorNotDefined = "invalidRecordTypeConstructorNotDefined"
let invalidTupleTypeConstructorNotDefined = "invalidTupleTypeConstructorNotDefined"
let thenByError = "thenByError"
let failDueToUnsupportedInputTypeInSumByOrAverageBy = "failDueToUnsupportedInputTypeInSumByOrAverageBy"
let unsupportedIfThenElse = "unsupportedIfThenElse"
let unsupportedQueryConstruct = "unsupportedQueryConstruct"
let unsupportedQueryConstructKind = "unsupportedQueryConstructKind"
let unsupportedQueryCall = "unsupportedQueryCall"
let unsupportedQueryProperty = "unsupportedQueryProperty"
let GetString(name:System.String) : System.String =
resources.GetString(name, System.Globalization.CultureInfo.CurrentUICulture)
let GetString1(name:System.String, arg1:System.String) : System.String =
System.String.Format(resources.GetString(name, System.Globalization.CultureInfo.CurrentUICulture), arg1)
let GetString2(name:System.String, arg1:System.String, arg2:System.String) : System.String =
System.String.Format(resources.GetString(name, System.Globalization.CultureInfo.CurrentUICulture), arg1, arg2)
let GetString3(name:System.String, arg1:System.String, arg2:System.String, arg3:System.String) : System.String =
System.String.Format(resources.GetString(name, System.Globalization.CultureInfo.CurrentUICulture), arg1, arg2, arg3)