Exemple #1
0
 public CodeCompletionSource(ITextBuffer buffer, ILabelGraph labelGraph)
 {
     this._buffer       = buffer;
     this._labelGraph   = labelGraph;
     this._icons        = new Dictionary <AsmTokenType, ImageSource>();
     this._asmDudeTools = AsmDudeTools.Instance;
     this.loadIcons();
 }
        public ICompletionSource TryCreateCompletionSource(ITextBuffer buffer)
        {
            Func <CodeCompletionSource> sc = delegate() {
                ILabelGraph labelGraph = AsmDudeToolsStatic.Get_Label_Graph(buffer, this._aggregatorFactory, this._docFactory, this._contentService);
                return(new CodeCompletionSource(buffer, labelGraph));
            };

            return(buffer.Properties.GetOrCreateSingletonProperty(sc));
        }
 public AsmQuickInfoSource(
     ITextBuffer buffer,
     ITagAggregator <AsmTokenTag> aggregator,
     ILabelGraph labelGraph)
 {
     this._sourceBuffer = buffer;
     this._aggregator   = aggregator;
     this._labelGraph   = labelGraph;
     this._asmDudeTools = AsmDudeTools.Instance;
 }
        public ITagger <T> CreateTagger <T>(ITextView textView, ITextBuffer buffer) where T : ITag
        {
            Func <ITagger <T> > sc = delegate() {
                ITagAggregator <AsmTokenTag> aggregator = AsmDudeToolsStatic.getAggregator(buffer, _aggregatorFactory);
                ILabelGraph labelGraph = AsmDudeToolsStatic.getLabelGraph(buffer, _aggregatorFactory, _docFactory, _contentService);
                return(new LabelErrorTagger(buffer, aggregator, labelGraph) as ITagger <T>);
            };

            return(buffer.Properties.GetOrCreateSingletonProperty(sc));
        }
        public IQuickInfoSource TryCreateQuickInfoSource(ITextBuffer buffer)
        {
            Func <AsmQuickInfoSource> sc = delegate() {
                ITagAggregator <AsmTokenTag> aggregator = AsmDudeToolsStatic.getAggregator(buffer, _aggregatorFactory);
                ILabelGraph labelGraph = AsmDudeToolsStatic.getLabelGraph(buffer, _aggregatorFactory, _docFactory, _contentService);
                return(new AsmQuickInfoSource(buffer, aggregator, labelGraph));
            };

            return(buffer.Properties.GetOrCreateSingletonProperty(sc));
        }
 internal LabelErrorTagger(
     ITextBuffer buffer,
     ITagAggregator <AsmTokenTag> aggregator,
     ILabelGraph labelGraph)
 {
     //AsmDudeToolsStatic.Output(string.Format("INFO: LabelErrorTagger: constructor"));
     this._sourceBuffer               = buffer;
     this._aggregator                 = aggregator;
     this._errorListProvider          = AsmDudeTools.Instance.errorListProvider;
     this._labelGraph                 = labelGraph;
     this._labelGraph.ResetDoneEvent += this.HandleLabelGraphResetDoneEvent;
     this._labelGraph.reset_Delayed();
 }
Exemple #7
0
 public AsmQuickInfoSource(
     ITextBuffer buffer,
     ITagAggregator <AsmTokenTag> aggregator,
     ILabelGraph labelGraph,
     AsmSimulator asmSimulator)
 {
     this._sourceBuffer = buffer;
     this._aggregator   = aggregator;
     this._labelGraph   = labelGraph;
     this._asmSimulator = asmSimulator;
     this._asmDudeTools = AsmDudeTools.Instance;
     this._foreground   = AsmDudeToolsStatic.GetFontColor();
 }
Exemple #8
0
        internal LabelErrorTagger(
            ITextBuffer buffer,
            ITagAggregator<AsmTokenTag> aggregator,
            ILabelGraph labelGraph)
        {
            //AsmDudeToolsStatic.Output(string.Format("INFO: LabelErrorTagger: constructor"));
            this._sourceBuffer = buffer;
            this._aggregator = aggregator;
            this._errorListProvider = AsmDudeTools.Instance.Error_List_Provider;
            this._labelGraph = labelGraph;
            this._foreground = AsmDudeToolsStatic.GetFontColor();

            this._labelGraph.Reset_Done_Event += this.Handle_Label_Graph_Reset_Done_Event;
            this._labelGraph.Reset_Delayed();
        }