• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IGlyphService类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IGlyphService的典型用法代码示例。如果您正苦于以下问题:C# IGlyphService类的具体用法?C# IGlyphService怎么用?C# IGlyphService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IGlyphService类属于命名空间,在下文中一共展示了IGlyphService类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: CallHierarchyProvider

 public CallHierarchyProvider(
     [ImportMany] IEnumerable<Lazy<IAsynchronousOperationListener, FeatureMetadata>> asyncListeners,
     IGlyphService glyphService)
 {
     _asyncListener = new AggregateAsynchronousOperationListener(asyncListeners, FeatureAttribute.CallHierarchy);
     this.GlyphService = glyphService;
 }
开发者ID:CAPCHIK,项目名称:roslyn,代码行数:7,代码来源:CallHierarchyProvider.cs


示例2: GetCompletions

        public override CompletionSet GetCompletions(IGlyphService glyphService)
        {
            if (_noCompletions) {
                return null;
            }
            if (_importKeywordOnly) {
                var completion = new[] { JCompletion(glyphService, "import", null, StandardGlyphGroup.GlyphKeyword) };
                return new FuzzyCompletionSet("JImportKeyword", "J", Span, completion, _options, CompletionComparer.UnderscoresLast);
            }

            var start = _stopwatch.ElapsedMilliseconds;
            var completions = GetModules(_namespace, _modulesOnly).Select(m => JCompletion(glyphService, m));

            if (_includeStar) {
                var completion = new[] { JCompletion(glyphService, "*", "Import all members from the module", StandardGlyphGroup.GlyphArrow) };
                completions = completions.Concat(completion);
            }

            var res = new FuzzyCompletionSet("JFromImports", "J", Span, completions, _options, CompletionComparer.UnderscoresLast);

            var end = _stopwatch.ElapsedMilliseconds;

            if (/*Logging &&*/ end - start > TooMuchTime) {
                Trace.WriteLine(String.Format("{0} lookup time {1} for {2} imports", this, end - start, res.Completions.Count));
            }

            return res;
        }
开发者ID:borota,项目名称:JTVS,代码行数:28,代码来源:FromImportCompletionAnalysis.cs


示例3: SymbolGlyphDeferredContent

        public SymbolGlyphDeferredContent(Glyph glyph, IGlyphService glyphService)
        {
            Contract.ThrowIfNull(glyphService);

            _glyph = glyph;
            _glyphService = glyphService;
        }
开发者ID:CAPCHIK,项目名称:roslyn,代码行数:7,代码来源:SymbolGlyphDeferredContent.cs


示例4: PyCompletion

 /// <summary>
 /// Constructor used by IPy declarations retrieved from the IPy engine
 /// </summary>
 internal PyCompletion(Declaration declaration, IGlyphService glyphService)
     : base(declaration.Title)
 {
     this.InsertionText = declaration.Title;
     this.Description = declaration.Description;
     this.IconSource = glyphService.GetGlyph(GetGroupFromDeclaration(declaration), GetScopeFromDeclaration(declaration));
 }
开发者ID:smartmobili,项目名称:parsing,代码行数:10,代码来源:PyCompletion.cs


示例5: XmlResourceCompletionSource

 /// <summary>
 /// Default ctor
 /// </summary>
 protected XmlResourceCompletionSource(ITextBuffer textBuffer, SVsServiceProvider serviceProvider, IVsEditorAdaptersFactoryService vsEditorAdaptersFactoryService, IGlyphService glyphService)
 {
     this.textBuffer = textBuffer;
     this.serviceProvider = serviceProvider;
     this.vsEditorAdaptersFactoryService = vsEditorAdaptersFactoryService;
     this.glyphService = glyphService;
 }
开发者ID:Xtremrules,项目名称:dot42,代码行数:10,代码来源:XmlResourceCompletionSource.cs


