@@ -32,7 +32,9 @@ defmodule ElixirSense.Providers.Completion.Reducers.Returns do
3232
3333 % State.SpecInfo { specs: info_specs } ->
3434 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+ ] ,
3638 return <- Introspection . get_returns_from_spec_ast ( quoted ) do
3739 format_return ( return )
3840 end
@@ -49,7 +51,9 @@ defmodule ElixirSense.Providers.Completion.Reducers.Returns do
4951
5052 % State.SpecInfo { specs: info_specs } ->
5153 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+ ] ,
5357 return <- Introspection . get_returns_from_spec_ast ( quoted ) do
5458 format_return ( return )
5559 end
@@ -68,7 +72,9 @@ defmodule ElixirSense.Providers.Completion.Reducers.Returns do
6872
6973 % State.SpecInfo { specs: info_specs } ->
7074 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+ ] ,
7278 return <- Introspection . get_returns_from_spec_ast ( quoted ) do
7379 format_return ( return )
7480 end
0 commit comments