public IQuickInfoSource TryCreateQuickInfoSource(ITextBuffer buffer)
        {
            Func <AsmQuickInfoSource> sc = delegate() {
                var labelGraph   = AsmDudeToolsStatic.GetOrCreate_Label_Graph(buffer, this._aggregatorFactory, this._docFactory, this._contentService);
                var asmSimulator = AsmSimulator.GetOrCreate_AsmSimulator(buffer, this._aggregatorFactory);
                return(new AsmQuickInfoSource(buffer, this._aggregatorFactory, labelGraph, asmSimulator));
            };

            return(buffer.Properties.GetOrCreateSingletonProperty(sc));
        }
Esempio n. 2
0
        public ITagger <T> CreateTagger <T>(ITextView textView, ITextBuffer buffer) where T : ITag
        {
            Func <ITagger <T> > sc = delegate()
            {
                var          aggregator   = AsmDudeToolsStatic.Get_Aggregator(buffer, this._aggregatorFactory);
                AsmSimulator asmSimulator = AsmSimulator.GetOrCreate_AsmSimulator(buffer, this._aggregatorFactory);
                return(new InfoSquigglesTagger(buffer, aggregator, asmSimulator) as ITagger <T>);
            };

            return(buffer.Properties.GetOrCreateSingletonProperty(sc));
        }
        public ITagger <T> CreateTagger <T>(ITextView textView, ITextBuffer buffer) where T : ITag
        {
            Func <ITagger <T> > sc = delegate()
            {
                var labelGraph   = AsmDudeToolsStatic.GetOrCreate_Label_Graph(buffer, this._aggregatorFactory, this._docFactory, this._contentService);
                var asmSimulator = AsmSimulator.GetOrCreate_AsmSimulator(buffer, this._aggregatorFactory);
                return(new SquigglesTagger(buffer, this._aggregatorFactory, labelGraph, asmSimulator) as ITagger <T>);
            };

            return(buffer.Properties.GetOrCreateSingletonProperty(sc));
        }
Esempio n. 4
0
        public ITagger <T> CreateTagger <T>(ITextView textView, ITextBuffer buffer) where T : ITag
        {
            ITagger <T> sc()
            {
                LabelGraph   labelGraph   = AsmDudeToolsStatic.GetOrCreate_Label_Graph(buffer, this.aggregatorFactory_, this.docFactory_, this.contentService_);
                AsmSimulator asmSimulator = AsmSimulator.GetOrCreate_AsmSimulator(buffer, this.aggregatorFactory_);

                return(new SquigglesTagger(buffer, this.aggregatorFactory_, labelGraph, asmSimulator) as ITagger <T>);
            }

            return(buffer.Properties.GetOrCreateSingletonProperty(sc));
        }
        public ICompletionSource TryCreateCompletionSource(ITextBuffer buffer)
        {
            CodeCompletionSource sc()
            {
                LabelGraph   labelGraph   = AsmDudeToolsStatic.GetOrCreate_Label_Graph(buffer, this._aggregatorFactory, this._docFactory, this._contentService);
                AsmSimulator asmSimulator = AsmSimulator.GetOrCreate_AsmSimulator(buffer, this._aggregatorFactory);

                return(new CodeCompletionSource(buffer, labelGraph, asmSimulator));
            }

            return(buffer.Properties.GetOrCreateSingletonProperty(sc));
        }
Esempio n. 6
0
        //public IAsyncQuickInfoSource TryCreateQuickInfoSource(ITextBuffer textBuffer) //XYZZY NEW
        public IQuickInfoSource TryCreateQuickInfoSource(ITextBuffer textBuffer) //XYZZY OLD
        {
            AsmDudeToolsStatic.Output_INFO(string.Format("{0}:TryCreateQuickInfoSource", this.ToString()));
            AsmQuickInfoSource sc()
            {
                LabelGraph   labelGraph   = AsmDudeToolsStatic.GetOrCreate_Label_Graph(textBuffer, this._aggregatorFactory, this._docFactory, this._contentService);
                AsmSimulator asmSimulator = AsmSimulator.GetOrCreate_AsmSimulator(textBuffer, this._aggregatorFactory);

                return(new AsmQuickInfoSource(textBuffer, this._aggregatorFactory, labelGraph, asmSimulator));
            }

            return(textBuffer.Properties.GetOrCreateSingletonProperty(sc));
        }