Exemplo n.º 1
0
 public GenerateDocRootCommand(
     GenerateDocRootCommandLineOptions options,
     DocumentationDepth depth,
     RootDocumentationParts ignoredParts,
     IncludeContainingNamespaceFilter includeContainingNamespaceFilter,
     Visibility visibility,
     in ProjectFilter projectFilter) : base(projectFilter)
Exemplo n.º 2
0
 public GenerateDocCommand(
     GenerateDocCommandLineOptions options,
     DocumentationDepth depth,
     RootDocumentationParts ignoredRootParts,
     NamespaceDocumentationParts ignoredNamespaceParts,
     TypeDocumentationParts ignoredTypeParts,
     MemberDocumentationParts ignoredMemberParts,
     IncludeContainingNamespaceFilter includeContainingNamespaceFilter,
     Visibility visibility,
     in ProjectFilter projectFilter) : base(projectFilter)
Exemplo n.º 3
0
        public DeclarationListOptions(
            IEnumerable <string> ignoredNames = null,
            bool indent                       = DefaultValues.Indent,
            string indentChars                = DefaultValues.IndentChars,
            bool nestNamespaces               = DefaultValues.NestNamespaces,
            bool newLineBeforeOpenBrace       = DefaultValues.NewLineBeforeOpenBrace,
            bool emptyLineBetweenMembers      = DefaultValues.EmptyLineBetweenMembers,
            bool formatBaseList               = DefaultValues.FormatBaseList,
            bool formatConstraints            = DefaultValues.FormatConstraints,
            bool formatParameters             = DefaultValues.FormatParameters,
            bool splitAttributes              = DefaultValues.SplitAttributes,
            bool includeAttributeArguments    = DefaultValues.IncludeAttributeArguments,
            bool omitIEnumerable              = DefaultValues.OmitIEnumerable,
            bool useDefaultLiteral            = DefaultValues.UseDefaultLiteral,
            bool fullyQualifiedNames          = DefaultValues.FullyQualifiedNames,
            DocumentationDepth depth          = DefaultValues.Depth,
            DeclarationListParts ignoredParts = DeclarationListParts.None)
        {
            _ignoredMetadataNames = ignoredNames?.Select(name => MetadataName.Parse(name)).ToImmutableArray() ?? default;

            IgnoredNames              = ignoredNames?.ToImmutableArray() ?? ImmutableArray <string> .Empty;
            Indent                    = indent;
            IndentChars               = indentChars;
            NestNamespaces            = nestNamespaces;
            NewLineBeforeOpenBrace    = newLineBeforeOpenBrace;
            EmptyLineBetweenMembers   = emptyLineBetweenMembers;
            FormatBaseList            = formatBaseList;
            FormatConstraints         = formatConstraints;
            FormatParameters          = formatParameters;
            SplitAttributes           = splitAttributes;
            IncludeAttributeArguments = includeAttributeArguments;
            OmitIEnumerable           = omitIEnumerable;
            UseDefaultLiteral         = useDefaultLiteral;
            FullyQualifiedNames       = fullyQualifiedNames;
            Depth        = depth;
            IgnoredParts = ignoredParts;
        }
Exemplo n.º 4
0
 public GenerateSourceReferencesCommand(
     GenerateSourceReferencesCommandLineOptions options,
     DocumentationDepth depth,
     Visibility visibility,
     in ProjectFilter projectFilter) : base(projectFilter)
