public Result.IfSuccess <BindingSource> VisitIndexer(Indexer indexer, Parameters parameters, Context context)
        {
            var codeGenerator = new IndexerAccessorCodeGenerator(parameters, context, this.typeResolver, indexer.Literals);

            return(this.targetBindingCodeGenerator.GenerateBinding(parameters.Binding, this.targetValue, this.elementType, context, parameters.HasCodeBehind, codeGenerator));
        }
        public Result.IfSuccess <BindingSource> VisitIndexerPart(IndexerPart indexerPart, Parameters parameters, Context context)
        {
            var codeGenerator = new IndexerAccessorCodeGenerator(parameters, context, this.typeResolver, indexerPart.Literals);

            return(this.targetBindingPartCodeGenerator.GeneratePartBinding(parameters.Binding.BindingAssignment.Mode, this.targetValue, context, codeGenerator));
        }