コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }