@@ -4823,7 +4823,6 @@ module M
48234823
48244824let f (x: option<_>) = x.IsSome, x.IsNone
48254825
4826- (*
48274826[<CompilationRepresentation(CompilationRepresentationFlags.UseNullAsTrueValue)>]
48284827type C =
48294828 | A
@@ -4832,7 +4831,6 @@ type C =
48324831 member x.IsItAnAMethod() = match x with A -> true | B _ -> false
48334832
48344833let g (x: C) = x.IsItAnA,x.IsItAnAMethod()
4835- *)
48364834 """
48374835
48384836 File.WriteAllText( fileName1, fileSource1)
@@ -4848,6 +4846,32 @@ let ``Test Project40 all symbols`` () =
48484846 let allSymbolUses = wholeProjectResults.GetAllUsesOfAllSymbols() |> Async.RunSynchronously
48494847 let allSymbolUsesInfo = [ for s in allSymbolUses -> s.Symbol.DisplayName, tups s.RangeAlternate, attribsOfSymbol s.Symbol ]
48504848 allSymbolUsesInfo |> shouldEqual
4851- []
4849+ [( " option" , (( 4 , 10 ), ( 4 , 16 )), [ " abbrev" ]); ( " x" , (( 4 , 7 ), ( 4 , 8 )), []);
4850+ ( " x" , (( 4 , 23 ), ( 4 , 24 )), []);
4851+ ( " IsSome" , (( 4 , 23 ), ( 4 , 31 )), [ " member" ; " prop" ; " funky" ]);
4852+ ( " x" , (( 4 , 33 ), ( 4 , 34 )), []);
4853+ ( " IsNone" , (( 4 , 33 ), ( 4 , 41 )), [ " member" ; " prop" ; " funky" ]);
4854+ ( " f" , (( 4 , 4 ), ( 4 , 5 )), [ " val" ]);
4855+ ( " CompilationRepresentationAttribute" , (( 6 , 2 ), ( 6 , 27 )), [ " class" ]);
4856+ ( " CompilationRepresentationAttribute" , (( 6 , 2 ), ( 6 , 27 )), [ " class" ]);
4857+ ( " CompilationRepresentationAttribute" , (( 6 , 2 ), ( 6 , 27 )), [ " member" ]);
4858+ ( " CompilationRepresentationFlags" , (( 6 , 28 ), ( 6 , 58 )),
4859+ [ " enum" ; " valuetype" ]);
4860+ ( " UseNullAsTrueValue" , (( 6 , 28 ), ( 6 , 77 )), [ " field" ; " static" ; " 8" ]);
4861+ ( " string" , (( 9 , 11 ), ( 9 , 17 )), [ " abbrev" ]);
4862+ ( " string" , (( 9 , 11 ), ( 9 , 17 )), [ " abbrev" ]); ( " A" , (( 8 , 6 ), ( 8 , 7 )), []);
4863+ ( " B" , (( 9 , 6 ), ( 9 , 7 )), []); ( " C" , (( 7 , 5 ), ( 7 , 6 )), [ " union" ]);
4864+ ( " IsItAnA" , (( 10 , 13 ), ( 10 , 20 )), [ " member" ; " getter" ; " funky" ]);
4865+ ( " IsItAnAMethod" , (( 11 , 13 ), ( 11 , 26 )), [ " member" ; " funky" ]);
4866+ ( " x" , (( 10 , 11 ), ( 10 , 12 )), []); ( " x" , (( 10 , 29 ), ( 10 , 30 )), []);
4867+ ( " A" , (( 10 , 36 ), ( 10 , 37 )), []); ( " B" , (( 10 , 48 ), ( 10 , 49 )), []);
4868+ ( " x" , (( 11 , 11 ), ( 11 , 12 )), []); ( " x" , (( 11 , 37 ), ( 11 , 38 )), []);
4869+ ( " A" , (( 11 , 44 ), ( 11 , 45 )), []); ( " B" , (( 11 , 56 ), ( 11 , 57 )), []);
4870+ ( " C" , (( 13 , 10 ), ( 13 , 11 )), [ " union" ]); ( " x" , (( 13 , 7 ), ( 13 , 8 )), []);
4871+ ( " x" , (( 13 , 15 ), ( 13 , 16 )), []);
4872+ ( " IsItAnA" , (( 13 , 15 ), ( 13 , 24 )), [ " member" ; " prop" ; " funky" ]);
4873+ ( " x" , (( 13 , 25 ), ( 13 , 26 )), []);
4874+ ( " IsItAnAMethod" , (( 13 , 25 ), ( 13 , 40 )), [ " member" ; " funky" ]);
4875+ ( " g" , (( 13 , 4 ), ( 13 , 5 )), [ " val" ]); ( " M" , (( 2 , 7 ), ( 2 , 8 )), [ " module" ])]
48524876
48534877
0 commit comments