C# Class Pchp.CodeAnalysis.Symbols.MethodSymbol

Represents a method or method-like symbol (including constructor, destructor, operator, or property/event accessor).
Inheritance: Symbol, IMethodSymbol, IPhpRoutineSymbol
Mostra file Open project: iolevel/peachpie Class Usage Examples

Private Properties

Property Type Description
AsMember MethodSymbol
Cci Microsoft.Cci.IDefinition
Cci IEnumerable
Cci Microsoft.Cci.IMethodBody
Cci Microsoft.Cci.IMethodDefinition
Cci Microsoft.Cci.IMethodReference
Cci Microsoft.Cci.ITypeReference
Cci ImmutableArray
Cci void
EnumerateDefinitionParameters ImmutableArray
GetReturnValueCustomAttributesToEmit IEnumerable
IMethodSymbol IMethodSymbol
IsMetadataNewSlot bool
IsMetadataVirtual bool
ResolvedMethodImpl Microsoft.Cci.IMethodDefinition
TypeParametersMatchTypeArguments bool

Public Methods

Method Description
Construct ( ) : MethodSymbol
Construct ( ImmutableArray typeArguments ) : MethodSymbol

Apply type substitution to a generic method to create an method symbol with the given type parameters supplied.

GetDllImportData ( ) : DllImportData
GetImplementationAttributes ( EmitContext context ) : System.Reflection.MethodImplAttributes
GetReturnTypeAttributes ( ) : ImmutableArray
GetTypeInferredDuringReduction ( ITypeParameterSymbol reducedFromTypeParameter ) : ITypeSymbol
ReduceExtensionMethod ( ITypeSymbol receiverType ) : IMethodSymbol

Private Methods

Method Description
AsMember ( NamedTypeSymbol newOwner ) : MethodSymbol
Cci ( EmitContext context ) : Microsoft.Cci.IDefinition
Cci ( EmitContext context ) : IEnumerable
Cci ( EmitContext context ) : Microsoft.Cci.IMethodBody
Cci ( EmitContext context ) : Microsoft.Cci.IMethodDefinition
Cci ( EmitContext context ) : Microsoft.Cci.IMethodReference
Cci ( EmitContext context ) : Microsoft.Cci.ITypeReference
Cci ( EmitContext context ) : ImmutableArray
Cci ( Microsoft.Cci visitor ) : void
EnumerateDefinitionParameters ( ) : ImmutableArray
GetReturnValueCustomAttributesToEmit ( ) : IEnumerable
IMethodSymbol ( ) : IMethodSymbol
IsMetadataNewSlot ( bool ignoreInterfaceImplementationChanges = false ) : bool

This method indicates whether or not the runtime will regard the method as newslot (as indicated by the presence of the "newslot" modifier in the signature). WARN WARN WARN: We won't have a final value for this until declaration diagnostics have been computed for all symbols, so pass ignoringInterfaceImplementationChanges: true if you need a value sooner and aren't concerned about tweaks made to satisfy interface implementation requirements. NOTE: Not ignoring changes can only result in a value that is more true.

IsMetadataVirtual ( bool ignoreInterfaceImplementationChanges = false ) : bool

This method indicates whether or not the runtime will regard the method as virtual (as indicated by the presence of the "virtual" modifier in the signature). WARN WARN WARN: We won't have a final value for this until declaration diagnostics have been computed for all symbols, so pass ignoringInterfaceImplementationChanges: true if you need a value sooner and aren't concerned about tweaks made to satisfy interface implementation requirements. NOTE: Not ignoring changes can only result in a value that is more true.

ResolvedMethodImpl ( EmitContext context ) : Microsoft.Cci.IMethodDefinition
TypeParametersMatchTypeArguments ( ImmutableArray typeParameters, ImmutableArray typeArguments ) : bool

Method Details

Construct() public method

public Construct ( ) : MethodSymbol
return MethodSymbol

Construct() public method

Apply type substitution to a generic method to create an method symbol with the given type parameters supplied.
public Construct ( ImmutableArray typeArguments ) : MethodSymbol
typeArguments ImmutableArray
return MethodSymbol

GetDllImportData() public method

public GetDllImportData ( ) : DllImportData
return DllImportData

GetImplementationAttributes() public method

public GetImplementationAttributes ( EmitContext context ) : System.Reflection.MethodImplAttributes
context EmitContext
return System.Reflection.MethodImplAttributes

GetReturnTypeAttributes() public method

public GetReturnTypeAttributes ( ) : ImmutableArray
return ImmutableArray

GetTypeInferredDuringReduction() public method

public GetTypeInferredDuringReduction ( ITypeParameterSymbol reducedFromTypeParameter ) : ITypeSymbol
reducedFromTypeParameter ITypeParameterSymbol
return ITypeSymbol

ReduceExtensionMethod() public method

public ReduceExtensionMethod ( ITypeSymbol receiverType ) : IMethodSymbol
receiverType ITypeSymbol
return IMethodSymbol