CodeAnalysisKeys Class
Common metadata keys for code analysis modules.
Namespace
Statiq.CodeAnalysis
Base Types
  • object
graph BT Type-->Base0["object"] Type["CodeAnalysisKeys"] class Type type-node

Syntax

public static class CodeAnalysisKeys

Fields

Name Field Type Constant Value Summary
Accessibility string Accessibility
This is available for type, method, field, event, and property symbols and contains the declared accessibility of the symbol.
static
AllInterfaces string AllInterfaces
This is available for type symbols and contains a collection of the documents that represent all implemented interfaces. The collection is empty if the type doesn't implement any interfaces.
static
AssemblyName string AssemblyName
The name of the assembly for each input document. Used to group input documents by assembly (if provided). If this is not provided for each input source document, then analysis that depends on both source files and assemblies may not correctly bind symbols across multiple inputs.
static
AttributeData string AttributeData
This is available for attribute symbols and contains the Roslyn Microsoft.CodeAnalysis.AttributeData instance for the attribute.
static
Attributes string Attributes
This is available for type, method, field, event, property, parameter, and type parameter symbols and contains the type symbol documents for attributes applied to the symbol.
static
BaseTypes string BaseTypes
This is available for type symbols and contains a collection of the documents that represent all base types (inner-most first).
static
CommentId string CommentId
A unique ID that identifies the symbol for documentation purposes.
static
CommentXml string CommentXml
This is available for documents in the initial result set (IsResult is true) and contains the full unprocessed XML documentation comments content for this symbol. In addition, special metadata keys may be added for custom comment elements with the name [ElementName]Comments. These special metadata keys contain a OtherComment instance with the rendered HTML content (and any attributes) of the custom XML documentation comments with the given [ElementName].
static
Compilation string Compilation
The Microsoft.CodeAnalysis.Compilation produced by the module.
static
ConstantValue string ConstantValue
This is available for field symbols and contains the constant value (if one exists).
static
Constructors string Constructors
This is available for type symbols and contains a collection of the documents that represent all constructors of the type. The collection is empty if the type doesn't have any explicit constructors.
static
ContainingAssembly string ContainingAssembly
The document that represents the containing assembly (or null if this symbol is not from an assembly).
static
ContainingNamespace string ContainingNamespace
The document that represents the containing namespace (or null if this symbol is not nested).
static
ContainingType string ContainingType
This is available for type, method, field, event, property, and parameter symbols and contains a document representing the containing type(ornull if no containing type).
static
DeclaringType string DeclaringType
This is available for type parameter symbols and contains a document that represents the declaring type of the type parameter.
static
DerivedTypes string DerivedTypes
This is available for type symbols and contains a collection of the documents that represent all types derived from the type. The collection is empty if the type doesn't have any derived types.
static
DisplayName string DisplayName
A display name for the symbol. For namespaces, this is the same as QualifiedName. For types, this is the same as FullName.
static
Example string Example
This is available for documents in the initial result set (IsResult is true) and contains the rendered HTML content from allexample XML documentation comments for this symbol.
static
Exceptions string Exceptions
This is available for documents in the initial result set (IsResult is true) and contains a collection of allexception XML documentation comments for this symbol with their name, link, and/or rendered HTML content.
static
ExtensionMethods string ExtensionMethods
This is available for type symbols and contains a collection of the documents that represent all extension members applicable to the type.
static
FullName string FullName
The full name of the symbol. For namespaces, this is the name of the namespace. For types, this includes all generic type parameters.
static
HasConstantValue string HasConstantValue
This is available for field symbols and indicates whether a constant value is available for the field.
static
ImplementingTypes string ImplementingTypes
This is available for interface symbols and contains a collection of the documents that represent all types that implement the interface. The collection is empty if no other types implement the interface.
static
Implements string Implements
This is available for method, event, and property symbols and contains a collection of the documents that represent the interface member being implemented by this method, event, or property.
static
IsAbstract string IsAbstract
Indicates if the symbol is abstract.
static
IsOverride string IsOverride
Indicates if the symbol is an override.
static
IsResult string IsResult
By default only certain symbols are processed as part of the initial result set(such as those that match the specified predicate). If this value is true, then this symbol was part of the initial result set. If it is false, the symbol was lazily processed later while fetching related symbols and may not contain the full set of metadata.
static
IsStatic string IsStatic
Indicates if the symbol is static.
static
IsTupleType string IsTupleType
Indicates if the symbol is a tuple.
static
IsVirtual string IsVirtual
Indicates if the symbol is virtual.
static
Kind string Kind
This is the general kind of symbol. For example, the for a namespace this is "Namespace" and for a type this is "NamedType".
static
MemberNamespaces string MemberNamespaces
This is available for namespace symbols and contains a collection of the documents that represent all member namespaces. The collection is empty if there are no member namespaces.
static
Members string Members
This is available for type symbols and contains a collection of the documents that represent all members of the type, including inherited ones. The collection is empty if the type doesn't have any members.
static
MemberTypes string MemberTypes
This is available for namespace and type symbols and contains a collection of the documents that represent all member types. It only contains direct children (as opposed to all nested types).
static
Name string Name
The name of the symbol, or an empty string if the symbol has no name (like the global namespace).
static
Operators string Operators
This is available for type symbols and contains a collection of the documents that represent all operators of the type, including inherited ones. The collection is empty if the type doesn't have any operators.
static
OriginalDefinition string OriginalDefinition
If this symbol is derived from another symbol, by type substitution for instance, this gets a document representing the original definition. If this symbol is not derived from another symbol, this gets a document representing the current definition.
static
OutputBuildLog string OutputBuildLog
Set this to true in the global settings to generate a binary build log when analyzing projects or solutions. The log will be output alongside the project file.
static
Overridden string Overridden
This is available for method, event, and property symbols and contains a document that represents the member being overridden (or null if no member is overriden by this one).
static
Parameters string Parameters
This is available for method and property (I.e., indexer) symbols and contains a collection of the documents that represent the parameters of the method or property.
static
Params string Params
This is available for documents in the initial result set (IsResult is true) and contains a collection of allparam XML documentation comments for this symbol with their name, link, and/or rendered HTML content.
static
Permissions string Permissions
This is available for documents in the initial result set (IsResult is true) and contains a collection of allpermission XML documentation comments for this symbol with their name, link, and/or rendered HTML content.
static
QualifiedName string QualifiedName
The qualified name of the symbol which includes all containing namespaces.
static
Remarks string Remarks
This is available for documents in the initial result set (IsResult is true) and contains the rendered HTML content from allremarks XML documentation comments for this symbol.
static
Returns string Returns
This is available for documents in the initial result set (IsResult is true) and contains the rendered HTML content from allreturns XML documentation comments for this symbol.
static
ReturnType string ReturnType
This is available for method symbols and contains a document that represents the return type of the method (or null if the method returns void).
static
SeeAlso string SeeAlso
This is available for documents in the initial result set (IsResult is true) and contains a collection of allseealso XML documentation comments for this symbol with their rendered HTML link (or just name if no link could be generated).
static
SpecificKind string SpecificKind
The more specific kind of the symbol ("Class", "Struct", etc.) This is the same as Kind if there is no more specific kind.
static
Summary string Summary
This is available for documents in the initial result set (IsResult is true) and contains the rendered HTML content from allsummary XML documentation comments for this symbol.
static
Symbol string Symbol
The Roslyn ISymbol from which this document is derived. If the document represents a namespace, this metadata might contain more than one symbol since the namespaces documents consolidate same-named namespaces across input code and assemblies.
static
SymbolId string SymbolId
A unique ID that identifies the symbol (can be used for generating folder paths, for example). Note that the symbol ID is not fully-qualified and is therefore only unique within a namespace. Nested types are prefixed with their parent type names.
static
Syntax string Syntax
This is available for documents in the initial result set (IsResult is true) and contains a generated syntax example for the symbol.
static
TupleElements string TupleElements
This is available for tuple type symbols and contains a collection of the documents that represent tuple elements. The collection is empty if the type is not a tuple.
static
Type string Type
This is available for field, event, property, and parameter symbols and contains the document that represents the type of the symbol.
static
TypeArguments string TypeArguments
This is available for type and method symbols and contains a collection of the documents that represent all generic type arguments of the type or method. The collection is empty if the type or method doesn't have any generic type parameters.
static
TypeParameters string TypeParameters
This is available for type and method symbols and contains a collection of the documents that represent all generic type parameters of the type or method. The collection is empty if the type or method doesn't have any generic type parameters.
static
TypeParams string TypeParams
This is available for documents in the initial result set (IsResult is true) and contains a collection of alltypeparam XML documentation comments for this symbol with their name, link, and/or rendered HTML content.
static
Value string Value
This is available for documents in the initial result set (IsResult is true) and contains the rendered HTML content from allvalue XML documentation comments for this symbol.
static