indentation: bad after -spec with when clause
without the when clause, the below example works ok
When I have
the indentation result is
When I have
-spec get_NodeName(term(),term())-> R when R::term().
get_NodeName(FNodeType, NodeOrder) ->
case {FNodeType, NodeOrder} of
{'PR', first} ->
{"s",'F_PR'};
{'GR', first} ->
{"g",'F_GR'};
{'PR', second} ->
{"s",'S_PR'};
{'GR', second} ->
{"g",'S_GR'}
end.
the indentation result is
-spec get_NodeName(term(),term())-> R when R::term().
get_NodeName(FNodeType, NodeOrder) ->
case {FNodeType, NodeOrder} of
{'PR', first} ->
{"s",'F_PR'};
{'GR', first} ->
{"g",'F_GR'};
{'PR', second} ->
{"s",'S_PR'};
{'GR', second} ->
{"g",'S_GR'}
end.
Leave a comment
on 2012-11-15 08:05 *
By Vlad Dumitrescu
Milestone changed from deprecated because of xtext version to sprint #36
Milestone changed from deprecated because of xtext version to sprint #36
on 2012-11-15 08:06 *
By Vlad Dumitrescu
Description changed from without the when clause, th... to without the when clause, th...
Description changed from without the when clause, th... to without the when clause, th...
on 2012-11-15 08:07 *
By Vlad Dumitrescu
Description changed from without the when clause, th... to without the when clause, th...
Description changed from without the when clause, th... to without the when clause, th...