aboutsummaryrefslogtreecommitdiffstats
path: root/lib/edoc/src/edoc.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2014-10-31 10:05:51 +0100
committerBjörn Gustavsson <[email protected]>2015-04-30 12:15:25 +0200
commit2328a1b5baf0e154968d975a26db8645747e9411 (patch)
tree1f96e77111d95102a21356e52005c93be8e3a293 /lib/edoc/src/edoc.erl
parentd70818e34708114df1d4d16f5512ce584309a292 (diff)
downloadotp-2328a1b5baf0e154968d975a26db8645747e9411.tar.gz
otp-2328a1b5baf0e154968d975a26db8645747e9411.tar.bz2
otp-2328a1b5baf0e154968d975a26db8645747e9411.zip
edoc: Use module erl_anno
Diffstat (limited to 'lib/edoc/src/edoc.erl')
-rw-r--r--lib/edoc/src/edoc.erl9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/edoc/src/edoc.erl b/lib/edoc/src/edoc.erl
index 88e7ab5346..90f1fc3071 100644
--- a/lib/edoc/src/edoc.erl
+++ b/lib/edoc/src/edoc.erl
@@ -689,13 +689,12 @@ scan_and_parse(Epp) ->
fix_last_line(Toks0) ->
Toks1 = lists:reverse(Toks0),
- {line, LastLine} = erl_scan:token_info(hd(Toks1), line),
+ LastLine = erl_scan:line(hd(Toks1)),
fll(Toks1, LastLine, []).
-fll([{Category, Attributes0, Symbol} | L], LastLine, Ts) ->
- F = fun(_OldLine) -> LastLine end,
- Attributes = erl_scan:set_attribute(line, Attributes0, F),
- lists:reverse(L, [{Category, Attributes, Symbol} | Ts]);
+fll([{Category, Anno0, Symbol} | L], LastLine, Ts) ->
+ Anno = erl_anno:set_line(LastLine, Anno0),
+ lists:reverse(L, [{Category, Anno, Symbol} | Ts]);
fll([T | L], LastLine, Ts) ->
fll(L, LastLine, [T | Ts]);
fll(L, _LastLine, Ts) ->