diff options
author | Hans Bolinder <[email protected]> | 2014-10-31 10:05:51 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-04-30 12:15:25 +0200 |
commit | 2328a1b5baf0e154968d975a26db8645747e9411 (patch) | |
tree | 1f96e77111d95102a21356e52005c93be8e3a293 /lib/edoc/src/edoc_parser.yrl | |
parent | d70818e34708114df1d4d16f5512ce584309a292 (diff) | |
download | otp-2328a1b5baf0e154968d975a26db8645747e9411.tar.gz otp-2328a1b5baf0e154968d975a26db8645747e9411.tar.bz2 otp-2328a1b5baf0e154968d975a26db8645747e9411.zip |
edoc: Use module erl_anno
Diffstat (limited to 'lib/edoc/src/edoc_parser.yrl')
-rw-r--r-- | lib/edoc/src/edoc_parser.yrl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/edoc/src/edoc_parser.yrl b/lib/edoc/src/edoc_parser.yrl index 48c01c8dce..835e7ccaa6 100644 --- a/lib/edoc/src/edoc_parser.yrl +++ b/lib/edoc/src/edoc_parser.yrl @@ -338,7 +338,7 @@ build_def(S, P, As, T) -> args = lists:reverse(As)}, type = T}; false -> - return_error(element(2, P), "variable expected after '('") + return_error(tok_line(P), "variable expected after '('") end. all_vars([#t_var{} | As]) -> @@ -452,7 +452,7 @@ parse_throws(S, L) -> %% --------------------------------------------------------------------- --spec throw_error(term(), erl_scan:line()) -> no_return(). +-spec throw_error(term(), erl_anno:line()) -> no_return(). throw_error({parse_spec, E}, L) -> throw_error({"specification", E}, L); |