The definitions of org.eclipse.jdt.core.dom.Modifier.WHEN and org.eclipse.jdt.core.dom.Modifier.ModifierKeyword.WHEN_KEYWORD look suspect. It seems DOM APIs treat when as a modifier.
This block of code in org.eclipse.jdt.core.dom.ASTConverter.setModifiers(List, Annotation[], int):
case TerminalTokens.TokenNameRestrictedIdentifierWhen:
modifier = createModifier(Modifier.ModifierKeyword.WHEN_KEYWORD);
break;
looks unreachable.
Are we stuck with these since these are APIs - @jarthana ??
The definitions of
org.eclipse.jdt.core.dom.Modifier.WHEN
andorg.eclipse.jdt.core.dom.Modifier.ModifierKeyword.WHEN_KEYWORD
look suspect. It seems DOM APIs treatwhen
as a modifier.This block of code in
org.eclipse.jdt.core.dom.ASTConverter.setModifiers(List, Annotation[], int)
:looks unreachable.
Are we stuck with these since these are APIs - @jarthana ??