C# Класс Microsoft.Cci.SourceEditHostEnvironment

Provides an abstraction over the application hosting compilers based on this framework.
Наследование: MetadataReaderHost, ISourceEditHost
Показать файл Открыть проект

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

Метод Описание
GetUnitSetFor ( Microsoft.Cci.UnitSetIdentity referencedUnitSet ) : IUnitSet

Gets a unit set corresponding to the referenced unit set.

RegisterAsLatest ( ICompilation compilation ) : void

Registers the output of the given compilation as the latest unit associated with the given location. Such units can then be discovered by clients via GetUnit.

ReportEdits ( Microsoft.Cci.EditEventArgs editEventArguments ) : void

Raises the Edits event with the given edit event arguments. The events are raised on different thread.

ReportSymbolTableEdits ( Microsoft.Cci.EditEventArgs editEventArguments ) : void

Raises the SymbolTableEdits event with the given edit event arguments. The events are raised on different thread.

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

Метод Описание
SourceEditHostEnvironment ( INameTable nameTable, IInternFactory factory, byte pointerSize, IEnumerable searchPaths, bool searchInGAC ) : System

Allocates an object that provides an abstraction over the application hosting compilers based on this framework.

Приватные методы

Метод Описание
ReportEditsUsingDifferentThread ( object state ) : void

Raises the Edits event with the given edit event arguments.

ReportSymbolTableEditsUsingDifferentThread ( object state ) : void

Raises the SymbolTableEdits event with the given edit event arguments.

UnitsAreTheSameObjects ( List unitList, IEnumerable unitEnumeration ) : bool

Returns true if the given list of units has the same number of elements as the given enumeration of units and each corresponding element is the object.

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

GetUnitSetFor() публичный Метод

Gets a unit set corresponding to the referenced unit set.
public GetUnitSetFor ( Microsoft.Cci.UnitSetIdentity referencedUnitSet ) : IUnitSet
referencedUnitSet Microsoft.Cci.UnitSetIdentity
Результат IUnitSet

RegisterAsLatest() публичный Метод

Registers the output of the given compilation as the latest unit associated with the given location. Such units can then be discovered by clients via GetUnit.
public RegisterAsLatest ( ICompilation compilation ) : void
compilation ICompilation
Результат void

ReportEdits() публичный Метод

Raises the Edits event with the given edit event arguments. The events are raised on different thread.
public ReportEdits ( Microsoft.Cci.EditEventArgs editEventArguments ) : void
editEventArguments Microsoft.Cci.EditEventArgs
Результат void

ReportSymbolTableEdits() публичный Метод

Raises the SymbolTableEdits event with the given edit event arguments. The events are raised on different thread.
public ReportSymbolTableEdits ( Microsoft.Cci.EditEventArgs editEventArguments ) : void
editEventArguments Microsoft.Cci.EditEventArgs
Результат void

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

Allocates an object that provides an abstraction over the application hosting compilers based on this framework.
protected SourceEditHostEnvironment ( INameTable nameTable, IInternFactory factory, byte pointerSize, IEnumerable searchPaths, bool searchInGAC ) : System
nameTable INameTable /// A collection of IName instances that represent names that are commonly used during compilation. /// This is a provided as a parameter to the host environment in order to allow more than one host /// environment to co-exist while agreeing on how to map strings to IName instances. ///
factory IInternFactory /// The intern factory to use when generating keys. When comparing two or more assemblies using /// TypeHelper, MemberHelper, etc. it is necessary to make the hosts use the same intern factory. ///
pointerSize byte The size of a pointer on the runtime that is the target of the metadata units to be loaded /// into this metadta host. This parameter only matters if the host application wants to work out what the exact layout /// of a struct will be on the target runtime. The framework uses this value in methods such as TypeHelper.SizeOfType and /// TypeHelper.TypeAlignment. If the host application does not care about the pointer size it can provide 0 as the value /// of this parameter. In that case, the first reference to IMetadataHost.PointerSize will probe the list of loaded assemblies /// to find an assembly that either requires 32 bit pointers or 64 bit pointers. If no such assembly is found, the default is 32 bit pointers. ///
searchPaths IEnumerable /// A collection of strings that are interpreted as valid paths which are used to search for units. ///
searchInGAC bool /// Whether the GAC (Global Assembly Cache) should be searched when resolving references. ///
Результат System