public GotoInfoLibraryNode(NemerleLanguageService langSvc, GotoInfo gotoInfo, string caption) : base(gotoInfo.UsageTypeToString()) { _langSvc = langSvc; _gotoInfo = gotoInfo; _caption = caption; CanGoToSource = true; var project = ProjectInfo.FindProject(gotoInfo.FilePath); if(project != null) Text = _gotoInfo.GetLineOfCode(project.Engine).Trim().Replace("\t", " "); else//я не представляю как такое может случиться, но если случится Text = "<not loaded>";//то нужно скоприровать функционал ручной загрузки файла и поиска строки из конструктора GotoUsageForm }
public NemerleTypeAndMemberDropdownBars(NemerleLanguageService langService, IVsTextView forView) : base(null) { _languageService = langService; _source = (NemerleSource)langService.GetSource(forView); }
public NemerleTypeAndMemberDropdownBars(NemerleLanguageService langService, IVsTextView forView) : base(null) { _languageService = langService; _source = (NemerleSource)langService.GetSource(forView); }
public NemerleScanner(NemerleLanguageService languageService, IVsTextLines buffer) { _languageService = languageService; _buffer = buffer; }
public NemerleColorizer(NemerleLanguageService ls, IVsTextLines buffer, NemerleScanner scaner) : base(ls, buffer, scaner) { }
public override int SetSite(Microsoft.VisualStudio.OLE.Interop.IServiceProvider site) { var result = base.SetSite(site); _languageService = Utils.GetService<NemerleLanguageService>(Site); return result; }
public NemerleColorizer(NemerleLanguageService ls, IVsTextLines buffer, NemerleScanner scaner) : base(ls, buffer, scaner) { }
public NemerleScanner(NemerleLanguageService languageService, IVsTextLines buffer) { _languageService = languageService; _buffer = buffer; }