@@ -32,7 +32,9 @@ defmodule ElixirSense.Providers.Completion.Reducers.Returns do
32
32
33
33
% State.SpecInfo { specs: info_specs } ->
34
34
for spec <- info_specs ,
35
- { :ok , { :@ , _ , [ { _ , _ , [ quoted ] } ] } } <- [ Code . string_to_quoted ( spec ) ] ,
35
+ { :ok , { :@ , _ , [ { _ , _ , [ quoted ] } ] } } <- [
36
+ Code . string_to_quoted ( spec , emit_warnings: false )
37
+ ] ,
36
38
return <- Introspection . get_returns_from_spec_ast ( quoted ) do
37
39
format_return ( return )
38
40
end
@@ -49,7 +51,9 @@ defmodule ElixirSense.Providers.Completion.Reducers.Returns do
49
51
50
52
% State.SpecInfo { specs: info_specs } ->
51
53
for spec <- info_specs ,
52
- { :ok , { :@ , _ , [ { _ , _ , [ quoted ] } ] } } <- [ Code . string_to_quoted ( spec ) ] ,
54
+ { :ok , { :@ , _ , [ { _ , _ , [ quoted ] } ] } } <- [
55
+ Code . string_to_quoted ( spec , emit_warnings: false )
56
+ ] ,
53
57
return <- Introspection . get_returns_from_spec_ast ( quoted ) do
54
58
format_return ( return )
55
59
end
@@ -68,7 +72,9 @@ defmodule ElixirSense.Providers.Completion.Reducers.Returns do
68
72
69
73
% State.SpecInfo { specs: info_specs } ->
70
74
for spec <- info_specs ,
71
- { :ok , { :@ , _ , [ { :callback , _ , [ quoted ] } ] } } <- [ Code . string_to_quoted ( spec ) ] ,
75
+ { :ok , { :@ , _ , [ { :callback , _ , [ quoted ] } ] } } <- [
76
+ Code . string_to_quoted ( spec , emit_warnings: false )
77
+ ] ,
72
78
return <- Introspection . get_returns_from_spec_ast ( quoted ) do
73
79
format_return ( return )
74
80
end
0 commit comments