aboutsummaryrefslogtreecommitdiffstats
path: root/lib/syntax_tools/src
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2012-01-05 22:10:00 +0100
committerBjörn-Egil Dahlberg <[email protected]>2012-01-05 22:10:00 +0100
commit3390a2cf56087c865640d86dcebdd6249e03cc85 (patch)
tree562ecd19fc76aa5ff317f52e3f6a34d2f9a3a9a2 /lib/syntax_tools/src
parentf9ca630a95e1e2adb1b225bfb69e3101678183f3 (diff)
downloadotp-3390a2cf56087c865640d86dcebdd6249e03cc85.tar.gz
otp-3390a2cf56087c865640d86dcebdd6249e03cc85.tar.bz2
otp-3390a2cf56087c865640d86dcebdd6249e03cc85.zip
Revert "syntax_tool: Add missing type information"
This reverts commit 38ee7a20cfdc22ead35b4711a086babcf6b3069b.
Diffstat (limited to 'lib/syntax_tools/src')
-rw-r--r--lib/syntax_tools/src/erl_syntax.erl7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/syntax_tools/src/erl_syntax.erl b/lib/syntax_tools/src/erl_syntax.erl
index 4e2235d552..7f58fda519 100644
--- a/lib/syntax_tools/src/erl_syntax.erl
+++ b/lib/syntax_tools/src/erl_syntax.erl
@@ -3523,10 +3523,7 @@ qualified_name_segments(Node) ->
%% @see is_form/1
%% @see rule/2
--record(function, {
- name :: atom(),
- clauses :: list()
- }).
+-record(function, {name, clauses}).
%% XXX: This one is problematic because there is a tuple with the same
%% tag and size that comes from 'erl_parse'
%% -record(function, {name :: syntaxTree(), clauses :: [syntaxTree()]}).
@@ -6103,7 +6100,7 @@ implicit_fun_name(Node) ->
arity_qualifier(
set_pos(atom(Atom), Pos),
set_pos(integer(Arity), Pos)));
- {'fun', _Pos, {function, Module, Atom, Arity}} ->
+ {'fun', Pos, {function, Module, Atom, Arity}} ->
%% New in R15: fun M:F/A.
module_qualifier(Module, arity_qualifier(Atom, Arity));
Node1 ->