aboutsummaryrefslogtreecommitdiffstats
path: root/lib/syntax_tools/src/igor.erl
diff options
context:
space:
mode:
authorZandra Hird <[email protected]>2015-02-23 15:15:05 +0100
committerZandra Hird <[email protected]>2015-02-23 15:15:25 +0100
commitbcf520a6aeb5ff4423ade377e38269383b52e8f7 (patch)
tree094b878b92f64c0ac9e6f5c20e2dde6234fc21ed /lib/syntax_tools/src/igor.erl
parentd1aeabb317811c203c08194c3dab464a48ec1dd3 (diff)
parentcf5a72827821a448d256cd3edb5a31ac46b75839 (diff)
downloadotp-bcf520a6aeb5ff4423ade377e38269383b52e8f7.tar.gz
otp-bcf520a6aeb5ff4423ade377e38269383b52e8f7.tar.bz2
otp-bcf520a6aeb5ff4423ade377e38269383b52e8f7.zip
Merge branch 'richcarl/syntax_tools-remove-mnemosyne'
* richcarl/syntax_tools-remove-mnemosyne: Remove Mnemosyne rules support from EDoc Remove support for Mnemosyne rules Remove support for mnemosyne-style record field access OTP-12511
Diffstat (limited to 'lib/syntax_tools/src/igor.erl')
-rw-r--r--lib/syntax_tools/src/igor.erl23
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/syntax_tools/src/igor.erl b/lib/syntax_tools/src/igor.erl
index 0420508f2a..eac5af5540 100644
--- a/lib/syntax_tools/src/igor.erl
+++ b/lib/syntax_tools/src/igor.erl
@@ -1713,8 +1713,6 @@ transform(Tree, Env, St) ->
transform_function(Tree, Env, St);
implicit_fun ->
transform_implicit_fun(Tree, Env, St);
- rule ->
- transform_rule(Tree, Env, St);
record_expr ->
transform_record(Tree, Env, St);
record_index_expr ->
@@ -1778,27 +1776,6 @@ renaming_note(Name) ->
rename_atom(Node, Atom) ->
rewrite(Node, erl_syntax:atom(Atom)).
-%% Renaming Mnemosyne rules (just like function definitions)
-
-transform_rule(T, Env, St) ->
- {T1, St1} = default_transform(T, Env, St),
- F = erl_syntax_lib:analyze_rule(T1),
- {V, Text} = case (Env#code.map)(F) of
- F ->
- %% Not renamed
- {none, []};
- {Atom, _Arity} ->
- %% Renamed
- Cs = erl_syntax:rule_clauses(T1),
- N = rename_atom(
- erl_syntax:rule_name(T1),
- Atom),
- T2 = rewrite(T1,
- erl_syntax:rule(N, Cs)),
- {{value, T2}, renaming_note(Atom)}
- end,
- {maybe_modified(V, T1, 2, Text, Env), St1}.
-
%% Renaming "implicit fun" expressions (done quietly).
transform_implicit_fun(T, Env, St) ->