C# Class Pchp.CodeAnalysis.Symbols.NamespaceOrTypeSymbol

Represents either a namespace or a type.
Inheritance: Symbol, INamespaceOrTypeSymbol
显示文件 Open project: iolevel/peachpie Class Usage Examples

Public Methods

Method Description
GetMembers ( ) : ImmutableArray

Get all the members of this symbol.

GetMembers ( string name ) : ImmutableArray

Get all the members of this symbol that have a particular name.

GetTypeMembers ( ) : ImmutableArray

Get all the members of this symbol that are types.

GetTypeMembers ( string name ) : ImmutableArray

Get all the members of this symbol that are types that have a particular name, of any arity.

GetTypeMembers ( string name, int arity ) : ImmutableArray

Get all the members of this symbol that are types that have a particular name and arity

Private Methods

Method Description
GetNamespaceOrTypeByQualifiedName ( IEnumerable qualifiedName ) : IEnumerable

Finds types or namespaces described by a qualified name.

"C.D" matches C.D, C{T}.D, C{S,T}.D{U}, etc.

INamespaceOrTypeSymbol ( ) : ImmutableArray
INamespaceOrTypeSymbol ( string name ) : ImmutableArray
INamespaceOrTypeSymbol ( string name, int arity ) : ImmutableArray
INamespaceOrTypeSymbol ( ) : ImmutableArray
INamespaceOrTypeSymbol ( string name ) : ImmutableArray
LookupMetadataType ( Microsoft.CodeAnalysis.MetadataTypeName &emittedTypeName ) : NamedTypeSymbol

Lookup an immediately nested type referenced from metadata, names should be compared case-sensitively.

NamespaceOrTypeSymbol ( ) : System.Collections.Generic

Method Details

GetMembers() public abstract method

Get all the members of this symbol.
public abstract GetMembers ( ) : ImmutableArray
return ImmutableArray

GetMembers() public abstract method

Get all the members of this symbol that have a particular name.
public abstract GetMembers ( string name ) : ImmutableArray
name string
return ImmutableArray

GetTypeMembers() public abstract method

Get all the members of this symbol that are types.
public abstract GetTypeMembers ( ) : ImmutableArray
return ImmutableArray

GetTypeMembers() public abstract method

Get all the members of this symbol that are types that have a particular name, of any arity.
public abstract GetTypeMembers ( string name ) : ImmutableArray
name string
return ImmutableArray

GetTypeMembers() public method

Get all the members of this symbol that are types that have a particular name and arity
public GetTypeMembers ( string name, int arity ) : ImmutableArray
name string
arity int
return ImmutableArray