Exemple #1
0
 RoslynClassificationTypes(IThemeClassificationTypes themeClassificationTypes)
 {
     Comment                            = themeClassificationTypes.GetClassificationType(TextColor.Comment);
     Delegate                           = themeClassificationTypes.GetClassificationType(TextColor.Delegate);
     Enum                               = themeClassificationTypes.GetClassificationType(TextColor.Enum);
     EnumField                          = themeClassificationTypes.GetClassificationType(TextColor.EnumField);
     ExcludedCode                       = themeClassificationTypes.GetClassificationType(TextColor.ExcludedCode);
     ExtensionMethod                    = themeClassificationTypes.GetClassificationType(TextColor.ExtensionMethod);
     InstanceEvent                      = themeClassificationTypes.GetClassificationType(TextColor.InstanceEvent);
     InstanceField                      = themeClassificationTypes.GetClassificationType(TextColor.InstanceField);
     InstanceMethod                     = themeClassificationTypes.GetClassificationType(TextColor.InstanceMethod);
     InstanceProperty                   = themeClassificationTypes.GetClassificationType(TextColor.InstanceProperty);
     Interface                          = themeClassificationTypes.GetClassificationType(TextColor.Interface);
     Keyword                            = themeClassificationTypes.GetClassificationType(TextColor.Keyword);
     Label                              = themeClassificationTypes.GetClassificationType(TextColor.Label);
     LiteralField                       = themeClassificationTypes.GetClassificationType(TextColor.LiteralField);
     Local                              = themeClassificationTypes.GetClassificationType(TextColor.Local);
     MethodGenericParameter             = themeClassificationTypes.GetClassificationType(TextColor.MethodGenericParameter);
     Module                             = themeClassificationTypes.GetClassificationType(TextColor.Module);
     Namespace                          = themeClassificationTypes.GetClassificationType(TextColor.Namespace);
     Number                             = themeClassificationTypes.GetClassificationType(TextColor.Number);
     Operator                           = themeClassificationTypes.GetClassificationType(TextColor.Operator);
     Parameter                          = themeClassificationTypes.GetClassificationType(TextColor.Parameter);
     PreprocessorKeyword                = themeClassificationTypes.GetClassificationType(TextColor.PreprocessorKeyword);
     PreprocessorText                   = themeClassificationTypes.GetClassificationType(TextColor.PreprocessorText);
     Punctuation                        = themeClassificationTypes.GetClassificationType(TextColor.Punctuation);
     SealedType                         = themeClassificationTypes.GetClassificationType(TextColor.SealedType);
     StaticEvent                        = themeClassificationTypes.GetClassificationType(TextColor.StaticEvent);
     StaticField                        = themeClassificationTypes.GetClassificationType(TextColor.StaticField);
     StaticMethod                       = themeClassificationTypes.GetClassificationType(TextColor.StaticMethod);
     StaticProperty                     = themeClassificationTypes.GetClassificationType(TextColor.StaticProperty);
     StaticType                         = themeClassificationTypes.GetClassificationType(TextColor.StaticType);
     String                             = themeClassificationTypes.GetClassificationType(TextColor.String);
     Text                               = themeClassificationTypes.GetClassificationType(TextColor.Text);
     Type                               = themeClassificationTypes.GetClassificationType(TextColor.Type);
     TypeGenericParameter               = themeClassificationTypes.GetClassificationType(TextColor.TypeGenericParameter);
     ValueType                          = themeClassificationTypes.GetClassificationType(TextColor.ValueType);
     VerbatimString                     = themeClassificationTypes.GetClassificationType(TextColor.VerbatimString);
     XmlDocCommentAttributeName         = themeClassificationTypes.GetClassificationType(TextColor.XmlDocCommentAttributeName);
     XmlDocCommentAttributeQuotes       = themeClassificationTypes.GetClassificationType(TextColor.XmlDocCommentAttributeQuotes);
     XmlDocCommentAttributeValue        = themeClassificationTypes.GetClassificationType(TextColor.XmlDocCommentAttributeValue);
     XmlDocCommentCDataSection          = themeClassificationTypes.GetClassificationType(TextColor.XmlDocCommentCDataSection);
     XmlDocCommentComment               = themeClassificationTypes.GetClassificationType(TextColor.XmlDocCommentComment);
     XmlDocCommentDelimiter             = themeClassificationTypes.GetClassificationType(TextColor.XmlDocCommentDelimiter);
     XmlDocCommentEntityReference       = themeClassificationTypes.GetClassificationType(TextColor.XmlDocCommentEntityReference);
     XmlDocCommentName                  = themeClassificationTypes.GetClassificationType(TextColor.XmlDocCommentName);
     XmlDocCommentProcessingInstruction = themeClassificationTypes.GetClassificationType(TextColor.XmlDocCommentProcessingInstruction);
     XmlDocCommentText                  = themeClassificationTypes.GetClassificationType(TextColor.XmlDocCommentText);
     XmlLiteralAttributeName            = themeClassificationTypes.GetClassificationType(TextColor.XmlLiteralAttributeName);
     XmlLiteralAttributeQuotes          = themeClassificationTypes.GetClassificationType(TextColor.XmlLiteralAttributeQuotes);
     XmlLiteralAttributeValue           = themeClassificationTypes.GetClassificationType(TextColor.XmlLiteralAttributeValue);
     XmlLiteralCDataSection             = themeClassificationTypes.GetClassificationType(TextColor.XmlLiteralCDataSection);
     XmlLiteralComment                  = themeClassificationTypes.GetClassificationType(TextColor.XmlLiteralComment);
     XmlLiteralDelimiter                = themeClassificationTypes.GetClassificationType(TextColor.XmlLiteralDelimiter);
     XmlLiteralEmbeddedExpression       = themeClassificationTypes.GetClassificationType(TextColor.XmlLiteralEmbeddedExpression);
     XmlLiteralEntityReference          = themeClassificationTypes.GetClassificationType(TextColor.XmlLiteralEntityReference);
     XmlLiteralName                     = themeClassificationTypes.GetClassificationType(TextColor.XmlLiteralName);
     XmlLiteralProcessingInstruction    = themeClassificationTypes.GetClassificationType(TextColor.XmlLiteralProcessingInstruction);
     XmlLiteralText                     = themeClassificationTypes.GetClassificationType(TextColor.XmlLiteralText);
 }
