C# Class Microsoft.Cci.Ast.Unit

A unit of metadata stored as a single artifact and potentially produced and revised independently from other units. Examples of units include .NET assemblies and modules, as well C++ object files and compiled headers.
Inheritance: IUnit
Afficher le fichier Open project: visualmutator/visualmutator Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
Dispatch ( IMetadataVisitor visitor ) : void

Calls visitor.Visit(IUnit).

DispatchAsReference ( IMetadataVisitor visitor ) : void

Calls visitor.Visit(IUnitReference).

Méthodes protégées

Méthode Description
GetAttributes ( ) : List

Returns a list of custom attributes that describes this type declaration member. Typically, these will be derived from this.SourceAttributes. However, some source attributes might instead be persisted as metadata bits and other custom attributes may be synthesized from information not provided in the form of source custom attributes. The list is not trimmed to size, since an override of this method may call the base method and then add more attributes.

Unit ( IName name, string location ) : System

Initializes a unit of metadata stored as a single artifact and potentially produced and revised independently from other units. Examples of units include .NET assemblies and modules, as well C++ object files and compiled headers.

Method Details

Dispatch() public abstract méthode

Calls visitor.Visit(IUnit).
public abstract Dispatch ( IMetadataVisitor visitor ) : void
visitor IMetadataVisitor
Résultat void

DispatchAsReference() public abstract méthode

Calls visitor.Visit(IUnitReference).
public abstract DispatchAsReference ( IMetadataVisitor visitor ) : void
visitor IMetadataVisitor
Résultat void

GetAttributes() protected méthode

Returns a list of custom attributes that describes this type declaration member. Typically, these will be derived from this.SourceAttributes. However, some source attributes might instead be persisted as metadata bits and other custom attributes may be synthesized from information not provided in the form of source custom attributes. The list is not trimmed to size, since an override of this method may call the base method and then add more attributes.
protected GetAttributes ( ) : List
Résultat List

Unit() protected méthode

Initializes a unit of metadata stored as a single artifact and potentially produced and revised independently from other units. Examples of units include .NET assemblies and modules, as well C++ object files and compiled headers.
protected Unit ( IName name, string location ) : System
name IName The name of the unit.
location string An indication of the location where the unit is or will be stored. This need not be a file system path and may be empty. /// The interpretation depends on the ICompilationHostEnviroment instance used to resolve references to this unit.
Résultat System