Beispiel #1
0
        public NatvisExpander(NatvisCollectionEntity.Factory natvisCollectionFactory,
                              SmartPointerEntity.Factory smartPointerFactory,
                              NatvisStringFormatter stringFormatter,
                              NatvisVisualizerScanner visualizerScanner)
        {
            _natvisCollectionFactory = natvisCollectionFactory;
            _smartPointerFactory     = smartPointerFactory;

            StringFormatter   = stringFormatter;
            VisualizerScanner = visualizerScanner;
        }
Beispiel #2
0
 SyntheticItemEntity(IVariableInformation variable, NatvisScope natvisScope,
                     SyntheticItemType item, NatvisDiagnosticLogger logger,
                     NatvisEntityStore store, NatvisExpressionEvaluator evaluator,
                     NatvisStringFormatter stringFormatter,
                     NatvisCollectionEntity.Factory natvisCollectionFactory)
     : base(variable, logger, evaluator, natvisScope)
 {
     _item                    = item;
     _store                   = store;
     _stringFormatter         = stringFormatter;
     _natvisCollectionFactory = natvisCollectionFactory;
 }
Beispiel #3
0
        internal NatvisSyntheticVariableInformation(
            NatvisStringFormatter stringFormatter,
            NatvisCollectionEntity.Factory natvisCollectionFactory, NatvisScope natvisScope,
            SyntheticItemType syntheticItemType, IVariableInformation varInfo, string displayValue)
            : base(varInfo)
        {
            _stringFormatter         = stringFormatter;
            _natvisCollectionFactory = natvisCollectionFactory;
            _natvisScope             = natvisScope;
            _syntheticItemType       = syntheticItemType;
            _displayValue            = displayValue;

            // Synthetic items should never show the raw view.
            if (syntheticItemType.Expand != null)
            {
                syntheticItemType.Expand.HideRawView = true;
            }
        }
Beispiel #4
0
 public INatvisEntity Create(IVariableInformation variable, NatvisScope natvisScope,
                             SyntheticItemType item,
                             NatvisCollectionEntity.Factory natvisCollectionFactory) =>
 new SyntheticItemEntity(variable, natvisScope, item, _logger,
                         new NatvisEntityStore(), _evaluator, _stringFormatter,
                         natvisCollectionFactory);