PageRenderTime 47ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/compiler/2.0/Aug2011.1/src/fsharp/unittests/UnittestsGeneratedInterfaceFileToTestGotoDefinition.ReservedName.fsi

#
F# | 230 lines | 224 code | 6 blank | 0 comment | 0 complexity | dd00289f9b3cd500d2a12789f3770952 MD5 | raw file
Possible License(s): CC-BY-SA-3.0, Apache-2.0
  1. namespace TestLibrary
  2. module LambdaCalculus = begin
  3. exception LambdaFailure of string
  4. module Syntax = begin
  5. type Binder = string
  6. type Expression =
  7. | Variable of Binder
  8. | Lambda of (Binder * Expression)
  9. | Apply of (Expression * Expression)
  10. val stringOfExpression : Expression -> string
  11. end
  12. module Evaluation = begin
  13. module Environment = begin
  14. type Env = Map<Syntax.Binder,Syntax.Expression>
  15. exception EnvironmentFailure of string
  16. val add :
  17. Env ->
  18. Syntax.Binder ->
  19. Syntax.Expression -> Map<Syntax.Binder,Syntax.Expression>
  20. val lookup : Env -> Syntax.Binder -> Syntax.Expression
  21. end
  22. exception EvalFailure = LambdaFailure
  23. val eval : Environment.Env -> Syntax.Expression -> Syntax.Expression
  24. end
  25. end
  26. module OtherTests = begin
  27. type Point =
  28. {x: int;
  29. y: int;}
  30. val showPoint : Point -> string
  31. type Shape =
  32. class
  33. new : initVertices:Point list -> Shape
  34. member
  35. addFilterMap : pr:(Point -> bool) ->
  36. f:(Point -> Point) -> ps:Point list -> unit
  37. member addVertex : p:Point -> unit
  38. member clearVertices : unit -> unit
  39. member fold : f:('a -> Point -> 'a) -> acc:'a -> 'a
  40. member getVertices : unit -> Point list
  41. member map : f:(Point -> Point) -> unit
  42. member refold : f:('a -> Point -> 'a) -> acc:'a -> 'a
  43. member subsume : s:Shape -> unit
  44. member transpose : unit -> unit
  45. static member combine : s1:Shape -> s2:Shape -> Shape
  46. end
  47. end
  48. namespace Internal.Utilities
  49. module internal FSharpEnvironment = begin
  50. val DotNetBuildString : string
  51. val FSharpCoreLibRunningVersion : string option
  52. val FSharpTeamVersionNumber : string
  53. val FSharpBinaryMetadataFormatRevision : string
  54. val RegOpenKeyExW :
  55. System.UIntPtr * string * uint32 * int * byref<System.UIntPtr> -> uint32
  56. val RegQueryValueExW :
  57. System.UIntPtr * string * uint32 * byref<uint32> * System.IntPtr *
  58. byref<int> -> uint32
  59. val RegCloseKey : System.UIntPtr -> uint32
  60. module Option = begin
  61. val ofString : string -> string option
  62. end
  63. val maxPath : int
  64. val maxDataLength : int
  65. val KEY_WOW64_DEFAULT : int
  66. val KEY_WOW64_32KEY : int
  67. val HKEY_LOCAL_MACHINE : System.UIntPtr
  68. val KEY_QUERY_VALUE : int
  69. val REG_SZ : uint32
  70. val GetDefaultRegistryStringValueViaDotNet : string -> string option
  71. val Get32BitRegistryStringValueViaPInvoke : string -> string option
  72. val is32Bit : bool
  73. val tryRegKey : string -> string option
  74. val tryCurrentDomain : unit -> string option
  75. val tryAppConfig : string -> string option
  76. val BinFolderOfDefaultFSharpCompiler : string option
  77. end
  78. namespace Internal.Utilities.Collections
  79. [<StructuralEqualityAttribute (); NoComparisonAttribute ()>]
  80. type internal ValueStrength<'T> =
  81. | Strong of 'T
  82. | Weak of System.WeakReference
  83. type internal AgedLookup<'TKey,'TValue> =
  84. class
  85. new : keepStrongly:int * areSame:('TKey * 'TKey -> bool) ->
  86. AgedLookup<'TKey,'TValue>
  87. member Clear : unit -> unit
  88. member Put : 'TKey * 'TValue -> unit
  89. member Remove : key:'TKey -> unit
  90. member ToSeq : unit -> seq<'TKey * 'TValue>
  91. member TryGet : key:'TKey -> 'TValue option
  92. member TryGetKeyValue : key:'TKey -> ('TKey * 'TValue) option
  93. member TryPeekKeyValue : key:'TKey -> ('TKey * 'TValue) option
  94. member MostRecent : ('TKey * 'TValue) option
  95. end
  96. type internal MruCache<'TKey,'TValue> =
  97. class
  98. new : n:int * compute:('TKey -> 'TValue) * areSame:('TKey * 'TKey -> bool) *
  99. ?isStillValid:('TKey * 'TValue -> bool) *
  100. ?areSameForSubsumption:('TKey * 'TKey -> bool) *
  101. ?logComputedNewValue:('TKey -> unit) *
  102. ?logUsedCachedValue:('TKey -> unit) -> MruCache<'TKey,'TValue>
  103. member Clear : unit -> unit
  104. member Get : key:'TKey -> 'TValue
  105. member GetAvailable : key:'TKey -> 'TValue option
  106. member Remove : key:'TKey -> unit
  107. member SetAlternate : key:'TKey * value:'TValue -> unit
  108. member MostRecent : ('TKey * 'TValue) option
  109. end
  110. [<SealedAttribute ()>]
  111. type internal List =
  112. class
  113. static member
  114. GroupByFirst : l:('TKey * 'TValue) list -> ('TKey * 'TValue list) list
  115. when 'TKey : equality
  116. end
  117. namespace Microsoft.FSharp.UnitTest
  118. module FilesystemHelpers = begin
  119. val NewTempDirectory : System.String -> string
  120. val DoWithTempFile : string -> (string -> 'a) -> 'a
  121. end
  122. namespace Unittests.General
  123. [<NUnit.Framework.TestFixture ()>]
  124. type GeneralUnitTests =
  125. class
  126. new : unit -> GeneralUnitTests
  127. [<NUnit.Framework.Test ()>]
  128. member ( PublicSurfaceArea.DotNetReflection ) : unit -> unit
  129. end
  130. namespace Unittests.Build
  131. module HandyExtensions = begin
  132. type String with
  133. member MatchesPattern : p:string -> bool
  134. type String with
  135. member AssertMatchesPattern : p:string -> unit
  136. end
  137. type MyLogger =
  138. class
  139. interface Microsoft.Build.Framework.ILogger
  140. new : f:(string -> unit) -> MyLogger
  141. end
  142. type FauxHostObject =
  143. class
  144. interface Microsoft.Build.Framework.ITaskHost
  145. new : unit -> FauxHostObject
  146. member
  147. Compile : compile:System.Converter<int,int> * flags:string [] *
  148. sources:string [] -> int
  149. member Flags : string []
  150. member Sources : string []
  151. end
  152. [<NUnit.Framework.TestFixture ()>]
  153. type TheTests =
  154. class
  155. new : unit -> TheTests
  156. [<NUnit.Framework.Test ()>]
  157. member MissingToolPathError : unit -> unit
  158. [<NUnit.Framework.SetUp ()>]
  159. member Setup : unit -> unit
  160. [<NUnit.Framework.TearDown ()>]
  161. member TearDown : unit -> unit
  162. [<NUnit.Framework.Test ()>]
  163. member TestAllCombo : unit -> unit
  164. [<NUnit.Framework.Test ()>]
  165. member TestCodePage : unit -> unit
  166. [<NUnit.Framework.Test ()>]
  167. member TestDebugSymbols : unit -> unit
  168. [<NUnit.Framework.Test ()>]
  169. member TestDebugType : unit -> unit
  170. [<NUnit.Framework.Test ()>]
  171. member TestDefineConstants : unit -> unit
  172. [<NUnit.Framework.Test ()>]
  173. member TestDisabledWarnings1 : unit -> unit
  174. [<NUnit.Framework.Test ()>]
  175. member TestDisabledWarnings2 : unit -> unit
  176. [<NUnit.Framework.Test ()>]
  177. member TestDocumentationFile : unit -> unit
  178. [<NUnit.Framework.Test ()>]
  179. member TestGenerateInterfaceFile : unit -> unit
  180. [<NUnit.Framework.Test ()>]
  181. member TestKeyFile : unit -> unit
  182. [<NUnit.Framework.Test ()>]
  183. member TestNoFramework : unit -> unit
  184. [<NUnit.Framework.Test ()>]
  185. member TestOptimize : unit -> unit
  186. [<NUnit.Framework.Test ()>]
  187. member TestOtherFlags : unit -> unit
  188. [<NUnit.Framework.Test ()>]
  189. member TestOutputAssembly : unit -> unit
  190. [<NUnit.Framework.Test ()>]
  191. member TestPdbFile : unit -> unit
  192. [<NUnit.Framework.Test ()>]
  193. member TestPlatform1 : unit -> unit
  194. [<NUnit.Framework.Test ()>]
  195. member TestPlatform2 : unit -> unit
  196. [<NUnit.Framework.Test ()>]
  197. member TestPlatform3 : unit -> unit
  198. [<NUnit.Framework.Test ()>]
  199. member TestReferencePath : unit -> unit
  200. [<NUnit.Framework.Test ()>]
  201. member TestReferencePathWithSpaces : unit -> unit
  202. [<NUnit.Framework.Test ()>]
  203. member TestReferences : unit -> unit
  204. [<NUnit.Framework.Test ()>]
  205. member TestResources : unit -> unit
  206. [<NUnit.Framework.Test ()>]
  207. member TestSources : unit -> unit
  208. [<NUnit.Framework.Test ()>]
  209. member TestTailcalls : unit -> unit
  210. [<NUnit.Framework.Test ()>]
  211. member TestTargetType1 : unit -> unit
  212. [<NUnit.Framework.Test ()>]
  213. member TestTargetType2 : unit -> unit
  214. [<NUnit.Framework.Test ()>]
  215. member TestTargetType3 : unit -> unit
  216. [<NUnit.Framework.Test ()>]
  217. member TestUtf8Output : unit -> unit
  218. [<NUnit.Framework.Test ()>]
  219. member TestVersionFile : unit -> unit
  220. [<NUnit.Framework.Test ()>]
  221. member TestWin32Manifest : unit -> unit
  222. [<NUnit.Framework.Test ()>]
  223. member TestWin32Res : unit -> unit
  224. end