diff options
author | Hans Bolinder <[email protected]> | 2015-11-17 10:01:01 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2016-05-09 08:27:22 +0200 |
commit | e3aa51660949dca1417a53c8fe90e929c8b91401 (patch) | |
tree | 13cc56ff851950e3528f43d66d7af0d68d0ab6b9 /lib/edoc/src/edoc.erl | |
parent | cfa1b7440a21f2d5bc08765edaf6dcf1a1736a05 (diff) | |
download | otp-e3aa51660949dca1417a53c8fe90e929c8b91401.tar.gz otp-e3aa51660949dca1417a53c8fe90e929c8b91401.tar.bz2 otp-e3aa51660949dca1417a53c8fe90e929c8b91401.zip |
edoc: Make EDoc work with typed record fields
Diffstat (limited to 'lib/edoc/src/edoc.erl')
-rw-r--r-- | lib/edoc/src/edoc.erl | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/lib/edoc/src/edoc.erl b/lib/edoc/src/edoc.erl index d2494b69fe..94013bb5ac 100644 --- a/lib/edoc/src/edoc.erl +++ b/lib/edoc/src/edoc.erl @@ -653,20 +653,7 @@ find_invalid_unicode([]) -> none. parse_file(Epp) -> case scan_and_parse(Epp) of {ok, Form} -> - case Form of - {attribute,La,record,{Record, Fields}} -> - case epp:normalize_typed_record_fields(Fields) of - {typed, NewFields} -> - [{attribute, La, record, {Record, NewFields}}, - {attribute, La, type, - {{record, Record}, Fields, []}} - | parse_file(Epp)]; - not_typed -> - [Form | parse_file(Epp)] - end; - _ -> - [Form | parse_file(Epp)] - end; + [Form | parse_file(Epp)]; {error, E} -> [{error, E} | parse_file(Epp)]; {eof, Location} -> |