ICompletionContext context = getContext();
if (!(context instanceof ArrayKeyContext)) {
return;
}
SourceRange replaceRange = getReplacementRange(context);
ArrayKeyContext arrayContext = (ArrayKeyContext) context;
boolean endsWithQuota = arrayContext.getNextChar() == '\''
|| arrayContext.getNextChar() == '\"';
if (arrayContext.hasQuotes() && !(endsWithQuota)) {
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=401766
replaceRange = new SourceRange(replaceRange.getOffset(),
replaceRange.getLength() + 1);
}
CompletionRequestor requestor = arrayContext.getCompletionRequestor();
String prefix = arrayContext.getPrefix();
ModuleDeclaration moduleDeclaration = SourceParserUtil