C# Class Pchp.CodeAnalysis.Symbols.SymbolExtensions

Exibir arquivo Open project: iolevel/peachpie

Public Methods

Method Description
ConstructIfGeneric ( this type, ImmutableArray typeArguments ) : NamedTypeSymbol

Returns a constructed named type symbol if 'type' is generic, otherwise just returns 'type'

IsAccessor ( this methodSymbol ) : bool
IsIndexedProperty ( this symbol ) : bool
IsIndexer ( this symbol ) : bool
IsOperator ( this methodSymbol ) : bool
IsUserDefinedConversion ( this symbol ) : bool
MakeQualifiedName ( this type ) : QualifiedName

Gets type full qualified name.

Private Methods

Method Description
GetIsVararg ( this member ) : bool

Get the types of the parameters of a member symbol. Should be a method, property, or event.

GetMemberArity ( this symbol ) : int

Return the arity of a member.

GetMemberCallerName ( this member ) : string
GetParameterCount ( this member ) : int

Get the ref kinds of the parameters of a member symbol. Should be a method, property, or event.

GetParameters ( this member ) : ImmutableArray

Get the parameters of a member symbol. Should be a method, property, or event.

GetTypeOrReturnType ( this member ) : TypeSymbol
GetTypeOrReturnType ( this member, TypeSymbol &returnType, ImmutableArray &returnTypeCustomModifiers ) : void
HasParamsParameter ( this member ) : bool
IsDefaultValueTypeConstructor ( this method ) : bool

default zero-init constructor symbol is added to a struct when it does not define its own parameterless public constructor. We do not emit this constructor and do not call it

IsFieldOrFieldLikeEvent ( this member, FieldSymbol &field ) : bool
IsParameterlessConstructor ( this method ) : bool

NOTE: every struct has a public parameterless constructor either used-defined or default one

OfMinimalArity ( this symbols ) : NamespaceOrTypeSymbol
SymbolAsMember ( this s, NamedTypeSymbol newOwner ) : Symbol

Method Details

ConstructIfGeneric() public static method

Returns a constructed named type symbol if 'type' is generic, otherwise just returns 'type'
public static ConstructIfGeneric ( this type, ImmutableArray typeArguments ) : NamedTypeSymbol
type this
typeArguments ImmutableArray
return NamedTypeSymbol

IsAccessor() public static method

public static IsAccessor ( this methodSymbol ) : bool
methodSymbol this
return bool

IsIndexedProperty() public static method

public static IsIndexedProperty ( this symbol ) : bool
symbol this
return bool

IsIndexer() public static method

public static IsIndexer ( this symbol ) : bool
symbol this
return bool

IsOperator() public static method

public static IsOperator ( this methodSymbol ) : bool
methodSymbol this
return bool

IsUserDefinedConversion() public static method

public static IsUserDefinedConversion ( this symbol ) : bool
symbol this
return bool

MakeQualifiedName() public static method

Gets type full qualified name.
public static MakeQualifiedName ( this type ) : QualifiedName
type this
return QualifiedName