示例6: RegistryCompletionSource

 public RegistryCompletionSource(ITextBuffer buffer, IGlyphService glyphService)
 {
     _buffer = buffer;
     _versionGlyph = glyphService.GetGlyph(StandardGlyphGroup.GlyphKeyword, StandardGlyphItem.GlyphItemPublic);
     _keyGlyph = glyphService.GetGlyph(StandardGlyphGroup.GlyphClosedFolder, StandardGlyphItem.GlyphItemPublic);
     _dataTypeGlyph = glyphService.GetGlyph(StandardGlyphGroup.GlyphGroupStruct, StandardGlyphItem.GlyphItemPublic);
 }
开发者ID:Peter-Juhasz,项目名称:RegistryLanguageService,代码行数:7,代码来源:RegistryCompletionSource.cs


示例7: GetCompletions

        public override CompletionSet GetCompletions(IGlyphService glyphService) {
            var start = _stopwatch.ElapsedMilliseconds;

            var analysis = GetAnalysisEntry();
            if (analysis == null) {
                return null;
            }

            var index = VsProjectAnalyzer.TranslateIndex(
                Span.GetEndPoint(TextBuffer.CurrentSnapshot).Position,
                TextBuffer.CurrentSnapshot,
                analysis
            );

            var completions = analysis.GetAllAvailableMembers(index, GetMemberOptions.None)
                .Where(IsExceptionType)
                .Select(member => PythonCompletion(glyphService, member))
                .OrderBy(completion => completion.DisplayText);


            var res = new FuzzyCompletionSet("PythonExceptions", "Python", Span, completions, _options, CompletionComparer.UnderscoresLast);

            var end = _stopwatch.ElapsedMilliseconds;

            if (/*Logging &&*/ end - start > TooMuchTime) {
                Trace.WriteLine(String.Format("{0} lookup time {1} for {2} classes", this, end - start, res.Completions.Count));
            }

            return res;
        }
开发者ID:wenh123,项目名称:PTVS,代码行数:30,代码来源:ExceptionCompletionAnalysis.cs


示例8: CSharpGraphProvider

 public CSharpGraphProvider(
     IGlyphService glyphService,
     SVsServiceProvider serviceProvider,
     IProgressionPrimaryWorkspaceProvider workspaceProvider,
     [ImportMany] IEnumerable<Lazy<IAsynchronousOperationListener, FeatureMetadata>> asyncListeners) :
     base(glyphService, serviceProvider, workspaceProvider.PrimaryWorkspace, asyncListeners)
 {
 }
开发者ID:Rickinio,项目名称:roslyn,代码行数:8,代码来源:CSharpGraphProvider.cs


示例9: JsCompletion

 internal static DynamicallyVisibleCompletion JsCompletion(IGlyphService service, MemberResult memberResult, bool quote) {
     return new DynamicallyVisibleCompletion(memberResult.Name,
         GetInsertionQuote(quote, memberResult.Completion),
         memberResult.Documentation,
         service.GetGlyph(GetGlyphGroup(memberResult), StandardGlyphItem.GlyphItemPublic),
         String.Empty
     );
 }
开发者ID:CforED,项目名称:Node.js-Tools-for-Visual-Studio,代码行数:8,代码来源:RequireCompletionAnalysis.cs


示例10: PythonCompletion

 internal static DynamicallyVisibleCompletion PythonCompletion(IGlyphService service, MemberResult memberResult) {
     return new DynamicallyVisibleCompletion(memberResult.Name, 
         memberResult.Completion, 
         () => memberResult.Documentation, 
         () => service.GetGlyph(memberResult.MemberType.ToGlyphGroup(), StandardGlyphItem.GlyphItemPublic),
         Enum.GetName(typeof(PythonMemberType), memberResult.MemberType)
     );
 }
开发者ID:KaushikCh,项目名称:PTVS,代码行数:8,代码来源:CompletionAnalysis.cs


