aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/src/xref_scanner.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2014-10-31 09:09:31 +0100
committerBjörn Gustavsson <[email protected]>2015-04-30 12:15:24 +0200
commita3b8a7a6b93310e2d3327912253a14b8f20ad975 (patch)
tree892fdd02eebb78b2110e3f2ba7ac0b0ffd125106 /lib/tools/src/xref_scanner.erl
parentcfdcd9e762212a8fb9b4755a69bf715d937f5563 (diff)
downloadotp-a3b8a7a6b93310e2d3327912253a14b8f20ad975.tar.gz
otp-a3b8a7a6b93310e2d3327912253a14b8f20ad975.tar.bz2
otp-a3b8a7a6b93310e2d3327912253a14b8f20ad975.zip
tools: Use module erl_anno
Diffstat (limited to 'lib/tools/src/xref_scanner.erl')
-rw-r--r--lib/tools/src/xref_scanner.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/tools/src/xref_scanner.erl b/lib/tools/src/xref_scanner.erl
index 990f8aa87b..4c93033d7c 100644
--- a/lib/tools/src/xref_scanner.erl
+++ b/lib/tools/src/xref_scanner.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2000-2009. All Rights Reserved.
+%% Copyright Ericsson AB 2000-2015. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -19,6 +19,8 @@
-module(xref_scanner).
+-include("xref.hrl").
+
-export([scan/1]).
scan(Chars) ->
@@ -77,7 +79,7 @@ lex([V={var,N,Var} | L]) ->
lex([T | Ts]) ->
[T | lex(Ts)];
lex([]) ->
- [{'$end', -1}].
+ [{'$end', erl_anno:new(?XREF_END_LINE)}].
is_type('Rel') -> true;
is_type('App') -> true;