public void VisitIndexerExpression(JsIndexerExpression indexerExpression) { VisitChildren(indexerExpression); var type = indexerExpression.Target.ResultType(); if (type is IJsIndexerAccess indexerType && (!indexerType.IntegerOnly || JsTypeInfo.Number.MatchType(indexerExpression.Argument.ResultType()))) { SetType(indexerExpression, indexerType.ElementType); }
public override void VisitIndexerExpression(JsIndexerExpression indexerExpression) { base.VisitIndexerExpression(indexerExpression); ProcessTargetedExpression(indexerExpression, new JsArrayExpression()); }