C# Class Pchp.CodeAnalysis.Symbols.PhpRoutineSymbolExtensions

Mostra file Open project: iolevel/peachpie

Public Methods

Method Description
GetExpectedArguments ( this routine, TypeRefContext ctx ) : Pchp.CodeAnalysis.Symbols.PhpParam[]

Resolves list of input arguments. Implicit parameters passed by compiler are ignored.

GetResultType ( this symbol, TypeRefContext ctx ) : TypeRefMask

Gets expected return type mask of given symbol (field, function, method or property).

Returned type mask corresponds to types that can be returned by invoking given symbol.

Method Details

GetExpectedArguments() public static method

Resolves list of input arguments. Implicit parameters passed by compiler are ignored.
public static GetExpectedArguments ( this routine, TypeRefContext ctx ) : Pchp.CodeAnalysis.Symbols.PhpParam[]
routine this Routine.
ctx Pchp.CodeAnalysis.FlowAnalysis.TypeRefContext TYpe context to transmer type masks into.
return Pchp.CodeAnalysis.Symbols.PhpParam[]

GetResultType() public static method

Gets expected return type mask of given symbol (field, function, method or property).
Returned type mask corresponds to types that can be returned by invoking given symbol.
public static GetResultType ( this symbol, TypeRefContext ctx ) : TypeRefMask
symbol this
ctx Pchp.CodeAnalysis.FlowAnalysis.TypeRefContext
return TypeRefMask