@@ -2165,10 +2165,10 @@ defmodule ElixirSense.Core.MetadataBuilderTest do
2165
2165
|> string_to_state
2166
2166
2167
2167
assert state . calls == % {
2168
- 5 => [ % { arity: 0 , col: 15 , func: :func1 , line: 5 , mod: NyModule } ] ,
2169
- 6 => [ % { arity: 0 , col: 15 , func: :func1 , line: 6 , mod: NyModule } ] ,
2170
- 7 => [ % { arity: 1 , col: 15 , func: :func2 , line: 7 , mod: NyModule } ] ,
2171
- 8 => [ % { arity: 1 , col: 19 , func: :func2 , line: 8 , mod: NyModule.Sub } ]
2168
+ 5 => [ % { arity: 0 , col: 16 , func: :func1 , line: 5 , mod: NyModule } ] ,
2169
+ 6 => [ % { arity: 0 , col: 16 , func: :func1 , line: 6 , mod: NyModule } ] ,
2170
+ 7 => [ % { arity: 1 , col: 16 , func: :func2 , line: 7 , mod: NyModule } ] ,
2171
+ 8 => [ % { arity: 1 , col: 20 , func: :func2 , line: 8 , mod: NyModule.Sub } ]
2172
2172
}
2173
2173
end
2174
2174
@@ -2186,9 +2186,9 @@ defmodule ElixirSense.Core.MetadataBuilderTest do
2186
2186
|> string_to_state
2187
2187
2188
2188
assert state . calls == % {
2189
- 3 => [ % { arity: 0 , col: 13 , func: :func1 , line: 3 , mod: :erl_mod } ] ,
2190
- 4 => [ % { arity: 0 , col: 13 , func: :func1 , line: 4 , mod: :erl_mod } ] ,
2191
- 5 => [ % { arity: 1 , col: 13 , func: :func2 , line: 5 , mod: :erl_mod } ]
2189
+ 3 => [ % { arity: 0 , col: 14 , func: :func1 , line: 3 , mod: :erl_mod } ] ,
2190
+ 4 => [ % { arity: 0 , col: 14 , func: :func1 , line: 4 , mod: :erl_mod } ] ,
2191
+ 5 => [ % { arity: 1 , col: 14 , func: :func2 , line: 5 , mod: :erl_mod } ]
2192
2192
}
2193
2193
end
2194
2194
@@ -2206,9 +2206,9 @@ defmodule ElixirSense.Core.MetadataBuilderTest do
2206
2206
|> string_to_state
2207
2207
2208
2208
assert state . calls == % {
2209
- 3 => [ % { arity: 0 , col: 20 , func: :func1 , line: 3 , mod: MyMod } ] ,
2210
- 4 => [ % { arity: 0 , col: 20 , func: :func1 , line: 4 , mod: MyMod } ] ,
2211
- 5 => [ % { arity: 1 , col: 20 , func: :func2 , line: 5 , mod: MyMod } ]
2209
+ 3 => [ % { arity: 0 , col: 21 , func: :func1 , line: 3 , mod: MyMod } ] ,
2210
+ 4 => [ % { arity: 0 , col: 21 , func: :func1 , line: 4 , mod: MyMod } ] ,
2211
+ 5 => [ % { arity: 1 , col: 21 , func: :func2 , line: 5 , mod: MyMod } ]
2212
2212
}
2213
2213
end
2214
2214
@@ -2223,7 +2223,7 @@ defmodule ElixirSense.Core.MetadataBuilderTest do
2223
2223
"""
2224
2224
|> string_to_state
2225
2225
2226
- assert state . calls == % { 3 => [ % { arity: 0 , col: 10 , func: :func , line: 3 , mod: MyMod } ] }
2226
+ assert state . calls == % { 3 => [ % { arity: 0 , col: 11 , func: :func , line: 3 , mod: MyMod } ] }
2227
2227
end
2228
2228
2229
2229
test "registers calls no arg" do
@@ -2237,7 +2237,7 @@ defmodule ElixirSense.Core.MetadataBuilderTest do
2237
2237
"""
2238
2238
|> string_to_state
2239
2239
2240
- assert state . calls == % { 3 => [ % { arity: 0 , col: 10 , func: :func , line: 3 , mod: MyMod } ] }
2240
+ assert state . calls == % { 3 => [ % { arity: 0 , col: 11 , func: :func , line: 3 , mod: MyMod } ] }
2241
2241
end
2242
2242
2243
2243
test "registers calls local no arg no parens" do
@@ -2293,7 +2293,7 @@ defmodule ElixirSense.Core.MetadataBuilderTest do
2293
2293
"""
2294
2294
|> string_to_state
2295
2295
2296
- assert state . calls == % { 3 => [ % { arity: 1 , col: 10 , func: :func , line: 3 , mod: MyMod } ] }
2296
+ assert state . calls == % { 3 => [ % { arity: 1 , col: 11 , func: :func , line: 3 , mod: MyMod } ] }
2297
2297
end
2298
2298
2299
2299
test "registers calls pipe with __MODULE__ operator no parens" do
@@ -2307,7 +2307,7 @@ defmodule ElixirSense.Core.MetadataBuilderTest do
2307
2307
"""
2308
2308
|> string_to_state
2309
2309
2310
- assert state . calls == % { 3 => [ % { arity: 1 , col: 25 , func: :func , line: 3 , mod: NyModule } ] }
2310
+ assert state . calls == % { 3 => [ % { arity: 1 , col: 26 , func: :func , line: 3 , mod: NyModule } ] }
2311
2311
end
2312
2312
2313
2313
test "registers calls pipe operator no parens" do
@@ -2321,7 +2321,7 @@ defmodule ElixirSense.Core.MetadataBuilderTest do
2321
2321
"""
2322
2322
|> string_to_state
2323
2323
2324
- assert state . calls == % { 3 => [ % { arity: 1 , col: 20 , func: :func , line: 3 , mod: MyMod } ] }
2324
+ assert state . calls == % { 3 => [ % { arity: 1 , col: 21 , func: :func , line: 3 , mod: MyMod } ] }
2325
2325
end
2326
2326
2327
2327
test "registers calls pipe operator" do
@@ -2335,7 +2335,7 @@ defmodule ElixirSense.Core.MetadataBuilderTest do
2335
2335
"""
2336
2336
|> string_to_state
2337
2337
2338
- assert state . calls == % { 3 => [ % { arity: 1 , col: 20 , func: :func , line: 3 , mod: MyMod } ] }
2338
+ assert state . calls == % { 3 => [ % { arity: 1 , col: 21 , func: :func , line: 3 , mod: MyMod } ] }
2339
2339
end
2340
2340
2341
2341
test "registers calls pipe operator with arg" do
@@ -2349,7 +2349,7 @@ defmodule ElixirSense.Core.MetadataBuilderTest do
2349
2349
"""
2350
2350
|> string_to_state
2351
2351
2352
- assert state . calls == % { 3 => [ % { arity: 2 , col: 20 , func: :func , line: 3 , mod: MyMod } ] }
2352
+ assert state . calls == % { 3 => [ % { arity: 2 , col: 21 , func: :func , line: 3 , mod: MyMod } ] }
2353
2353
end
2354
2354
2355
2355
test "registers calls pipe operator erlang module" do
@@ -2363,7 +2363,7 @@ defmodule ElixirSense.Core.MetadataBuilderTest do
2363
2363
"""
2364
2364
|> string_to_state
2365
2365
2366
- assert state . calls == % { 3 => [ % { arity: 2 , col: 22 , func: :func , line: 3 , mod: :my_mod } ] }
2366
+ assert state . calls == % { 3 => [ % { arity: 2 , col: 23 , func: :func , line: 3 , mod: :my_mod } ] }
2367
2367
end
2368
2368
2369
2369
test "registers calls pipe operator atom module" do
@@ -2377,7 +2377,7 @@ defmodule ElixirSense.Core.MetadataBuilderTest do
2377
2377
"""
2378
2378
|> string_to_state
2379
2379
2380
- assert state . calls == % { 3 => [ % { arity: 2 , col: 30 , func: :func , line: 3 , mod: MyMod } ] }
2380
+ assert state . calls == % { 3 => [ % { arity: 2 , col: 31 , func: :func , line: 3 , mod: MyMod } ] }
2381
2381
end
2382
2382
2383
2383
test "registers calls pipe operator local" do
@@ -2407,7 +2407,7 @@ defmodule ElixirSense.Core.MetadataBuilderTest do
2407
2407
2408
2408
assert state . calls == % {
2409
2409
3 => [
2410
- % { arity: 1 , col: 20 , func: :func , line: 3 , mod: MyMod } ,
2410
+ % { arity: 1 , col: 21 , func: :func , line: 3 , mod: MyMod } ,
2411
2411
% { arity: 1 , col: 31 , func: :other , line: 3 , mod: nil }
2412
2412
]
2413
2413
}
@@ -2426,8 +2426,8 @@ defmodule ElixirSense.Core.MetadataBuilderTest do
2426
2426
2427
2427
assert state . calls == % {
2428
2428
3 => [
2429
- % { arity: 1 , col: 20 , func: :func , line: 3 , mod: MyMod } ,
2430
- % { arity: 1 , col: 36 , func: :other , line: 3 , mod: Other }
2429
+ % { arity: 1 , col: 21 , func: :func , line: 3 , mod: MyMod } ,
2430
+ % { arity: 1 , col: 37 , func: :other , line: 3 , mod: Other }
2431
2431
]
2432
2432
}
2433
2433
end
@@ -2446,7 +2446,7 @@ defmodule ElixirSense.Core.MetadataBuilderTest do
2446
2446
assert state . calls == % {
2447
2447
3 => [
2448
2448
% { arity: 1 , col: 15 , func: :func_1 , line: 3 , mod: nil } ,
2449
- % { arity: 1 , col: 31 , func: :other , line: 3 , mod: Some }
2449
+ % { arity: 1 , col: 32 , func: :other , line: 3 , mod: Some }
2450
2450
]
2451
2451
}
2452
2452
end
@@ -2483,8 +2483,8 @@ defmodule ElixirSense.Core.MetadataBuilderTest do
2483
2483
|> string_to_state
2484
2484
2485
2485
assert state . calls == % {
2486
- 3 => [ % { arity: 1 , col: 16 , func: :func , line: 3 , mod: NyModule } ] ,
2487
- 4 => [ % { arity: 1 , col: 20 , func: :func , line: 4 , mod: NyModule.Sub } ]
2486
+ 3 => [ % { arity: 1 , col: 17 , func: :func , line: 3 , mod: NyModule } ] ,
2487
+ 4 => [ % { arity: 1 , col: 21 , func: :func , line: 4 , mod: NyModule.Sub } ]
2488
2488
}
2489
2489
end
2490
2490
@@ -2499,7 +2499,7 @@ defmodule ElixirSense.Core.MetadataBuilderTest do
2499
2499
"""
2500
2500
|> string_to_state
2501
2501
2502
- assert state . calls == % { 3 => [ % { arity: 1 , col: 11 , func: :func , line: 3 , mod: MyMod } ] }
2502
+ assert state . calls == % { 3 => [ % { arity: 1 , col: 12 , func: :func , line: 3 , mod: MyMod } ] }
2503
2503
end
2504
2504
2505
2505
test "registers calls capture operator external erlang module" do
@@ -2513,7 +2513,7 @@ defmodule ElixirSense.Core.MetadataBuilderTest do
2513
2513
"""
2514
2514
|> string_to_state
2515
2515
2516
- assert state . calls == % { 3 => [ % { arity: 1 , col: 14 , func: :func , line: 3 , mod: :erl_mod } ] }
2516
+ assert state . calls == % { 3 => [ % { arity: 1 , col: 15 , func: :func , line: 3 , mod: :erl_mod } ] }
2517
2517
end
2518
2518
2519
2519
test "registers calls capture operator external atom module" do
@@ -2527,7 +2527,7 @@ defmodule ElixirSense.Core.MetadataBuilderTest do
2527
2527
"""
2528
2528
|> string_to_state
2529
2529
2530
- assert state . calls == % { 3 => [ % { arity: 1 , col: 21 , func: :func , line: 3 , mod: MyMod } ] }
2530
+ assert state . calls == % { 3 => [ % { arity: 1 , col: 22 , func: :func , line: 3 , mod: MyMod } ] }
2531
2531
end
2532
2532
2533
2533
test "registers calls capture operator local" do
0 commit comments