aboutsummaryrefslogtreecommitdiffstats
path: root/lib/syntax_tools/src/erl_syntax.erl
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2012-01-10 14:41:10 +0100
committerBjörn-Egil Dahlberg <[email protected]>2012-01-10 14:41:10 +0100
commit3ee63ae7b498a1d7d232b0dcdcffb7f7f30c9579 (patch)
tree62563b36beebe782b93e9cda0916f892f5b15569 /lib/syntax_tools/src/erl_syntax.erl
parentd8ca0eb6de482a9a4bb5d67bc33232352c3ec83e (diff)
parentdc70f3bb56c7b09b1bcf0d4374741f9abbf8a555 (diff)
downloadotp-3ee63ae7b498a1d7d232b0dcdcffb7f7f30c9579.tar.gz
otp-3ee63ae7b498a1d7d232b0dcdcffb7f7f30c9579.tar.bz2
otp-3ee63ae7b498a1d7d232b0dcdcffb7f7f30c9579.zip
Merge branch 'egil/revert-type-information' into maint
* egil/revert-type-information: syntax_tools: Remove warnings of missing types hipe: Remove warnings of missing types in records syntax_tools: Suppress warning of unused variable Revert "hipe: Add type information to cfg_info record" Revert "syntax_tool: Add missing type information"
Diffstat (limited to 'lib/syntax_tools/src/erl_syntax.erl')
-rw-r--r--lib/syntax_tools/src/erl_syntax.erl6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/syntax_tools/src/erl_syntax.erl b/lib/syntax_tools/src/erl_syntax.erl
index 4e2235d552..32fd3722d6 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()]}).
@@ -6105,6 +6102,7 @@ implicit_fun_name(Node) ->
set_pos(integer(Arity), Pos)));
{'fun', _Pos, {function, Module, Atom, Arity}} ->
%% New in R15: fun M:F/A.
+ %% XXX: Perhaps set position for this as well?
module_qualifier(Module, arity_qualifier(Atom, Arity));
Node1 ->
data(Node1)