}
private SignatureBasedType handlePerformNumericPropertyAccessorBase(IObjectSymbolBasedValueType firstArg,
ValueType secondArg)
{
AbstractDTPropertyResolver propResolver = getPropertyResolver();
int index = 0;
if (secondArg instanceof LiteralType)
{
try {
index = ((LiteralType)secondArg).coerceToNumber(Integer.class).intValue();
} catch (TypeCoercionException e) {
// suppress, just use index = 0
// this maybe should be an assertion...
}
}
final ISymbol symbol =
propResolver.getProperty(firstArg.getSymbol(), index);
if (symbol instanceof IObjectSymbol)
{
return IObjectSymbolBasedValueType.getInstance(symbol);
}