C# Класс 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.
Наследование: IUnit
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
Dispatch ( IMetadataVisitor visitor ) : void

Calls visitor.Visit(IUnit).

DispatchAsReference ( IMetadataVisitor visitor ) : void

Calls visitor.Visit(IUnitReference).

Защищенные методы

Метод Описание
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.

Описание методов

Dispatch() публичный абстрактный Метод

Calls visitor.Visit(IUnit).
public abstract Dispatch ( IMetadataVisitor visitor ) : void
visitor IMetadataVisitor
Результат void

DispatchAsReference() публичный абстрактный Метод

Calls visitor.Visit(IUnitReference).
public abstract DispatchAsReference ( IMetadataVisitor visitor ) : void
visitor IMetadataVisitor
Результат void

GetAttributes() защищенный Метод

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
Результат List

Unit() защищенный Метод

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.
Результат System