@@ -98,8 +98,7 @@ defmodule ElixirSense.Core.BindingTest do
9898 __struct__: { :atom , ElixirSenseExample.ModuleWithTypedStruct } ,
9999 other: nil ,
100100 typed_field: nil
101- ] , { :atom , ElixirSenseExample.ModuleWithTypedStruct } ,
102- nil } ==
101+ ] , { :atom , ElixirSenseExample.ModuleWithTypedStruct } , nil } ==
103102 Binding . expand (
104103 @ env ,
105104 { :struct , [ ] , { :atom , ElixirSenseExample.ModuleWithTypedStruct } , nil }
@@ -205,8 +204,7 @@ defmodule ElixirSense.Core.BindingTest do
205204 __struct__: { :atom , ElixirSenseExample.ModuleWithTypedStruct } ,
206205 other: { :atom , :a } ,
207206 typed_field: { :atom , :b }
208- ] , { :atom , ElixirSenseExample.ModuleWithTypedStruct } ,
209- nil } ==
207+ ] , { :atom , ElixirSenseExample.ModuleWithTypedStruct } , nil } ==
210208 Binding . expand (
211209 @ env ,
212210 { :struct , [ typed_field: { :atom , :b } ] ,
@@ -222,8 +220,7 @@ defmodule ElixirSense.Core.BindingTest do
222220 __struct__: { :atom , ElixirSenseExample.ModuleWithTypedStruct } ,
223221 other: { :atom , :a } ,
224222 typed_field: { :atom , :b }
225- ] , { :atom , ElixirSenseExample.ModuleWithTypedStruct } ,
226- nil } ==
223+ ] , { :atom , ElixirSenseExample.ModuleWithTypedStruct } , nil } ==
227224 Binding . expand (
228225 @ env ,
229226 { :map , [ typed_field: { :atom , :b } ] ,
@@ -238,8 +235,7 @@ defmodule ElixirSense.Core.BindingTest do
238235 __struct__: { :atom , ElixirSenseExample.ModuleWithTypedStruct } ,
239236 other: nil ,
240237 typed_field: nil
241- ] , { :atom , ElixirSenseExample.ModuleWithTypedStruct } ,
242- nil } ==
238+ ] , { :atom , ElixirSenseExample.ModuleWithTypedStruct } , nil } ==
243239 Binding . expand (
244240 @ env
245241 |> Map . put ( :attributes , [
@@ -1044,8 +1040,7 @@ defmodule ElixirSense.Core.BindingTest do
10441040 [
10451041 __struct__: { :atom , ElixirSenseExample.FunctionsWithReturnSpec } ,
10461042 abc: { :map , [ key: { :atom , nil } ] , nil }
1047- ] , { :atom , ElixirSenseExample.FunctionsWithReturnSpec } ,
1048- nil } ==
1043+ ] , { :atom , ElixirSenseExample.FunctionsWithReturnSpec } , nil } ==
10491044 Binding . expand (
10501045 @ env
10511046 |> Map . put ( :vars , [
@@ -1062,8 +1057,7 @@ defmodule ElixirSense.Core.BindingTest do
10621057 test "remote call fun with spec remote t expanding to struct" do
10631058 assert { :struct ,
10641059 [ __struct__: { :atom , ElixirSenseExample.FunctionsWithReturnSpec.Remote } , abc: nil ] ,
1065- { :atom , ElixirSenseExample.FunctionsWithReturnSpec.Remote } ,
1066- nil } ==
1060+ { :atom , ElixirSenseExample.FunctionsWithReturnSpec.Remote } , nil } ==
10671061 Binding . expand (
10681062 @ env
10691063 |> Map . put ( :vars , [
@@ -1080,8 +1074,7 @@ defmodule ElixirSense.Core.BindingTest do
10801074 test "remote call fun with spec struct" do
10811075 assert { :struct ,
10821076 [ __struct__: { :atom , ElixirSenseExample.FunctionsWithReturnSpec } , abc: nil ] ,
1083- { :atom , ElixirSenseExample.FunctionsWithReturnSpec } ,
1084- nil } ==
1077+ { :atom , ElixirSenseExample.FunctionsWithReturnSpec } , nil } ==
10851078 Binding . expand (
10861079 @ env
10871080 |> Map . put ( :vars , [
@@ -2606,8 +2599,7 @@ defmodule ElixirSense.Core.BindingTest do
26062599 { :__struct__ , { :atom , State } } ,
26072600 { :abc , nil } ,
26082601 { :formatted , { :variable , :formatted , 1 } }
2609- ] , { :atom , State } ,
2610- nil } ==
2602+ ] , { :atom , State } , nil } ==
26112603 Binding . expand (
26122604 @ env
26132605 |> Map . merge ( % {
@@ -2708,8 +2700,7 @@ defmodule ElixirSense.Core.BindingTest do
27082700 { :__struct__ , { :atom , State } } ,
27092701 { :abc , { :atom , X } } ,
27102702 { :formatted , { :variable , :formatted , 1 } }
2711- ] , { :atom , State } ,
2712- nil } ==
2703+ ] , { :atom , State } , nil } ==
27132704 Binding . expand (
27142705 @ env
27152706 |> Map . merge ( % {
@@ -2731,8 +2722,7 @@ defmodule ElixirSense.Core.BindingTest do
27312722 { :__struct__ , { :atom , State } } ,
27322723 { :abc , { :atom , X } } ,
27332724 { :formatted , { :variable , :formatted , 1 } }
2734- ] , { :atom , State } ,
2735- nil } ==
2725+ ] , { :atom , State } , nil } ==
27362726 Binding . expand (
27372727 @ env
27382728 |> Map . merge ( % {
@@ -2757,8 +2747,7 @@ defmodule ElixirSense.Core.BindingTest do
27572747 { :formatted , { :variable , :formatted , 1 } } ,
27582748 { :not_existing , nil } ,
27592749 { :abc , { :atom , X } }
2760- ] , nil ,
2761- nil } ==
2750+ ] , nil , nil } ==
27622751 Binding . expand (
27632752 @ env ,
27642753 { :intersection ,
@@ -2776,8 +2765,7 @@ defmodule ElixirSense.Core.BindingTest do
27762765 { :formatted , { :variable , :formatted , 1 } } ,
27772766 { :not_existing , nil } ,
27782767 { :abc , { :atom , X } }
2779- ] , nil ,
2780- nil } ==
2768+ ] , nil , nil } ==
27812769 Binding . expand (
27822770 @ env ,
27832771 { :intersection ,
@@ -2794,8 +2782,7 @@ defmodule ElixirSense.Core.BindingTest do
27942782 { :__struct__ , { :atom , State } } ,
27952783 { :abc , { :atom , X } } ,
27962784 { :formatted , { :variable , :formatted , 1 } }
2797- ] , { :atom , State } ,
2798- nil } ==
2785+ ] , { :atom , State } , nil } ==
27992786 Binding . expand (
28002787 @ env
28012788 |> Map . merge ( % {
@@ -2817,8 +2804,7 @@ defmodule ElixirSense.Core.BindingTest do
28172804 { :__struct__ , { :atom , State } } ,
28182805 { :abc , { :atom , X } } ,
28192806 { :formatted , { :variable , :formatted , 1 } }
2820- ] , { :atom , State } ,
2821- nil } ==
2807+ ] , { :atom , State } , nil } ==
28222808 Binding . expand (
28232809 @ env
28242810 |> Map . merge ( % {
@@ -2842,8 +2828,7 @@ defmodule ElixirSense.Core.BindingTest do
28422828 { :__struct__ , { :atom , State } } ,
28432829 { :abc , { :atom , X } } ,
28442830 { :formatted , { :variable , :formatted , 1 } }
2845- ] , { :atom , State } ,
2846- nil } ==
2831+ ] , { :atom , State } , nil } ==
28472832 Binding . expand (
28482833 @ env
28492834 |> Map . merge ( % {
0 commit comments