Skip to content

Commit

Permalink
Introduce the attribute -optional_callbacks in the context of behaviours
Browse files Browse the repository at this point in the history
  • Loading branch information
uabboli authored and Richard Carlsson committed Dec 21, 2014
1 parent 3083382 commit 12fd492
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/erl_syntax.erl
Expand Up @@ -3320,6 +3320,11 @@ attribute_arguments(Node) ->
[set_pos(
list(unfold_function_names(Data, Pos)),
Pos)];
optional_callbacks ->
D = try list(unfold_function_names(Data, Pos))
catch _:_ -> abstract(Data)
end,
[set_pos(D, Pos)];
import ->
{Module, Imports} = Data,
[set_pos(atom(Module), Pos),
Expand Down

0 comments on commit 12fd492

Please sign in to comment.