C# Class Pchp.CodeAnalysis.Symbols.AssemblySymbol

Inheritance: Symbol, IAssemblySymbol
Mostrar archivo Open project: iolevel/peachpie Class Usage Examples

Private Properties

Property Type Description
CreateCycleInTypeForwarderErrorTypeSymbol ErrorTypeSymbol
GetDeclaredSpecialType NamedTypeSymbol
GetDeclaredSpecialTypeMember Symbol
GetSpecialType NamedTypeSymbol
GetTypeByMetadataName NamedTypeSymbol
IAssemblySymbol INamedTypeSymbol
LookupTopLevelMetadataType NamedTypeSymbol
LookupTopLevelMetadataTypeWithCycleDetection NamedTypeSymbol
SetCorLibrary void
TryLookupForwardedMetadataTypeWithCycleDetection NamedTypeSymbol

Public Methods

Method Description
GetMetadata ( ) : Microsoft.CodeAnalysis.AssemblyMetadata
GetTypeByMetadataName ( string fullyQualifiedMetadataName ) : NamedTypeSymbol
GivesAccessTo ( IAssemblySymbol toAssembly ) : bool
ResolveForwardedType ( string fullyQualifiedMetadataName ) : INamedTypeSymbol

Private Methods

Method Description
CreateCycleInTypeForwarderErrorTypeSymbol ( Microsoft.CodeAnalysis.MetadataTypeName &emittedName ) : ErrorTypeSymbol
GetDeclaredSpecialType ( SpecialType type ) : NamedTypeSymbol

Lookup declaration for predefined CorLib type in this Assembly.

GetDeclaredSpecialTypeMember ( SpecialMember member ) : Symbol

Lookup member declaration in predefined CorLib type in this Assembly. Only valid if this assembly is the Cor Library

GetSpecialType ( SpecialType type ) : NamedTypeSymbol

Gets the symbol for the pre-defined type from core library associated with this assembly.

GetTypeByMetadataName ( string metadataName, bool includeReferences, bool isWellKnownType, bool useCLSCompliantNameArityEncoding = false, DiagnosticBag warnings = null ) : NamedTypeSymbol

Lookup a type within the assembly using its canonical CLR metadata name.

IAssemblySymbol ( string fullyQualifiedMetadataName ) : INamedTypeSymbol
LookupTopLevelMetadataType ( Microsoft.CodeAnalysis.MetadataTypeName &emittedName, bool digThroughForwardedTypes ) : NamedTypeSymbol

Lookup a top level type referenced from metadata, names should be compared case-sensitively.

LookupTopLevelMetadataTypeWithCycleDetection ( Microsoft.CodeAnalysis.MetadataTypeName &emittedName, ConsList visitedAssemblies, bool digThroughForwardedTypes ) : NamedTypeSymbol

Lookup a top level type referenced from metadata, names should be compared case-sensitively. Detect cycles during lookup.

SetCorLibrary ( AssemblySymbol corLibrary ) : void

A helper method for ReferenceManager to set the system assembly, which provides primitive types like Object, String, etc., e.g. mscorlib.dll.

TryLookupForwardedMetadataTypeWithCycleDetection ( Microsoft.CodeAnalysis.MetadataTypeName &emittedName, ConsList visitedAssemblies ) : NamedTypeSymbol

Look up the given metadata type, if it is forwarded.

Method Details

GetMetadata() public method

public GetMetadata ( ) : Microsoft.CodeAnalysis.AssemblyMetadata
return Microsoft.CodeAnalysis.AssemblyMetadata

GetTypeByMetadataName() public method

public GetTypeByMetadataName ( string fullyQualifiedMetadataName ) : NamedTypeSymbol
fullyQualifiedMetadataName string
return NamedTypeSymbol

GivesAccessTo() public method

public GivesAccessTo ( IAssemblySymbol toAssembly ) : bool
toAssembly IAssemblySymbol
return bool

ResolveForwardedType() public method

public ResolveForwardedType ( string fullyQualifiedMetadataName ) : INamedTypeSymbol
fullyQualifiedMetadataName string
return INamedTypeSymbol