コード例 #1
0
        public CustomAnalysisTag(CustomAnalysisTagDependencies deps)
            : base(deps.ToTagDependencies(), deps.ErrorCode, deps.ErrorType)
        {
            this.Dependencies = deps;

            this.Action               = deps.Action.Action;
            this.ElementName          = deps.ElementName;
            this.Description          = deps.Action.Description;
            this.ExtendedMessage      = deps.Action.ExtendedMessage;
            this.InsertPosition       = deps.InsertPos;
            this.ToolTip              = deps.Action.ActionText ?? deps.Action.Description;
            this.ActionText           = deps.Action.ActionText;
            this.Name                 = deps.Action.Name;
            this.Value                = deps.Action.Value;
            this.Content              = deps.Action.Content;
            this.Element              = deps.Action.Element;
            this.IsInlineAttribute    = deps.Action.IsInlineAttribute;
            this.AnalyzedElement      = deps.AnalyzedElement;
            this.SupplementaryActions = deps.Action.SupplementaryActions;
            this.AlternativeActions   = deps.Action.AlternativeActions;
        }
コード例 #2
0
        public CustomAnalysisTag(CustomAnalysisTagDependencies deps)
            : base(deps.Span, deps.Snapshot, deps.FileName, deps.ErrorCode, deps.ErrorType, deps.Logger, deps.Action.MoreInfoUrl, deps.CustomFeatureUsageValue)
        {
            this.SuggestedAction = typeof(CustomAnalysisAction);

            this.Dependencies = deps;

            this.Action               = deps.Action.Action;
            this.ElementName          = deps.ElementName;
            this.Description          = deps.Action.Description;
            this.ExtendedMessage      = deps.Action.ExtendedMessage;
            this.InsertPosition       = deps.InsertPos;
            this.ToolTip              = deps.Action.ActionText ?? deps.Action.Description;
            this.ActionText           = deps.Action.ActionText;
            this.Name                 = deps.Action.Name;
            this.Value                = deps.Action.Value;
            this.Content              = deps.Action.Content;
            this.Element              = deps.Action.Element;
            this.IsInlineAttribute    = deps.Action.IsInlineAttribute;
            this.AnalyzedElement      = deps.AnalyzedElement;
            this.SupplementaryActions = deps.Action.SupplementaryActions;
            this.AlternativeActions   = deps.Action.AlternativeActions;
        }