Exemple #2
0
 /// <summary>
 /// Gets the cached instance that contains <see cref="IClassificationType"/> values
 /// </summary>
 /// <returns></returns>
 public static RoslynClassificationTypes GetClassificationTypeInstance(IThemeClassificationTypes themeClassificationTypes)
 {
     if (classificationTypeInstance == null)
     {
         Interlocked.CompareExchange(ref classificationTypeInstance, new RoslynClassificationTypes(themeClassificationTypes), null);
     }
     return(classificationTypeInstance);
 }
Exemple #3
0
 public RoslynTagger(IThemeClassificationTypes themeClassificationTypes)
 {
     if (themeClassificationTypes == null)
     {
         throw new ArgumentNullException(nameof(themeClassificationTypes));
     }
     this.defaultClassificationType = themeClassificationTypes.GetClassificationType(TextColor.Error);
     this.roslynClassificationTypes = RoslynClassificationTypes.GetClassificationTypeInstance(themeClassificationTypes);
 }
Exemple #4
0
 public CompletionClassifier(IThemeClassificationTypes themeClassificationTypes)
 {
     if (themeClassificationTypes == null)
     {
         throw new ArgumentNullException(nameof(themeClassificationTypes));
     }
     this.themeClassificationTypes      = themeClassificationTypes;
     this.punctuationClassificationType = themeClassificationTypes.GetClassificationType(TextColor.Punctuation);
 }
Exemple #5
0
 ReplEditorProvider(IDnSpyTextEditorFactoryService dnSpyTextEditorFactoryService, IContentTypeRegistryService contentTypeRegistryService, ITextBufferFactoryService textBufferFactoryService, IEditorOperationsFactoryService editorOperationsFactoryService, IEditorOptionsFactoryService editorOptionsFactoryService, IClassificationTypeRegistryService classificationTypeRegistryService, IThemeClassificationTypes themeClassificationTypes, IPickSaveFilename pickSaveFilename)
 {
     this.dnSpyTextEditorFactoryService     = dnSpyTextEditorFactoryService;
     this.contentTypeRegistryService        = contentTypeRegistryService;
     this.textBufferFactoryService          = textBufferFactoryService;
     this.editorOperationsFactoryService    = editorOperationsFactoryService;
     this.editorOptionsFactoryService       = editorOptionsFactoryService;
     this.classificationTypeRegistryService = classificationTypeRegistryService;
     this.themeClassificationTypes          = themeClassificationTypes;
     this.pickSaveFilename = pickSaveFilename;
 }
 public FilterMatchCompletionClassifier(IThemeClassificationTypes themeClassificationTypes, CompletionCollection completionCollection)
 {
     if (themeClassificationTypes == null)
     {
         throw new ArgumentNullException(nameof(themeClassificationTypes));
     }
     if (completionCollection == null)
     {
         throw new ArgumentNullException(nameof(completionCollection));
     }
     this.findMatchHighlightMarkerClassificationType = themeClassificationTypes.GetClassificationType(TextColor.FindMatchHighlightMarker);
     this.completionCollection = completionCollection;
 }
 RoslynTaggerProvider(IThemeClassificationTypes themeClassificationTypes)
 {
     this.themeClassificationTypes = themeClassificationTypes;
 }
Exemple #8
0
 CachedColorsListTaggerProvider(IThemeClassificationTypes themeClassificationTypes)
 {
     this.themeClassificationTypes = themeClassificationTypes;
 }
 FilterMatchCompletionClassifierProvider(IThemeClassificationTypes themeClassificationTypes)
 {
     this.themeClassificationTypes = themeClassificationTypes;
 }
Exemple #10
0
 public LineNumberMargin(IWpfTextViewHost wpfTextViewHost, IClassificationFormatMapService classificationFormatMapService, IThemeClassificationTypes themeClassificationTypes, ITextFormatterProvider textFormatterProvider)
     : base(PredefinedMarginNames.LineNumber, wpfTextViewHost, classificationFormatMapService, textFormatterProvider)
 {
     this.lineNumberClassificationType = themeClassificationTypes.GetClassificationType(TextColor.LineNumber);
 }
Exemple #11
0
 LineNumberMarginProvider(IClassificationFormatMapService classificationFormatMapService, IThemeClassificationTypes themeClassificationTypes, ITextFormatterProvider textFormatterProvider)
 {
     this.classificationFormatMapService = classificationFormatMapService;
     this.themeClassificationTypes       = themeClassificationTypes;
     this.textFormatterProvider          = textFormatterProvider;
 }