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
Mostra file Open project: visualmutator/visualmutator Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Dispatch ( IMetadataVisitor visitor ) : void

Calls visitor.Visit(IUnit).

DispatchAsReference ( IMetadataVisitor visitor ) : void

Calls visitor.Visit(IUnitReference).

Protected Methods

Method 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 method

Calls visitor.Visit(IUnit).
public abstract Dispatch ( IMetadataVisitor visitor ) : void
visitor IMetadataVisitor
return void

DispatchAsReference() public abstract method

Calls visitor.Visit(IUnitReference).
public abstract DispatchAsReference ( IMetadataVisitor visitor ) : void
visitor IMetadataVisitor
return void

GetAttributes() protected method

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
return List

Unit() protected method

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.
return System