提交 9864f50f 编写于 作者: S Sam Harwell

Make importing constructors public to fix RS0034 (Exported parts should have ImportingConstructor)

上级 292bafdc
......@@ -17,7 +17,7 @@ namespace Microsoft.CodeAnalysis.Editor.CSharp.TextStructureNavigation
internal class TextStructureNavigatorProvider : AbstractTextStructureNavigatorProvider
{
[ImportingConstructor]
internal TextStructureNavigatorProvider(
public TextStructureNavigatorProvider(
ITextStructureNavigatorSelectorService selectorService,
IContentTypeRegistryService contentTypeService,
IWaitIndicator waitIndicator)
......
......@@ -17,7 +17,7 @@ internal sealed class ClassificationTypeFormatDefinitions
private class BraceMatchingFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private BraceMatchingFormatDefinition()
public BraceMatchingFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.Brace_Matching;
this.BackgroundColor = Color.FromRgb(0xDB, 0xE0, 0xCC);
......
......@@ -24,7 +24,7 @@ internal sealed class ClassificationTypeFormatDefinitions
private class PreprocessorTextFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private PreprocessorTextFormatDefinition()
public PreprocessorTextFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.Preprocessor_Text;
this.ForegroundColor = Colors.Black;
......@@ -41,7 +41,7 @@ private PreprocessorTextFormatDefinition()
private class PunctuationFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private PunctuationFormatDefinition()
public PunctuationFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.Punctuation;
this.ForegroundColor = Colors.Black;
......@@ -59,7 +59,7 @@ private PunctuationFormatDefinition()
private class StringVerbatimFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private StringVerbatimFormatDefinition()
public StringVerbatimFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.String_Verbatim;
this.ForegroundColor = Colors.Maroon;
......@@ -85,7 +85,7 @@ private StringVerbatimFormatDefinition()
private class StringEscapeCharacterFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private StringEscapeCharacterFormatDefinition()
public StringEscapeCharacterFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.String_Escape_Character;
this.ForegroundColor = s_stringEscapeColor;
......@@ -105,7 +105,7 @@ private StringEscapeCharacterFormatDefinition()
private class ControlKeywordFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private ControlKeywordFormatDefinition()
public ControlKeywordFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.Keyword_Control;
}
......@@ -123,7 +123,7 @@ private ControlKeywordFormatDefinition()
private class OperatorOverloadedFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private OperatorOverloadedFormatDefinition()
public OperatorOverloadedFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.Operator_Overloaded;
}
......@@ -140,7 +140,7 @@ private OperatorOverloadedFormatDefinition()
private class SymbolStaticFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private SymbolStaticFormatDefinition()
public SymbolStaticFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.Symbol_Static;
// The static classification is intended to be an additive classification
......@@ -179,7 +179,7 @@ private SymbolStaticFormatDefinition()
private class UserTypeClassesFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private UserTypeClassesFormatDefinition()
public UserTypeClassesFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.User_Types_Classes;
this.ForegroundColor = Color.FromRgb(0x2B, 0x91, 0xAF);
......@@ -198,7 +198,7 @@ private UserTypeClassesFormatDefinition()
private class UserTypeDelegatesFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private UserTypeDelegatesFormatDefinition()
public UserTypeDelegatesFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.User_Types_Delegates;
this.ForegroundColor = Color.FromRgb(0x2B, 0x91, 0xAF);
......@@ -217,7 +217,7 @@ private UserTypeDelegatesFormatDefinition()
private class UserTypeEnumsFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private UserTypeEnumsFormatDefinition()
public UserTypeEnumsFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.User_Types_Enums;
this.ForegroundColor = Color.FromRgb(0x2B, 0x91, 0xAF);
......@@ -236,7 +236,7 @@ private UserTypeEnumsFormatDefinition()
private class UserTypeInterfacesFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private UserTypeInterfacesFormatDefinition()
public UserTypeInterfacesFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.User_Types_Interfaces;
this.ForegroundColor = Color.FromRgb(0x2B, 0x91, 0xAF);
......@@ -254,7 +254,7 @@ private UserTypeInterfacesFormatDefinition()
private class UserTypeModulesFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private UserTypeModulesFormatDefinition()
public UserTypeModulesFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.User_Types_Modules;
this.ForegroundColor = Color.FromRgb(43, 145, 175);
......@@ -273,7 +273,7 @@ private UserTypeModulesFormatDefinition()
private class UserTypeStructuresFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private UserTypeStructuresFormatDefinition()
public UserTypeStructuresFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.User_Types_Structures;
this.ForegroundColor = Color.FromRgb(0x2B, 0x91, 0xAF);
......@@ -292,7 +292,7 @@ private UserTypeStructuresFormatDefinition()
private class UserTypeTypeParametersFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private UserTypeTypeParametersFormatDefinition()
public UserTypeTypeParametersFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.User_Types_Type_Parameters;
this.ForegroundColor = Color.FromRgb(0x2B, 0x91, 0xAF);
......@@ -312,7 +312,7 @@ private UserTypeTypeParametersFormatDefinition()
private class UserMembersFieldNameFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private UserMembersFieldNameFormatDefinition()
public UserMembersFieldNameFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.User_Members_Fields;
}
......@@ -330,7 +330,7 @@ private UserMembersFieldNameFormatDefinition()
private class UserMembersEnumMemberNameFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private UserMembersEnumMemberNameFormatDefinition()
public UserMembersEnumMemberNameFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.User_Members_Enum_Members;
}
......@@ -348,7 +348,7 @@ private UserMembersEnumMemberNameFormatDefinition()
private class UserMembersConstantNameFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private UserMembersConstantNameFormatDefinition()
public UserMembersConstantNameFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.User_Members_Constants;
}
......@@ -366,7 +366,7 @@ private UserMembersConstantNameFormatDefinition()
private class UserMembersLocalNameFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private UserMembersLocalNameFormatDefinition()
public UserMembersLocalNameFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.User_Members_Locals;
}
......@@ -384,7 +384,7 @@ private UserMembersLocalNameFormatDefinition()
private class UserMembersParameterNameFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private UserMembersParameterNameFormatDefinition()
public UserMembersParameterNameFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.User_Members_Parameters;
}
......@@ -402,7 +402,7 @@ private UserMembersParameterNameFormatDefinition()
private class UserMembersMethodNameFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private UserMembersMethodNameFormatDefinition()
public UserMembersMethodNameFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.User_Members_Methods;
}
......@@ -420,7 +420,7 @@ private UserMembersMethodNameFormatDefinition()
private class UserMembersExtensionMethodNameFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private UserMembersExtensionMethodNameFormatDefinition()
public UserMembersExtensionMethodNameFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.User_Members_Extension_Methods;
}
......@@ -438,7 +438,7 @@ private UserMembersExtensionMethodNameFormatDefinition()
private class UserMembersPropertyNameFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private UserMembersPropertyNameFormatDefinition()
public UserMembersPropertyNameFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.User_Members_Properties;
}
......@@ -455,7 +455,7 @@ private UserMembersPropertyNameFormatDefinition()
private class UserMembersEventNameFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private UserMembersEventNameFormatDefinition()
public UserMembersEventNameFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.User_Members_Events;
}
......@@ -472,7 +472,7 @@ private UserMembersEventNameFormatDefinition()
private class UserMembersNamespaceNameFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private UserMembersNamespaceNameFormatDefinition()
public UserMembersNamespaceNameFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.User_Members_Namespaces;
}
......@@ -490,7 +490,7 @@ private UserMembersNamespaceNameFormatDefinition()
private class UserMembersLabelNameFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private UserMembersLabelNameFormatDefinition()
public UserMembersLabelNameFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.User_Members_Labels;
}
......@@ -507,7 +507,7 @@ private UserMembersLabelNameFormatDefinition()
private class XmlDocCommentAttributeNameFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private XmlDocCommentAttributeNameFormatDefinition()
public XmlDocCommentAttributeNameFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.XML_Doc_Comments_Attribute_Name;
this.ForegroundColor = Color.FromRgb(0x80, 0x80, 0x80); // CIDARKGRAY
......@@ -524,7 +524,7 @@ private XmlDocCommentAttributeNameFormatDefinition()
private class XmlDocCommentAttributeQuotesFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private XmlDocCommentAttributeQuotesFormatDefinition()
public XmlDocCommentAttributeQuotesFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.XML_Doc_Comments_Attribute_Quotes;
this.ForegroundColor = Color.FromRgb(0x80, 0x80, 0x80); // CIDARKGRAY
......@@ -543,7 +543,7 @@ private XmlDocCommentAttributeQuotesFormatDefinition()
private class XmlDocCommentAttributeValueFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private XmlDocCommentAttributeValueFormatDefinition()
public XmlDocCommentAttributeValueFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.XML_Doc_Comments_Attribute_Value;
this.ForegroundColor = Color.FromRgb(0x80, 0x80, 0x80); // CIDARKGRAY
......@@ -560,7 +560,7 @@ private XmlDocCommentAttributeValueFormatDefinition()
private class XmlDocCommentCDataSectionFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private XmlDocCommentCDataSectionFormatDefinition()
public XmlDocCommentCDataSectionFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.XML_Doc_Comments_CData_Section;
this.ForegroundColor = Color.FromRgb(0x80, 0x80, 0x80); // CIDARKGRAY
......@@ -577,7 +577,7 @@ private XmlDocCommentCDataSectionFormatDefinition()
private class XmlDocCommentCommentFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private XmlDocCommentCommentFormatDefinition()
public XmlDocCommentCommentFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.XML_Doc_Comments_Comment;
this.ForegroundColor = Color.FromRgb(0x80, 0x80, 0x80); // CIDARKGRAY
......@@ -594,7 +594,7 @@ private XmlDocCommentCommentFormatDefinition()
private class XmlDocCommentDelimiterFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private XmlDocCommentDelimiterFormatDefinition()
public XmlDocCommentDelimiterFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.XML_Doc_Comments_Delimiter;
this.ForegroundColor = Color.FromRgb(0x80, 0x80, 0x80); // CIDARKGRAY
......@@ -611,7 +611,7 @@ private XmlDocCommentDelimiterFormatDefinition()
private class XmlDocCommentEntityReferenceFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private XmlDocCommentEntityReferenceFormatDefinition()
public XmlDocCommentEntityReferenceFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.XML_Doc_Comments_Entity_Reference;
this.ForegroundColor = Colors.Green;
......@@ -628,7 +628,7 @@ private XmlDocCommentEntityReferenceFormatDefinition()
private class XmlDocCommentNameFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private XmlDocCommentNameFormatDefinition()
public XmlDocCommentNameFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.XML_Doc_Comments_Name;
this.ForegroundColor = Color.FromRgb(0x80, 0x80, 0x80); // CIDARKGRAY
......@@ -645,7 +645,7 @@ private XmlDocCommentNameFormatDefinition()
private class XmlDocCommentProcessingInstructionFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private XmlDocCommentProcessingInstructionFormatDefinition()
public XmlDocCommentProcessingInstructionFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.XML_Doc_Comments_Processing_Instruction;
this.ForegroundColor = Color.FromRgb(0x80, 0x80, 0x80); // CIDARKGRAY
......@@ -662,7 +662,7 @@ private XmlDocCommentProcessingInstructionFormatDefinition()
private class XmlDocCommentTextFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private XmlDocCommentTextFormatDefinition()
public XmlDocCommentTextFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.XML_Doc_Comments_Text;
this.ForegroundColor = Colors.Green;
......@@ -701,7 +701,7 @@ private XmlDocCommentTextFormatDefinition()
private class RegexCommentFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private RegexCommentFormatDefinition()
public RegexCommentFormatDefinition()
{
this.DisplayName = EditorFeaturesWpfResources.Regex_Comment;
this.ForegroundColor = s_regexCommentColor;
......@@ -718,7 +718,7 @@ private RegexCommentFormatDefinition()
private class RegexCharacterClassFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private RegexCharacterClassFormatDefinition()
public RegexCharacterClassFormatDefinition()
{
this.DisplayName = EditorFeaturesWpfResources.Regex_Character_Class;
this.ForegroundColor = s_characterClassColor;
......@@ -735,7 +735,7 @@ private RegexCharacterClassFormatDefinition()
private class RegexAnchorFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private RegexAnchorFormatDefinition()
public RegexAnchorFormatDefinition()
{
this.DisplayName = EditorFeaturesWpfResources.Regex_Anchor;
this.ForegroundColor = s_regexAnchorAndQuantifierColor;
......@@ -752,7 +752,7 @@ private RegexAnchorFormatDefinition()
private class RegexQuantifierFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private RegexQuantifierFormatDefinition()
public RegexQuantifierFormatDefinition()
{
this.DisplayName = EditorFeaturesWpfResources.Regex_Quantifier;
this.ForegroundColor = s_regexAnchorAndQuantifierColor;
......@@ -769,7 +769,7 @@ private RegexQuantifierFormatDefinition()
private class RegexGroupingFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private RegexGroupingFormatDefinition()
public RegexGroupingFormatDefinition()
{
this.DisplayName = EditorFeaturesWpfResources.Regex_Grouping;
this.ForegroundColor = s_regexGroupingAndAlternationColor;
......@@ -786,7 +786,7 @@ private RegexGroupingFormatDefinition()
private class RegexAlternationFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private RegexAlternationFormatDefinition()
public RegexAlternationFormatDefinition()
{
this.DisplayName = EditorFeaturesWpfResources.Regex_Alternation;
this.ForegroundColor = s_regexGroupingAndAlternationColor;
......@@ -803,7 +803,7 @@ private RegexAlternationFormatDefinition()
private class RegexTextFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private RegexTextFormatDefinition()
public RegexTextFormatDefinition()
{
this.DisplayName = EditorFeaturesWpfResources.Regex_Text;
this.ForegroundColor = s_regexTextColor;
......@@ -820,7 +820,7 @@ private RegexTextFormatDefinition()
private class RegexSelfEscapedCharacterFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private RegexSelfEscapedCharacterFormatDefinition()
public RegexSelfEscapedCharacterFormatDefinition()
{
this.DisplayName = EditorFeaturesWpfResources.Regex_SelfEscapedCharacter;
......@@ -841,7 +841,7 @@ private RegexSelfEscapedCharacterFormatDefinition()
private class RegexOtherEscapeFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private RegexOtherEscapeFormatDefinition()
public RegexOtherEscapeFormatDefinition()
{
this.DisplayName = EditorFeaturesWpfResources.Regex_OtherEscape;
this.ForegroundColor = s_regexOtherEscapeColor;
......@@ -858,7 +858,7 @@ private RegexOtherEscapeFormatDefinition()
private class XmlLiteralAttributeNameFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private XmlLiteralAttributeNameFormatDefinition()
public XmlLiteralAttributeNameFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.VB_XML_Literals_Attribute_Name;
this.ForegroundColor = Color.FromRgb(185, 100, 100); // HC_LIGHTRED
......@@ -874,7 +874,7 @@ private XmlLiteralAttributeNameFormatDefinition()
private class XmlLiteralAttributeQuotesFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private XmlLiteralAttributeQuotesFormatDefinition()
public XmlLiteralAttributeQuotesFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.VB_XML_Literals_Attribute_Quotes;
this.ForegroundColor = Color.FromRgb(85, 85, 85); // HC_LIGHTBLACK
......@@ -890,7 +890,7 @@ private XmlLiteralAttributeQuotesFormatDefinition()
private class XmlLiteralAttributeValueFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private XmlLiteralAttributeValueFormatDefinition()
public XmlLiteralAttributeValueFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.VB_XML_Literals_Attribute_Value;
this.ForegroundColor = Color.FromRgb(100, 100, 185); // HC_LIGHTBLUE
......@@ -906,7 +906,7 @@ private XmlLiteralAttributeValueFormatDefinition()
private class XmlLiteralCDataSectionFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private XmlLiteralCDataSectionFormatDefinition()
public XmlLiteralCDataSectionFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.VB_XML_Literals_CData_Section;
this.ForegroundColor = Color.FromRgb(192, 192, 192); // HC_LIGHTGRAY
......@@ -922,7 +922,7 @@ private XmlLiteralCDataSectionFormatDefinition()
private class XmlLiteralCommentFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private XmlLiteralCommentFormatDefinition()
public XmlLiteralCommentFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.VB_XML_Literals_Comment;
this.ForegroundColor = Color.FromRgb(98, 151, 85); // HC_LIGHTGREEN
......@@ -938,7 +938,7 @@ private XmlLiteralCommentFormatDefinition()
private class XmlLiteralDelimiterFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private XmlLiteralDelimiterFormatDefinition()
public XmlLiteralDelimiterFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.VB_XML_Literals_Delimiter;
this.ForegroundColor = Color.FromRgb(100, 100, 185); // HC_LIGHTBLUE
......@@ -954,7 +954,7 @@ private XmlLiteralDelimiterFormatDefinition()
private class XmlLiteralEmbeddedExpressionFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private XmlLiteralEmbeddedExpressionFormatDefinition()
public XmlLiteralEmbeddedExpressionFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.VB_XML_Literals_Embedded_Expression;
this.ForegroundColor = Color.FromRgb(85, 85, 85); // HC_LIGHTBLACK
......@@ -971,7 +971,7 @@ private XmlLiteralEmbeddedExpressionFormatDefinition()
private class XmlLiteralEntityReferenceFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private XmlLiteralEntityReferenceFormatDefinition()
public XmlLiteralEntityReferenceFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.VB_XML_Literals_Entity_Reference;
this.ForegroundColor = Color.FromRgb(185, 100, 100); // HC_LIGHTRED
......@@ -987,7 +987,7 @@ private XmlLiteralEntityReferenceFormatDefinition()
private class XmlLiteralNameFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private XmlLiteralNameFormatDefinition()
public XmlLiteralNameFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.VB_XML_Literals_Name;
this.ForegroundColor = Color.FromRgb(132, 70, 70); // HC_LIGHTMAROON
......@@ -1003,7 +1003,7 @@ private XmlLiteralNameFormatDefinition()
private class XmlLiteralProcessingInstructionFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private XmlLiteralProcessingInstructionFormatDefinition()
public XmlLiteralProcessingInstructionFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.VB_XML_Literals_Processing_Instruction;
this.ForegroundColor = Color.FromRgb(192, 192, 192); // HC_LIGHTGRAY
......@@ -1019,7 +1019,7 @@ private XmlLiteralProcessingInstructionFormatDefinition()
private class XmlLiteralTextFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private XmlLiteralTextFormatDefinition()
public XmlLiteralTextFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.VB_XML_Literals_Text;
this.ForegroundColor = Color.FromRgb(85, 85, 85); // HC_LIGHTBLACK
......
......@@ -20,7 +20,7 @@ namespace Microsoft.CodeAnalysis.Editor.Diagnostics
internal sealed class UnnecessaryCodeFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private UnnecessaryCodeFormatDefinition()
public UnnecessaryCodeFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.Unnecessary_Code;
this.ForegroundOpacity = 0.6;
......
......@@ -26,7 +26,7 @@ internal sealed class ClassificationTypeDefinitions
private class InlineRenameFieldFormatDefinition : ClassificationFormatDefinition
{
[ImportingConstructor]
private InlineRenameFieldFormatDefinition()
public InlineRenameFieldFormatDefinition()
{
this.DisplayName = EditorFeaturesResources.Inline_Rename_Field_Text;
this.ForegroundColor = Color.FromRgb(0x00, 0x64, 0x00);
......
......@@ -13,7 +13,7 @@ internal sealed class InteractiveDocumentNavigationServiceFactory : IWorkspaceSe
private readonly IDocumentNavigationService _singleton;
[ImportingConstructor]
private InteractiveDocumentNavigationServiceFactory()
public InteractiveDocumentNavigationServiceFactory()
{
_singleton = new InteractiveDocumentNavigationService();
}
......
......@@ -37,7 +37,7 @@ internal class FindReferencesCommandHandler : VSCommanding.ICommandHandler<FindR
public string DisplayName => EditorFeaturesResources.Find_References;
[ImportingConstructor]
internal FindReferencesCommandHandler(
public FindReferencesCommandHandler(
[ImportMany] IEnumerable<Lazy<IStreamingFindUsagesPresenter>> streamingPresenters,
IAsynchronousOperationListenerProvider listenerProvider)
{
......
......@@ -34,7 +34,7 @@ internal class CommentUncommentSelectionCommandHandler :
private readonly IEditorOperationsFactoryService _editorOperationsFactoryService;
[ImportingConstructor]
internal CommentUncommentSelectionCommandHandler(
public CommentUncommentSelectionCommandHandler(
ITextUndoHistoryRegistry undoHistoryRegistry,
IEditorOperationsFactoryService editorOperationsFactoryService)
{
......
......@@ -31,7 +31,7 @@ internal sealed class ActiveStatementTrackingService : IActiveStatementTrackingS
private TrackingSession _sessionOpt;
[ImportingConstructor]
internal ActiveStatementTrackingService()
public ActiveStatementTrackingService()
{
}
......
......@@ -21,7 +21,7 @@ internal class PeekableItemFactory : IPeekableItemFactory
private readonly IMetadataAsSourceFileService _metadataAsSourceFileService;
[ImportingConstructor]
private PeekableItemFactory(IMetadataAsSourceFileService metadataAsSourceFileService)
public PeekableItemFactory(IMetadataAsSourceFileService metadataAsSourceFileService)
{
_metadataAsSourceFileService = metadataAsSourceFileService;
}
......
......@@ -19,7 +19,7 @@ internal class ClassificationTypeMap
[ImportingConstructor]
[Obsolete(MefConstruction.ImportingConstructorMessage, error: true)]
internal ClassificationTypeMap(
public ClassificationTypeMap(
IClassificationTypeRegistryService registryService)
{
_registryService = registryService;
......
......@@ -23,7 +23,7 @@ Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.AutomaticCompletion
Inherits AbstractAutomaticLineEnderCommandHandler
<ImportingConstructor>
Friend Sub New(undoRegistry As ITextUndoHistoryRegistry,
Public Sub New(undoRegistry As ITextUndoHistoryRegistry,
editorOperations As IEditorOperationsFactoryService)
MyBase.New(undoRegistry, editorOperations)
......
......@@ -48,7 +48,7 @@ Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.LineCommit
End Property
<ImportingConstructor()>
Friend Sub New(
Public Sub New(
bufferManagerFactory As CommitBufferManagerFactory,
editorOperationsFactoryService As IEditorOperationsFactoryService,
smartIndentationService As ISmartIndentationService,
......
......@@ -15,7 +15,7 @@ Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.TextStructureNavigation
Inherits AbstractTextStructureNavigatorProvider
<ImportingConstructor()>
Friend Sub New(
Public Sub New(
selectorService As ITextStructureNavigatorSelectorService,
contentTypeService As IContentTypeRegistryService,
waitIndicator As IWaitIndicator)
......
......@@ -18,7 +18,7 @@ internal partial class CSharpCodeModelServiceFactory : ILanguageServiceFactory
private readonly IEnumerable<IRefactorNotifyService> _refactorNotifyServices;
[ImportingConstructor]
private CSharpCodeModelServiceFactory(
public CSharpCodeModelServiceFactory(
IEditorOptionsFactoryService editorOptionsFactoryService,
[ImportMany] IEnumerable<IRefactorNotifyService> refactorNotifyServices)
{
......
......@@ -28,7 +28,7 @@ internal sealed partial class EventHookupSessionManager : ForegroundThreadAffini
[ImportingConstructor]
[Obsolete(MefConstruction.ImportingConstructorMessage, error: true)]
internal EventHookupSessionManager(IThreadingContext threadingContext, IToolTipService toolTipService)
public EventHookupSessionManager(IThreadingContext threadingContext, IToolTipService toolTipService)
: base(threadingContext)
{
_toolTipService = toolTipService;
......
......@@ -18,7 +18,7 @@ internal class CSharpSyncClassViewCommandHandler : AbstractSyncClassViewCommandH
{
[ImportingConstructor]
[Obsolete(MefConstruction.ImportingConstructorMessage, error: true)]
private CSharpSyncClassViewCommandHandler(IThreadingContext threadingContext, SVsServiceProvider serviceProvider)
public CSharpSyncClassViewCommandHandler(IThreadingContext threadingContext, SVsServiceProvider serviceProvider)
: base(threadingContext, serviceProvider)
{
}
......
......@@ -32,7 +32,7 @@ internal sealed class HACK_ThemeColorFixer : IWpfTextViewConnectionListener
private bool _done;
[ImportingConstructor]
private HACK_ThemeColorFixer(
public HACK_ThemeColorFixer(
IClassificationTypeRegistryService classificationTypeRegistryService,
IClassificationFormatMapService classificationFormatMapService)
{
......
......@@ -40,7 +40,7 @@ internal class EnhancedColorExperiment : ForegroundThreadAffinitizedObject, IWpf
[ImportingConstructor]
[Obsolete]
private EnhancedColorExperiment(IThreadingContext threadingContext, [Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider)
public EnhancedColorExperiment(IThreadingContext threadingContext, [Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider)
: base(threadingContext)
{
_serviceProvider = serviceProvider;
......
......@@ -39,7 +39,7 @@ internal sealed class VirtualMemoryNotificationListener : ForegroundThreadAffini
[ImportingConstructor]
[Obsolete(MefConstruction.ImportingConstructorMessage, error: true)]
private VirtualMemoryNotificationListener(
public VirtualMemoryNotificationListener(
IThreadingContext threadingContext,
SVsServiceProvider serviceProvider,
VisualStudioWorkspace workspace)
......
......@@ -18,7 +18,7 @@ internal sealed class VisualStudioDocumentNavigationServiceFactory : IWorkspaceS
[ImportingConstructor]
[Obsolete(MefConstruction.ImportingConstructorMessage, error: true)]
private VisualStudioDocumentNavigationServiceFactory(
public VisualStudioDocumentNavigationServiceFactory(
IThreadingContext threadingContext,
SVsServiceProvider serviceProvider,
IVsEditorAdaptersFactoryService editorAdaptersFactoryService)
......
......@@ -15,7 +15,7 @@ internal class VisualStudioSymbolNavigationServiceFactory : IWorkspaceServiceFac
private readonly ISymbolNavigationService _singleton;
[ImportingConstructor]
private VisualStudioSymbolNavigationServiceFactory(
public VisualStudioSymbolNavigationServiceFactory(
SVsServiceProvider serviceProvider,
[Import] VisualStudio14StructureTaggerProvider outliningTaggerProvider)
{
......
......@@ -31,7 +31,7 @@ internal class RoslynVisualStudioWorkspace : VisualStudioWorkspaceImpl
private readonly IEnumerable<Lazy<IStreamingFindUsagesPresenter>> _streamingPresenters;
[ImportingConstructor]
private RoslynVisualStudioWorkspace(
public RoslynVisualStudioWorkspace(
ExportProvider exportProvider,
[ImportMany] IEnumerable<Lazy<IStreamingFindUsagesPresenter>> streamingPresenters,
[ImportMany] IEnumerable<IDocumentOptionsProviderFactory> documentOptionsProviderFactories,
......
......@@ -25,7 +25,7 @@ internal class AnalyzerReferenceManager : IVsReferenceManagerUser
private AnalyzerItemsTracker _tracker = null;
[ImportingConstructor]
internal AnalyzerReferenceManager(
public AnalyzerReferenceManager(
[Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider)
{
_serviceProvider = serviceProvider;
......
......@@ -16,7 +16,7 @@ Namespace Microsoft.VisualStudio.LanguageServices.UnitTests.Completion
<ImportingConstructor>
<Obsolete(MefConstruction.ImportingConstructorMessage, True)>
Friend Sub New(threadingContext As IThreadingContext, listenerProvider As IAsynchronousOperationListenerProvider)
Public Sub New(threadingContext As IThreadingContext, listenerProvider As IAsynchronousOperationListenerProvider)
MyBase.New(threadingContext, Nothing, listenerProvider)
End Sub
......
......@@ -16,7 +16,7 @@ Namespace Microsoft.VisualStudio.LanguageServices.UnitTests.Completion
<ImportingConstructor>
<Obsolete(MefConstruction.ImportingConstructorMessage, True)>
Friend Sub New(threadingContext As IThreadingContext, listenerProvider As IAsynchronousOperationListenerProvider)
Public Sub New(threadingContext As IThreadingContext, listenerProvider As IAsynchronousOperationListenerProvider)
MyBase.New(threadingContext, Nothing, listenerProvider)
End Sub
......
......@@ -19,7 +19,7 @@ Namespace Microsoft.VisualStudio.LanguageServices.VisualBasic.CodeModel
Private ReadOnly _commitBufferManagerFactory As CommitBufferManagerFactory
<ImportingConstructor>
Private Sub New(editorOptionsFactoryService As IEditorOptionsFactoryService,
Public Sub New(editorOptionsFactoryService As IEditorOptionsFactoryService,
<ImportMany> refactorNotifyServices As IEnumerable(Of IRefactorNotifyService),
commitBufferManagerFactory As CommitBufferManagerFactory)
Me._editorOptionsFactoryService = editorOptionsFactoryService
......
......@@ -17,7 +17,7 @@ Namespace Microsoft.VisualStudio.LanguageServices.VisualBasic.ObjectBrowser
<ImportingConstructor>
<Obsolete(MefConstruction.ImportingConstructorMessage, True)>
Private Sub New(threadingContext As IThreadingContext, serviceProvider As SVsServiceProvider)
Public Sub New(threadingContext As IThreadingContext, serviceProvider As SVsServiceProvider)
MyBase.New(threadingContext, serviceProvider)
End Sub
End Class
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册