| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| | |
This reverts commit bbc0f3386c2546af25936730742d8dee1664f1dd.
|
| | |
|
|\ \
| |/
| |
| |
| |
| | |
* maint:
beam_lib, cover: Don't crash when an abstract code backend is missing
Handle macros in patterns
|
| |\
| | |
| | |
| | |
| | |
| | | |
Handle macros in patterns
OTP-17064
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The dodger used to replace a macro with a local function call. That works in
expressions but not in patterns like function heads or catch patterns. Instead
of a function call a tuple syntax is used which works in more places.
This change is motivated by the commonly used `?EXCEPTION` macro
```
try
...
catch
?EXCEPTION(Class, Reason, StackToken) ->
...
end.
```
Open source examples:
https://github.com/devinus/poolboy/commit/5d40cc517edc9bb8ee70756544167b63f66662f0
https://github.com/eproxus/meck/commit/558e925b48ce257b12e381080c851dc49c87d7bb
Fixes ERL-1429
|
| | |
| | |
| | |
| | |
| | | |
These can now be found at https://github.com/richcarl/erl_tidy and
https://github.com/richcarl/igor, respectively.
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | | |
* maint:
Update primary bootstrap
Update deprecations
Deprecate all functions in erl_tidy
|
| |/ |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
What used to be a line number in abstract code is now a more general
annotation (see erl_anno(3)). The names erl_syntax:set_pos() and
erl_syntax:get_pos() are a bit misleading. (The do, however, return
the location if given eof or error/warning marker.)
Maybe there should be new aliases get_erl_annotation() and
set_erl_annotation() in order not to confuse the erl_anno annotation
with the syntax_tools annotation.
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
* maint:
Updated OTP version
Prepare release
# Conflicts:
# OTP_VERSION
|
| | |
|
|\ \
| |/
| |
| |
| | |
* maint:
syntax_tools: Deprecate igor and most of erl_tidy
|
| |
| |
| |
| |
| |
| |
| | |
`igor` and `erl_tidy` are specialized tools that are outside the scope
of Erlang/OTP. Therefore, deprecate `igor` and most of `erl_tidy`
(there is a project that uses `erl_tidy:file/2` to do
pretty-printing, so we will not deprecate that function yet).
|
| | |
|
| |
| |
| |
| |
| |
| | |
We can't update the used hash function, because it must be consistent
with a remote node or a term saved to disk by a previous release of
OTP.
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
* maint:
Updated OTP version
Prepare release
# Conflicts:
# OTP_VERSION
|
| | |
|
|\ \
| |/
| |
| |
| | |
* maint:
Fix typo in edoc for erl_syntax:operator/1
|
| | |
|
|\ \
| |/
|/|
| |
| |
| | |
Drop old code for handling pre-R15 abstract format
OTP-16678
|
| | |
|
|/ |
|
|
|
|
| |
This reverts commit eee1f3aba92b5a741eabfa1cb6eca0632562777a.
|
| |
|
|
|
|
| |
This reverts commit 63638d668efbeb4539ba301328cabbc2636fb154.
|
| |
|
| |
|
|
|
|
| |
This reverts commit 50e614e7d5fee9e3bfe8a58e7f390c6ea6caf271.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Expressions that are separated by at least one empty line will
be separated by exactly one empty line in the output.
|
|
|
|
|
| |
par often makes for code that is more compact but less readable.
Similar tools opt for readability and we should too!
|
|
|
|
|
|
|
|
|
|
| |
prettypr:par/2 adds a space already
-record(a, {a :: a, b :: b}).
used to become
-record(a, {a :: a, b :: b}).
now it becomes
-record(a, {a :: a, b :: b}).
|
|\
| |
| |
| |
| |
| | |
* maint:
Updated OTP version
Prepare release
|
| |\
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* maint-20:
Updated OTP version
Prepare release
# Conflicts:
# OTP_VERSION
# erts/doc/src/notes.xml
# erts/vsn.mk
# lib/crypto/doc/src/notes.xml
# lib/crypto/vsn.mk
# lib/snmp/doc/src/notes.xml
# lib/snmp/vsn.mk
# lib/syntax_tools/doc/src/notes.xml
# lib/syntax_tools/vsn.mk
# make/otp_version_tickets
# otp_versions.table
|
| | | |
|
| | |\
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
maint-20
* zadean/syntax_tools/add_missing_unwrap/OTP-16012/PR-2348:
Update test suite
Also unwrap map_type_* name and value
Add unwrap calls to map_field_* in erl_syntax
# Conflicts:
# lib/syntax_tools/test/syntax_tools_SUITE.erl
|
|\ \ \ \
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* maint:
Updated OTP version
Prepare release
# Conflicts:
# OTP_VERSION
|
| | | | |
|
|\ \ \ \
| |/ / /
| | | |
| | | |
| | | |
| | | | |
* maint:
Updated OTP version
Prepare release
|
| |\ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* maint-21:
Updated OTP version
Prepare release
# Conflicts:
# OTP_VERSION
# erts/doc/src/notes.xml
# erts/vsn.mk
# lib/inets/doc/src/notes.xml
# lib/inets/vsn.mk
# lib/kernel/doc/src/notes.xml
# lib/kernel/vsn.mk
# lib/ssh/doc/src/notes.xml
# lib/ssh/vsn.mk
# lib/syntax_tools/doc/src/notes.xml
# lib/syntax_tools/vsn.mk
# make/otp_version_tickets
# otp_versions.table
|
| | | | | |
|
| | |\ \ \
| | | | |/
| | | |/|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
maint-21
* zadean/syntax_tools/add_missing_unwrap/OTP-16012/PR-2348:
Update test suite
Also unwrap map_type_* name and value
Add unwrap calls to map_field_* in erl_syntax
# Conflicts:
# lib/syntax_tools/test/syntax_tools_SUITE.erl
|
|\ \ \ \ \
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* maint:
Update test suite
Also unwrap map_type_* name and value
Add unwrap calls to map_field_* in erl_syntax
|
| |\ \ \ \
| | | |/ /
| | |/| |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
maint
* zadean/syntax_tools/add_missing_unwrap/OTP-16012/PR-2348:
Update test suite
Also unwrap map_type_* name and value
Add unwrap calls to map_field_* in erl_syntax
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Add record with exact and associated map types to type_specs.erl. The
record forces the erl_parse format for map types to be retained.
Add test wrapped_subtrees to the test suite. It ensures that each
erl_parse node it encounters can be wrapped and accessed with
erl_syntax:subtrees/1 without error.
|
| | | | | |
|