Exemplo n.º 5
0
        public DocumentationOptions(
            IEnumerable <string> ignoredNames = null,
            string preferredCultureName       = null,
            string rootDirectoryUrl           = null,
            int maxDerivedTypes               = DefaultValues.MaxDerivedTypes,
            bool includeClassHierarchy        = DefaultValues.IncludeClassHierarchy,
            bool placeSystemNamespaceFirst    = DefaultValues.PlaceSystemNamespaceFirst,
            bool formatDeclarationBaseList    = DefaultValues.FormatDeclarationBaseList,
            bool formatDeclarationConstraints = DefaultValues.FormatDeclarationConstraints,
            bool markObsolete = DefaultValues.MarkObsolete,
            bool includeMemberInheritedFrom       = DefaultValues.IncludeMemberInheritedFrom,
            bool includeMemberOverrides           = DefaultValues.IncludeMemberOverrides,
            bool includeMemberImplements          = DefaultValues.IncludeMemberImplements,
            bool includeMemberConstantValue       = DefaultValues.IncludeMemberConstantValue,
            bool includeInheritedInterfaceMembers = DefaultValues.IncludeInheritedInterfaceMembers,
            bool includeAllDerivedTypes           = DefaultValues.IncludeInheritedInterfaceMembers,
            bool includeAttributeArguments        = DefaultValues.IncludeAttributeArguments,
            bool includeInheritedAttributes       = DefaultValues.IncludeInheritedAttributes,
            bool omitIEnumerable                                      = DefaultValues.OmitIEnumerable,
            DocumentationDepth depth                                  = DefaultValues.Depth,
            InheritanceStyle inheritanceStyle                         = DefaultValues.InheritanceStyle,
            RootDocumentationParts ignoredRootParts                   = RootDocumentationParts.None,
            NamespaceDocumentationParts ignoredNamespaceParts         = NamespaceDocumentationParts.None,
            TypeDocumentationParts ignoredTypeParts                   = TypeDocumentationParts.None,
            MemberDocumentationParts ignoredMemberParts               = MemberDocumentationParts.None,
            OmitContainingNamespaceParts omitContainingNamespaceParts = OmitContainingNamespaceParts.None,
            bool scrollToContent                                      = DefaultValues.ScrollToContent)
        {
            if (maxDerivedTypes < 0)
            {
                throw new ArgumentOutOfRangeException(nameof(maxDerivedTypes), maxDerivedTypes, "Maximum number of derived items must be greater than or equal to 0.");
            }

            _ignoredMetadataNames = ignoredNames?.Select(name => MetadataName.Parse(name)).ToImmutableArray() ?? default;

            IgnoredNames                     = ignoredNames?.ToImmutableArray() ?? ImmutableArray <string> .Empty;
            PreferredCultureName             = preferredCultureName;
            RootDirectoryUrl                 = rootDirectoryUrl;
            MaxDerivedTypes                  = maxDerivedTypes;
            IncludeClassHierarchy            = includeClassHierarchy;
            PlaceSystemNamespaceFirst        = placeSystemNamespaceFirst;
            FormatDeclarationBaseList        = formatDeclarationBaseList;
            FormatDeclarationConstraints     = formatDeclarationConstraints;
            MarkObsolete                     = markObsolete;
            IncludeMemberInheritedFrom       = includeMemberInheritedFrom;
            IncludeMemberOverrides           = includeMemberOverrides;
            IncludeMemberImplements          = includeMemberImplements;
            IncludeMemberConstantValue       = includeMemberConstantValue;
            IncludeInheritedInterfaceMembers = includeInheritedInterfaceMembers;
            IncludeAllDerivedTypes           = includeAllDerivedTypes;
            IncludeAttributeArguments        = includeAttributeArguments;
            IncludeInheritedAttributes       = includeInheritedAttributes;
            OmitIEnumerable                  = omitIEnumerable;
            Depth                        = depth;
            InheritanceStyle             = inheritanceStyle;
            IgnoredRootParts             = ignoredRootParts;
            IgnoredNamespaceParts        = ignoredNamespaceParts;
            IgnoredTypeParts             = ignoredTypeParts;
            IgnoredMemberParts           = ignoredMemberParts;
            OmitContainingNamespaceParts = omitContainingNamespaceParts;
            ScrollToContent              = scrollToContent;
        }
 public GenerateDocRootCommand(
     GenerateDocRootCommandLineOptions options,
     DocumentationDepth depth,
     RootDocumentationParts ignoredParts,
     Visibility visibility,
     in ProjectFilter projectFilter) : base(projectFilter)