示例11: PkgdefCompletionSource

 public PkgdefCompletionSource(ITextBuffer buffer, IClassifierAggregatorService classifier, ITextStructureNavigatorSelectorService navigator, IGlyphService glyphService)
 {
     _buffer = buffer;
     _classifier = classifier.GetClassifier(buffer);
     _navigator = navigator;
     _glyphService = glyphService;
     _defaultGlyph = glyphService.GetGlyph(StandardGlyphGroup.GlyphGroupField, StandardGlyphItem.GlyphItemPublic);
     _snippetGlyph = glyphService.GetGlyph(StandardGlyphGroup.GlyphCSharpExpansion, StandardGlyphItem.GlyphItemPublic);
 }
开发者ID:NotYours180,项目名称:ExtensibilityTools,代码行数:9,代码来源:PkgdefCompletionSource.cs


示例12: CmdCompletionSource

 public CmdCompletionSource(ITextBuffer buffer, IClassifierAggregatorService classifier, IGlyphService glyphService, ITextStructureNavigator textStructureNavigator)
 {
     _buffer = buffer;
     _classifier = classifier.GetClassifier(buffer);
     _keywordGlyph = glyphService.GetGlyph(StandardGlyphGroup.GlyphGroupVariable, StandardGlyphItem.GlyphItemPublic);
     _environmentGlyph = glyphService.GetGlyph(StandardGlyphGroup.GlyphAssembly, StandardGlyphItem.GlyphItemPublic);
     _labelGlyph = glyphService.GetGlyph(StandardGlyphGroup.GlyphArrow, StandardGlyphItem.GlyphItemPublic);
     _textStructureNavigator = textStructureNavigator;
 }
开发者ID:yannduran,项目名称:OpenCommandLine,代码行数:9,代码来源:CmdCompletionSource.cs


示例13: GetCompletions

        public override CompletionSet GetCompletions(IGlyphService glyphService) {
            var text = PrecedingExpression;

            var completions = GetModules().Select(m => JsCompletion(glyphService, m, _quote));

            var res = new FuzzyCompletionSet(CompletionSource.NodejsRequireCompletionSetMoniker, "Node.js", Span, completions, CompletionComparer.UnderscoresFirst, true);

            return res;
        }
开发者ID:CforED,项目名称:Node.js-Tools-for-Visual-Studio,代码行数:9,代码来源:RequireCompletionAnalysis.cs


示例14: SpringCompletion

        internal SpringCompletion(IGlyphService glyphService, VsExpansion vsExpansion)
            : base(vsExpansion.title)
        {
            this.DisplayText = vsExpansion.shortcut;
            this.InsertionText = vsExpansion.title;
            this.Description = vsExpansion.description;
            this.IconSource = this.GetIconSource(glyphService, SpringCompletionType.Snippet);

            this.VsExpansion = vsExpansion;
        }
开发者ID:koskedk,项目名称:spring-net-vsnet,代码行数:10,代码来源:SpringCompletion.cs


示例15: VsctCompletionSource

 public VsctCompletionSource(ITextBuffer buffer, IClassifierAggregatorService classifier, ITextStructureNavigatorSelectorService navigator, IGlyphService glyphService)
 {
     _buffer = buffer;
     _classifier = classifier.GetClassifier(buffer);
     _navigator = navigator;
     _glyphService = glyphService;
     _defaultGlyph = glyphService.GetGlyph(StandardGlyphGroup.GlyphGroupField, StandardGlyphItem.GlyphItemPublic);
     _builtInGlyph = glyphService.GetGlyph(StandardGlyphGroup.GlyphGroupProperty, StandardGlyphItem.TotalGlyphItems);
     _imageService = ExtensibilityToolsPackage.GetGlobalService(typeof(SVsImageService)) as IVsImageService2;
 }
开发者ID:japj,项目名称:ExtensibilityTools,代码行数:10,代码来源:VsctCompletionSource.cs


