Exemple #1
0
 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);
     }
Exemple #2
0
 public override void VisitIndexerExpression(JsIndexerExpression indexerExpression)
 {
     base.VisitIndexerExpression(indexerExpression);
     ProcessTargetedExpression(indexerExpression, new JsArrayExpression());
 }