示例16: AbstractSemanticQuickInfoProvider

 public AbstractSemanticQuickInfoProvider(
     IProjectionBufferFactoryService projectionBufferFactoryService,
     IEditorOptionsFactoryService editorOptionsFactoryService,
     ITextEditorFactoryService textEditorFactoryService,
     IGlyphService glyphService,
     ClassificationTypeMap typeMap)
     : base(projectionBufferFactoryService, editorOptionsFactoryService,
            textEditorFactoryService, glyphService, typeMap)
 {
 }
开发者ID:XieShuquan,项目名称:roslyn,代码行数:10,代码来源:AbstractSemanticQuickInfoProvider.cs


示例17: AlloyEditorNavigationSourceWalker

        private AlloyEditorNavigationSourceWalker(ITreeNodeStream input, ITextSnapshot snapshot, ReadOnlyCollection<IToken> tokens, IEditorNavigationTypeRegistryService editorNavigationTypeRegistryService, IGlyphService glyphService, IOutputWindowService outputWindowService)
            : base(input, snapshot, outputWindowService)
        {
            Contract.Requires<ArgumentNullException>(editorNavigationTypeRegistryService != null, "editorNavigationTypeRegistryService");
            Contract.Requires<ArgumentNullException>(glyphService != null, "glyphService");

            _tokens = tokens;
            _editorNavigationTypeRegistryService = editorNavigationTypeRegistryService;
            _glyphService = glyphService;
        }
开发者ID:sebandraos,项目名称:LangSvcV2,代码行数:10,代码来源:AlloyEditorNavigationSourceWalker.cs


示例18: SpringCompletionSource

 internal SpringCompletionSource(ITextBuffer textBuffer, IGlyphService glyphService,
     IVsEditorAdaptersFactoryService vsEditorAdaptersFactoryService,
     ITextStructureNavigatorSelectorService textStructureNavigatorSelectorService,
     System.IServiceProvider serviceProvider)
 {
     this.textBuffer = textBuffer;
     this.glyphService = glyphService;
     this.vsEditorAdaptersFactoryService = vsEditorAdaptersFactoryService;
     this.textStructureNavigatorSelectorService = textStructureNavigatorSelectorService;
     this.serviceProvider = serviceProvider;
 }
开发者ID:gusgorman,项目名称:spring-net-vsnet,代码行数:11,代码来源:SpringCompletionSource.cs


示例19: SemanticQuickInfoProvider

 public SemanticQuickInfoProvider(
     ITextBufferFactoryService textBufferFactoryService,
     IContentTypeRegistryService contentTypeRegistryService,
     IProjectionBufferFactoryService projectionBufferFactoryService,
     IEditorOptionsFactoryService editorOptionsFactoryService,
     ITextEditorFactoryService textEditorFactoryService,
     IGlyphService glyphService,
     ClassificationTypeMap typeMap)
     : base(textBufferFactoryService, contentTypeRegistryService, projectionBufferFactoryService,
            editorOptionsFactoryService, textEditorFactoryService, glyphService, typeMap)
 {
 }
开发者ID:RoryVL,项目名称:roslyn,代码行数:12,代码来源:SemanticQuickInfoProvider.cs


示例20: NavigateToItemProvider

        public NavigateToItemProvider(
            Workspace workspace,
            IGlyphService glyphService,
            IAsynchronousOperationListener asyncListener)
        {
            Contract.ThrowIfNull(workspace);
            Contract.ThrowIfNull(glyphService);
            Contract.ThrowIfNull(asyncListener);

            _workspace = workspace;
            _asyncListener = asyncListener;
            _displayFactory = new ItemDisplayFactory(new NavigateToIconFactory(glyphService));
        }
开发者ID:CAPCHIK,项目名称:roslyn,代码行数:13,代码来源:NavigateToItemProvider.cs



注:本文中的IGlyphService类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IGrainState类代码示例发布时间:2022-05-24
下一篇:
C# IGlobal类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap